I've always wondered...
Basically, WinNT allocates a certain minimum and a certain maximum for
swap file size, dynamically changing the swap file size according to
requirement. While the idea sounds quite intriguing (only the space
actually needed is used), reality isn't as bright as it should be:
-- By default, NT uses the C: disk for swap. And that's the one
that is most heavily used in the first place
-- The default swap drive C: is the one most likely
to be most fragmented of all available disks
-- Expanding and contracting the swap file takes more time
than just writing to a specified allotted space
-- Every expansion and contraction of the swap concurs with
file re-writes, slowing down the machine.
The issue is best addressed by:
-- making sure that there is a permanent swap file
(min = max) plus a 12-15 MB swap file on the C: drive
for memory dumps if required
-- moving the swap file either to
(a) a dedicated drive of 1.5-2 times RAM size,
preferably on its own controller (if SCSI), or
(b) a dedicated partition on the fastest drive, or
(c) a dedicated partition on the least used drive, or
(d) a permanent swap file on the least used drive or
partition
-- If running other swap-intensive applications who do their own
swap file management (e.g., Photoshop) make sure that these
have a swap drive/partition/directory of their own.
HTH
Helmut
|