This is just business as usual, and everything is working correctly. Windows isn't holding cached files in memory over other data - Cached files means that at one point, Windows had to load them into memory or read them off the disk, and something higher-priority has not come along since that time. Just as soon as you resume using the computer and programs request memory, Windows will happily remove the cached files to make room.
If you look at RAMMap, you'll notice that most of those cached files are allocated under "Standby" - that means that it's being held in memory because Windows needed it in the past, might need it again, and will quite happily discard it if something else actually needs the space.
Basically what you're seeing here is your program requests a large data file to be loaded, so Windows loads it into memory. Managing memory is a very complex process, and what Windows is doing under the covers here is making a judgement call: It looks at the current processes, and sees that Chrome is taking up, say 5GB of memory (lots of tabs!), but that most of that memory hasn't been touched in the last hour. At this point, it has a choice: It can leave Chrome in memory, and not cache the files. This means that the Cataloger process could take hours instead of minutes to process a file, especially if it is jumping around in the file a lot; or, it can page out the chrome tabs and load the Cataloger file into memory, and finish that process quickly.
Now, you'll feel the pain when Windows has to page chrome back into memory, but Windows won't do that until you request it (i.e., bring chrome back into the foreground and select a tab that was paged out), and what ultimately needs to be evaluated by you is if the pain of that is greater or less than the pain of your Cataloger task having to wait on it's memory. You can try running the program as a service and tell Windows to optimize for responsiveness, or try lowering the process priority, but I'm pretty sure what you're going to want is for the Cataloger process to finish as fast as possible - While it's maxing out your disk I/O, your entire system is going to be incredibly sluggish. Everything that requires disk I/O will be put into a queue (even webbrowsing - it has a cache it uses too!). Programs will open slow, new tabs will open fast, but actually using them for something will be slow.
If the program is just sequentially reading file after file and then not touching them again, I'll agree that Windows doesn't need to be caching the files. The problem here is Windows doesn't know that, because nobody is telling it that they don't need to be cached.
If you have access to the source code for the Cataloger program (or can request modifications be made to it), it can be configured to open files with FILE_FLAG_NO_BUFFERING
, which will cause Windows to skip the disk cache for files opened by the program in this manner.
If that's not an option, then unless the Cataloger process has to be run on your system, I'd look around to see if there's a spare computer that isn't being used, and see if it can be set up as a dedicated machine for cataloging these files. If there's not one already, simply increasing your RAM might be another option; memory prices are quite cheap these days, and developers know this - most things are optimized for speed and responsiveness at the cost of memory. 8GB isn't what it used to be.
Another option is to move all of the files that it uses onto a separate harddrive, and specifically turn disk-caching off for that drive.
35.2G of those 5.9G are marked as Standby, they are not actually in use. Over half of your system memory is up for whoever needs it, in fact. What operations exactly make you feel like your computer is not performing as well as it could? – Der Hochstapler – 2012-09-18T16:17:44.960
Just to be very clear, if you leave the system on for a day or two without having ever run this "Cataloger.exe", do you have the same problem? I think you may be putting the cart ahead of the horse here. – Shinrai – 2012-09-18T16:23:01.490
2@OliverSalzburg Programs get non-responsive, a .txt file requested to be opened in a simple text editor opens after 5 minutes of waiting, Chrome freezes almost completely, if Chrome does't freeze, it is incredibly slow and I can physically hear how HDD starts working hard (hence my guess about pagefile) whenever I try open a new tab, which takes very long to complete. As a general rule, when my computer uses HDD intensively, performance drops quite noticeably. When HDD is not in extensive use, my PC is just a sweet pie. – Desmond Hume – 2012-09-18T16:28:52.790
1@Shinrai I haven't done such. My PC is off for the night. But when I turn it on and start some file operations, like moving/copying many files or unarchiving huge amounts of files, it may get unusually slow in just 10 min. – Desmond Hume – 2012-09-18T16:32:08.090
1@DesmondHume - So it could be a problem with the hard drive. Or the hard drive controller. Or the file system could be corrupt. There are a number of other possibilities. – Shinrai – 2012-09-18T16:47:35.597
2
@DesmondHume: Well, this could also indicate that "some process" is simply excessively making use of the HDD, which reduces overall system performance. It doesn't have to indicate a low RAM/paging situation (and your screenshot also doesn't indicate one). Please see http://superuser.com/questions/404617/what-is-the-proper-way-of-debugging-a-slow-windows-installation and, if needed, http://superuser.com/questions/26862/what-are-the-first-steps-for-diagnosing-a-slow-machine
– Der Hochstapler – 2012-09-18T16:50:01.6931Something I notice on a old computer at work : even if windows have plenty of free ram, at some point it will start to write some stuff from ram to harddrive. it happens especially when you keep the computer a very long time inactive (but not enough to put it in sleep/hibernation mode) for eg: a locked station. When you go back to the computer and use it, it will start to move data back from hdd to ram. On most computer you don't notice it, but that pc at work had a terribly bad harddrive. After that i learned about pagefile and disabled it (even if not recommended) and problem was gone. – tigrou – 2012-09-18T18:11:05.273
Die you also check the File Summary and File Details tabs to see what file blocks were previously mapped into memory? Can you even confirm that this Cataloger application created them? I find it unlikely that an application that reads large amounts of files once would utilizes memory mapped files. – Der Hochstapler – 2012-09-19T10:09:49.613
@OliverSalzburg The File Summary and File Details tabs are filled up with the very files being processed by Cataloger.. – Desmond Hume – 2012-09-19T10:19:40.767