Community
    • Login

    Notepad++ writes a lot to disk after closing

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    7 Posts 5 Posters 835 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      abracadabruh1
      last edited by abracadabruh1

      I decided to open the disk usage (not I/O) statistics in Resource Monitor, and discovered that after closing notepad++.exe, even if there were no files open, a large write to the disk occurs. In the first second the speed is approximately 4 MB/s, then less: 3 MB, 1 MB, 500 KB, 300 KB, 100 KB. And in total it writes like this for about a minute. I think the total write will be at least 30 MB.

      notepad.exe writes to both files “e:\User\AppData\Roaming\Notepad++\config.xml” (which is 10 KB) and “e:\User\AppData\Roaming\Notepad++\session.xml” (which is 200 bytes).

      I have the same problem with Classic Shell, but I decided to write about Notepad++, since it is easier to explain and test. Does your Notepad++ also writes to disk when closed? I’m afraid my Windows is broken.

      Alan KilbornA A Mark OlsonM mkupperM 4 Replies Last reply Reply Quote 0
      • Alan KilbornA Offline
        Alan Kilborn @abracadabruh1
        last edited by

        @abracadabruh1 said in Notepad++ writes a lot to disk after closing:

        notepad.exe writes to both files “e:\User\AppData\Roaming\Notepad++\config.xml” (which is 10 KB) and “e:\User\AppData\Roaming\Notepad++\config.xml” (which is 200 bytes ).

        Attention to detail is important: You’ve specified the same file path for two files.

        A 1 Reply Last reply Reply Quote 1
        • A Offline
          abracadabruh1 @Alan Kilborn
          last edited by abracadabruh1

          Sorry, the second file is session.xml with the same path (e:\User\AppData\Roaming\Notepad++\session.xml). I forgot to edit and then didn’t notice

          1 Reply Last reply Reply Quote 0
          • A Offline
            abracadabruh1 @abracadabruh1
            last edited by

            I asked the same question on SuperUser and was assured that there is nothing wrong with my PC, it’s just how Windows shows speed. So there is no real disk write, it is Windows shows the disk rate for a long time after the write has completed. This is probably why data on disk activity by System process is shown with a delay of a couple of seconds in Task Manager and Process Hacker 2, apparently the data in Resource Manager is simply false.

            PeterJonesP 1 Reply Last reply Reply Quote 1
            • PeterJonesP Offline
              PeterJones @abracadabruh1
              last edited by

              @abracadabruh1 ,

              I asked the same question on SuperUser and was assured that there is nothing wrong with my PC, it’s just how Windows shows speed

              Thanks for coming back and letting us know.

              (For those who are curious, that SuperUser post is here)

              1 Reply Last reply Reply Quote 1
              • Mark OlsonM Offline
                Mark Olson @abracadabruh1
                last edited by

                @abracadabruh1
                My first guess would be a plugin (or a bunch of plugins). I don’t know of any specific plugins that would do this, but I have definitely uninstalled/disabled plugins because it seemed like they were slowing startup and shutdown too much.

                1 Reply Last reply Reply Quote 2
                • mkupperM Offline
                  mkupper @abracadabruh1
                  last edited by

                  @abracadabruh1 said in Notepad++ writes a lot to disk after closing:

                  Resource Monitor,

                  Resource Monitor displays the number of bytes per second. This is unrelated to the number of bytes written. For example, if it takes you one millionth of a second to write one byte then Resource Monitor says you are writing at one million bytes per second.

                  Other tools such as Microsoft’s Sysinternals procmon can better show you which files an application is writing to and the number of bytes in each write. Unfortunately, procmon is not perfect as ideally what we want is a nice list of the files written to and the total bytes written.

                  1 Reply Last reply Reply Quote 3

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  • First post
                    Last post
                  The Community of users of the Notepad++ text editor.
                  Powered by NodeBB | Contributors