• Login
Community
  • Login

Notepad++ writes a lot to disk after closing

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
7 Posts 5 Posters 516 Views
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
    abracadabruh1
    last edited by abracadabruh1 Nov 9, 2023, 8:23 PM Nov 9, 2023, 6:45 PM

    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.

    A A M M 4 Replies Last reply Nov 9, 2023, 6:51 PM Reply Quote 0
    • A
      Alan Kilborn @abracadabruh1
      last edited by Nov 9, 2023, 6:51 PM

      @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 Nov 9, 2023, 6:56 PM Reply Quote 1
      • A
        abracadabruh1 @Alan Kilborn
        last edited by abracadabruh1 Nov 9, 2023, 6:57 PM Nov 9, 2023, 6:56 PM

        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
          abracadabruh1 @abracadabruh1
          last edited by Nov 9, 2023, 9:33 PM

          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.

          P 1 Reply Last reply Nov 9, 2023, 10:09 PM Reply Quote 1
          • P
            PeterJones @abracadabruh1
            last edited by Nov 9, 2023, 10:09 PM

            @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
            • M
              Mark Olson @abracadabruh1
              last edited by Nov 9, 2023, 11:23 PM

              @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
              • M
                mkupper @abracadabruh1
                last edited by Nov 10, 2023, 7:26 PM

                @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
                7 out of 7
                • First post
                  7/7
                  Last post
                The Community of users of the Notepad++ text editor.
                Powered by NodeBB | Contributors