Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I have a P3 1ghz box with 512mb or ram. I have never exceeded 200mb of memory usage and am now on a mission to disable the swap file altogether. Back in the good ole days of NT4 we could set the swapfile size to 0, then create some file in system32 (forgot the filename) which stopped NT from creating any swap file. My question.. how do I hack 2000 so it does not swap anything to the hard drive? I've set my swapfile size to 16mb but windows insists on creating a 130mb swapfile!!!! I've set DisablePagingExecutive to 1 in the registry but Task Manager shows Kernel Memory - Paged at 30mb. The most frustrating part about all of this is that I have 300mb of ram sitting unutilized!
Can I disable ALL use of the swapfile under 2000? I will never need more than 200mb of ram on this machine. It only runs Outlook, IE, Excel, and Word.
How about creating a 256mb ramdrive and storing my swapfile on it? Has anyone tried something like this?
Dan

Yes, people have created the swap on RAM drives and that is the only way to get teh swap removed from your HD. You must have a swap set and I have never heard of a way to disable it in 2K.
There are some sites with articles about doing the ramdrive thing but i can't remember off the top of my head. Just know that you may actually hurt performance by creating a ramdrive especially using half your ram. Less free memory (~56MB) will cause 2k to swap more often as it tries to maintain more free mem. Swaping in ram is faster but it may slow our system down overall, especially as you push your mem usage towards 256MB.

Why did you waste $1000 on a nice system when a Pentium 166 laptop would work fine for you.
You obviously did not set the swap file size or it would have saved it. I have been successful setting it to whatever size I wanted on all of my systems.

Maybe I'm crazy, but.....isn't the swapfile where Windows places information from RAM when it needs to free that RAM to be used by something else? How can this occur if the swapfile is in a ramdrive? You're swapping RAM into RAM, which leaves less RAM available and increases the need for swapping.

There is no way in 2000 to kill the pagefile. In XP I believe you can disable it, but the big question is, why would you want to? Is your hard drive that small?
There are some 2000 services that rely on the pagefile, as I understand it, disabling the pagefile would mess them up and create problems with your setup. There are also some app's that rely on the pagefile and disabling it would not be beneficial to your system running properly.

I've just started studying for my MCSE, and I remember seeing this. The pagefile is only reserved for overflow purposes only. You have 512 ram, load Outlook, type a letter, visit a porn site...so your system is using up, say 80 megs ram? In the meantime this thread is dragging on why the sky is blue. I think the built in mem manager knows not to go to the hdd unless it sees the ram approaching its limit and it will need to shift some less used instructions over to the drive to keep space open on the ram for more critical apps, like porn.

you can disbale the pagefile, but it si done in the registry...unfortunately i dont know where you maybe able to find it at this site if you do a search..
http://www.jsiinc.com/

Have you tried this...
Rt CLick "MyComputer">Properties>Advanced (Tab)>Performacne Options (button)>Change (button). Set inital size to "0" and maximum size to "0".I never did this, so I don't know what will happen. (Personally, I wouldn't want to even with 2GB of SDRAM)
I would set up RAID 0 across 4 U160 drives and point my swap file at them. If I only had the money. Or better...
http://www.platypustechnology.com/default2.asp

Hi,
The above does work. Setting the pagefile options to 0 for min and max is as good as.
Well done RK!PC.

Hi,
The above does work. Setting the pagefile options to 0 for min and max is as good as.
Well done RK!PC.

Sterling_Aug - don't make assumptions, it makes you look like an idiot.
To everyone else, thank you for the responses. The program I'm using to check my memory usage, Bionic CPU Peeker v2.7, reports the swap file at 100mb, and unused physical ram at 400mb. However, pagefile.sys is 16mb in size...??? Did 2000 create a new swapfile somewhere else on my drive? Task manager says I 30mb of my kernal is paged.... where is it paged to?
Curt R - I don't believe _any_ program relies on the existance of the swapfile. As far as I know, only the windows 2000 memory manager knows the swapfile exists. Every other program functions within it's virtual memory space.
Pete - if what you say is true then my pagefile should be completely unutilized, but unfortunatley my system is wasting resources by maintaining an unnecessary swapfile.
pc and RK - back in Windows NT 4.0 if you set the swapfile to 0 the operating system still created a swapfile in winnt\system32. I have a feeling 2000 is doing the same thing.
I'm researching this for my own information at this point. Performance is not an issue with this box, as it's very speedy(since I cranked down the swapfile). I'm thinking the ramdrive is the way to go. A 192mb ramdrive should suffice and still leave me 320mb.
How about creating a ramdrive that is 384mb in size and leaving 2000 only 128mb to work with??? It would page like crazy but that shouldn't hurt performance. All my programs will fit into the 128mb so the ramdrive shouldn't be 'thrashed'....

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |