Page File size

Page 2 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.

smack Down

Diamond Member
Sep 10, 2005
4,507
0
0
Originally posted by: MrChad
Let Windows manage it.

Don't let windows manage it.

Just set it to a large fix size, that way you don't have windows resizing the page file every ten minutes.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Just set it to a large fix size, that way you don't have windows resizing the page file every ten minutes.

Wow, you've done your research on the topic, eh? Windows doesn't resize the pagefile often, the only time it expands it is when the current size is near capacity and the only time it shrinks it is on reboot.
 
Feb 9, 2005
41
0
0
Yeah, but wouldn't it ideally be better to just set it to a large fixed size, large enough that you don't have to really worry about windows expanding it? Because expanding it would use system resources and generally, when you need to expand the page file, you're not going to exactly have an abundance of system resources.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Yeah, but wouldn't it ideally be better to just set it to a large fixed size, large enough that you don't have to really worry about windows expanding it? Because expanding it would use system resources and generally, when you need to expand the page file, you're not going to exactly have an abundance of system resources.

No because if you're at the point that Windows has to expand the pagefile you're already screwed and the extra time spent doing that won't be noticable in the paging storm that you're already in. Setting a static size just sets an artificial limit for no good reason, would you rather have your app run slowly for a while or crash?
 
Feb 9, 2005
41
0
0
Thats why todays systems have been needing more and more RAM, so you don't have to access swap space as much. You should make the page file initially larger than what you need it to be, so that you don't have to resize it, which causes it to fragment. Just because you are screwed doesn't mean that you should screw yourself more.

And the only way that you can be certain your page file won't cause you to run out of virtual memory is by making the page file have infinite size, but Windows sets a limit of 2gb of virtual memory per application by default and 2gb in general, so you could still run out of virtual memory.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Just because you are screwed doesn't mean that you should screw yourself more.

Which is worse having the application run slowly for a bit or crash completely? You can't answer that for everyone.

but Windows sets a limit of 2gb of virtual memory per application by default and 2gb in general, so you could still run out of virtual memory.

It's not a Windows limitation (for the most part) but if the application needs more than 2G of VM then it'll most likely crash no matter what you do so your pagefile settings can only change the timing of the crash.
 
Feb 9, 2005
41
0
0
No matter what you do, your system will crash if you need too much virtual memory. It's just a matter of determining how much you need and setting the page file to a fixed size in order to account for that.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
No matter what you do, your system will crash if you need too much virtual memory.

Not true, as long as the apps is coded right it'll fail gracefully and even then just that 1 app will die, not the whole system.

It's just a matter of determining how much you need and setting the page file to a fixed size in order to account for that.

Or taking the simpler, smarter route and just letting NT manage it on it's own.
 
Feb 9, 2005
41
0
0
Last time I checked, assuming that an app is coded right is a very bad idea.

And if you have two page files, one in the root directory, and one on a second hard disk and partition, letting Windows dynamically manage the size is not a bad idea because it won't get as fragmented, but otherwise, it's a bad idea.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Last time I checked, assuming that an app is coded right is a very bad idea.

Duh, but worst case is still that the app crashes and not the OS. Although Windows doesn't have anything like Linux's OOM killer so it'll probably take longer and be more painful.

And if you have two page files, one in the root directory, and one on a second hard disk and partition, letting Windows dynamically manage the size is not a bad idea because it won't get as fragmented, but otherwise, it's a bad idea.

Everyone keeps saying that but no one can produce numbers to show that it's a bad idea. If it's so obviously better it should be easy to produce some benchmarks to prove that, right?
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |