Monitoring disk usage in Windows with RAM caching

4

1

I'm monitoring disk activity on my machine using Windows Performance Monitor (perfmon). I'm interested in the Collector sets LogicalDisk > % Disk Time and LogicalDisk > Current Disk Queue Length. I ran some heavy applications, and I noticed that during the first load time, these numbers shot up, as expected. However, I wasn't able to replicate the results. This is because Windows caches files on unused RAM. So, when I was trying to monitor the disk usage the second time, Windows had cached everything, and it showed no disk activity.

My question is this: is there a way to monitor these "virtual" IO requests? I don't want to turn the smart caching off, as it greatly increases load time, I'd just like to continue to grab IO information, regardless of where Windows is storing the information. (On RAM or on disk.)

Sal

Posted 2012-09-18T19:04:45.713

Reputation: 143

Also, since this isn't directly related to programming, I placed it here, instead of the standard StackOverflow. Is it appropriate here? Or, does it belong on something like ServerFault or the like. – Sal – 2012-09-18T19:37:36.250

1This is a great home for your question! Welcome to [SU] :) – Darth Android – 2012-09-18T19:49:25.183

Sal, did my answer help? I'd appreciate it if you marked it as what you were looking for! – PatKilg – 2012-10-12T15:20:34.967

I remember being appreciative of your answer, but I don't why I didn't mark it as the accepted answer! My mistake, and thanks again! – Sal – 2012-10-12T15:37:14.213

Answers

1

You can monitor quite a bit about the cache from performance monitor.

Simply add what you are interested in with the green "+" at the top, select "Local Computer" and then drill down to what you want under the "Cache" options.

(Understandably) windows manages memory from the cache differently than from the hdd, so the options won't be measured in quite the same way as reads from the hard drive. Check out this msdn article for what the options there actually mean.

PatKilg

Posted 2012-09-18T19:04:45.713

Reputation: 755