Notepad++ writes a lot to disk after closing
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.
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.
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
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.
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.
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.