Yousuf said:
I'm trying to investigate the source of some poor performance from my
boot drive. I ran the Windows 7 Resource Monitor, and found that the
disk queue length on this drive after bootup is over 5 and approaching
10! I don't know if disk queue length means the same thing as it does in
the Unix world, but in Unix, disk queue length measures how many
requests are coming in vs. how many request slots there are. So the disk
queue length should always be below 1, but it's showing 5 and sometimes
10. This means that the queue is bigger than the disk's ability to
handle it.
What can be done to get the disk queue under control?
Yousuf Khan
Found mention of disk queue here:
http://support.microsoft.com/kb/146005
http://support.microsoft.com/kb/822219
So what I/O bound processes are you running perhaps in the background?
Tried disabling your anti-virus software for awhile to check for change
in disk traffic?
Got multiple anti-malware products installed that are concurrently
active and perhaps conflicting with each other? I've seen these cause
thrashing: one AV product monitors a change in a file which triggers
another AV product to do its check which triggers the 1st to recheck and
the cycle keeps repeating. I forget which anti-malware products were
involved back then but I recall noticing there were over 3900 disk
access per minute because of this software conflict. Shutting down just
one of the conflicting processes ceased the thrashing.
Got file indexing enabled? Are you running SQL on this problematic
host? If so, see
http://support.microsoft.com/kb/167711.
You might want to use a file monitor to see what is doing all the file
accesses (opens, reads, writes), especially at times when you expect the
host should be relatively quiescent.
Did you install a "green" or "advanced" hard disk in your system? That
is, the type that uses 4KB sized sectors internally but maps to the
standard 512MB sectors on its interface? This misalignment can cause
lots of problems. Make sure you don't get WD's Green series of hard
drives or any that are Advanced Format Drives (AFDs) or Smart Align
Technology (Seagate). These work by using 4KB sector sizes on the
platter and translating in their interface to 512KB; however, there is a
problem is misalignment since some versions of Windows start a partition
at sector 63 instead of 64. You could end up with a very slow external
hard disk due to misalignment because of the need to do read-modify-
write instead of just a write.
Read:
http://www.anandtech.com/show/2888/2
http://dl.paragon-software.com/free/Paragon Alignment Tool - White Paper.pdf
http://www.paragon-software.com/technologies/components/partition-alignment/
http://support.wdc.com/product/download.asp?groupid=805
I'm not intimate with this issue to know if Vista/7 won't have problems
for migrations (i.e., where you upgraded to Vista/7 from a prior version
of Windows which would have a misalignment problem with a WDC green hard
disk). This possible cause of dragging forward problems into a new
version is why I always recommend doing fresh installs of newer versions
of an OS.