A
Adam Albright
Seems like another pissing contest is under way. So typical in this
goofy newsgroup. For those more interested in facts, keep reading.
Q. What is a Paging file?
A. An area on a hard drive dedicated by and controlled by Windows
to allow swapping of memory pages in and out of RAM (memory). This
is called virtual memory.
Q. Can you have more than one paging file?
A. Yes, you can have up to 16 paging files totally up to 64 GB
of space, but of course that would be silly.
Q. Can you control how Windows uses multiple paging files?
A. No! That is totally up to Windows.
Q. So if I set up multiple paging files on different physical hard
drives how does Windows decide which one to use?
A. Windows will automatically choose the page file on the drive with
the least activity AT THE MOMENT the swap is made. So where any
data goes at any point in time isn't controllable by the user and
it would be an impossible task to do if you could since we're
talking milliseconds.
Q. Is there any practical advantage to having multiple page files?
A. Generally no. What you should concern yourself with instead is
picking the fastest of your hard drives and then devote a partition
on it for your paging file. Ideally, NOT your root drive since it's
overhead is usually pretty busy just doing normal Windows tasks.
Better yet in extreme conditions if your motherboard has multiple
disk controllers and you don't use one for external drives or other
duties devote a channel to your paging file and nothing else.
Q. Can I move my Paging File?
A. No. Not in the normal sense you move files. All a paging file is
a memory dump consisting of memory pages, which isn't in human
readable form. Instead you kill the current paging file you have,
meaning you tell Windows you want no paging file, skip past the nag
screen, then follow the prompts to move to a new hard drive. In
effect you're making a NEW paging file on a different drive.
Q. How big should a Paging File be?
A. The general rule of thumb is one and a half times the size of your
installed memory (RAM). You can also decide to let Windows manage
the paging file in which case it grows and shrinks in size
depending on load or you can set minimum and maximum limits. The
best way to see which method works best for your particular needs
is experiment!
Q. Is there a maximum size to how large a paging file can be?
A. Not sure if it has changed in Vista. In XP the maximum size of
a paging file was 4095 MB, unless you did a Registry hack.
More details here:
http://support.microsoft.com/kb/237740
Q. How do I know if I should mess with my current paging file
setting and should I worry I will mess something up?
A. Good Question. Finish reading this answer and you'll be on
your way to getting your official propeller cap all real
geeks wear.
To understand your paging file you first need to understand what a
"page" of memory is. In order for anything to happen in your computer
a bit of code needs to be brought into memory. Since you can only have
X amount of RAM, Windows will swap out what is currently in RAM and
place it in virtual memory (a space on your hard drive, here after
referred to as the paging file). This is done a "page" at a time,
which simply means a range of memory is read, typically in 4,096 byte
gulps. Then Windows has room to bring into RAM what it needs to
execute the task you told it to do. In complex tasks Windows can swap
memory pages hundreds of thousands of times an hour.
When your computer locks up one of the most common causes is a page
fault. That simply means two handles to some processes tried to access
the same memory space at the same instant in time. Bad news, Windows
will freak and often crash when that happens.
Since getting something from memory is way faster than need to go out
to a hard drive and get in virtual memory, your paging file regardless
what you're asking Windows to do will run way faster if it doesn't
have to swap memory pages so often.
Since doing so is a big hit on performance there is a name for the
process when Windows needs to swap a memory page. These are called
page faults. Bad name, since it sounds like an error, but it is just
an interruption. Because of that Windows keeps track of page faults.
You can see how many page faults you are getting by starting Task
Manager and looking under the Processes tab. As your applications are
running watch the Page Fault column. The higher the number the more
times that application caused Windows to swap a page in and out of
RAM.
By running some test doing the EXACT same task over and over you can
get an idea if or not resizing or moving your paging file helps or is
just a waste of time.
goofy newsgroup. For those more interested in facts, keep reading.
Q. What is a Paging file?
A. An area on a hard drive dedicated by and controlled by Windows
to allow swapping of memory pages in and out of RAM (memory). This
is called virtual memory.
Q. Can you have more than one paging file?
A. Yes, you can have up to 16 paging files totally up to 64 GB
of space, but of course that would be silly.
Q. Can you control how Windows uses multiple paging files?
A. No! That is totally up to Windows.
Q. So if I set up multiple paging files on different physical hard
drives how does Windows decide which one to use?
A. Windows will automatically choose the page file on the drive with
the least activity AT THE MOMENT the swap is made. So where any
data goes at any point in time isn't controllable by the user and
it would be an impossible task to do if you could since we're
talking milliseconds.
Q. Is there any practical advantage to having multiple page files?
A. Generally no. What you should concern yourself with instead is
picking the fastest of your hard drives and then devote a partition
on it for your paging file. Ideally, NOT your root drive since it's
overhead is usually pretty busy just doing normal Windows tasks.
Better yet in extreme conditions if your motherboard has multiple
disk controllers and you don't use one for external drives or other
duties devote a channel to your paging file and nothing else.
Q. Can I move my Paging File?
A. No. Not in the normal sense you move files. All a paging file is
a memory dump consisting of memory pages, which isn't in human
readable form. Instead you kill the current paging file you have,
meaning you tell Windows you want no paging file, skip past the nag
screen, then follow the prompts to move to a new hard drive. In
effect you're making a NEW paging file on a different drive.
Q. How big should a Paging File be?
A. The general rule of thumb is one and a half times the size of your
installed memory (RAM). You can also decide to let Windows manage
the paging file in which case it grows and shrinks in size
depending on load or you can set minimum and maximum limits. The
best way to see which method works best for your particular needs
is experiment!
Q. Is there a maximum size to how large a paging file can be?
A. Not sure if it has changed in Vista. In XP the maximum size of
a paging file was 4095 MB, unless you did a Registry hack.
More details here:
http://support.microsoft.com/kb/237740
Q. How do I know if I should mess with my current paging file
setting and should I worry I will mess something up?
A. Good Question. Finish reading this answer and you'll be on
your way to getting your official propeller cap all real
geeks wear.
To understand your paging file you first need to understand what a
"page" of memory is. In order for anything to happen in your computer
a bit of code needs to be brought into memory. Since you can only have
X amount of RAM, Windows will swap out what is currently in RAM and
place it in virtual memory (a space on your hard drive, here after
referred to as the paging file). This is done a "page" at a time,
which simply means a range of memory is read, typically in 4,096 byte
gulps. Then Windows has room to bring into RAM what it needs to
execute the task you told it to do. In complex tasks Windows can swap
memory pages hundreds of thousands of times an hour.
When your computer locks up one of the most common causes is a page
fault. That simply means two handles to some processes tried to access
the same memory space at the same instant in time. Bad news, Windows
will freak and often crash when that happens.
Since getting something from memory is way faster than need to go out
to a hard drive and get in virtual memory, your paging file regardless
what you're asking Windows to do will run way faster if it doesn't
have to swap memory pages so often.
Since doing so is a big hit on performance there is a name for the
process when Windows needs to swap a memory page. These are called
page faults. Bad name, since it sounds like an error, but it is just
an interruption. Because of that Windows keeps track of page faults.
You can see how many page faults you are getting by starting Task
Manager and looking under the Processes tab. As your applications are
running watch the Page Fault column. The higher the number the more
times that application caused Windows to swap a page in and out of
RAM.
By running some test doing the EXACT same task over and over you can
get an idea if or not resizing or moving your paging file helps or is
just a waste of time.