Re: Disk Space Low?
- From: "Michael J. Mahon" <mjmahon@xxxxxxx>
- Date: Thu, 18 May 2006 13:07:56 -0700
Jaime wrote:
Years back, the conventional wisdom was that setting the swap to more than 2x your physical RAM was pointless. The swap file doesn't actually replace/add to the RAM as a dynamic workspace for the computer, it only functions as a holding area.
If the RAM is filled (because you have a memory intensive app running, opened a large doc, whatever) and you now want to open another doc, the computer swaps the data in RAM to the hard drive so it can work on the new stuff. When you switch back to the other program, doc, etc., the computer swaps the new doc to the drive and puts the other stuff back into RAM. In theory, in a maxed-out situation, you would need 2x RAM in the swap; half to hold the data being held, half for the data to be written (since that has to occur before it can grab the old stuff and put it back into RAM). In the real world that would never happen, because some of the bits in RAM are never going to be swapped out (system stuff, background apps, etc.), the number of 1.5 times is probably a realistic sweet spots. That said, I still used to set mine to twice the RAM -- figured couldn't hurt and drive space is cheap.
So adding more swap to a low-RAM PC isn't magically make it run like it has more RAM. Adding more RAM is always better, all that reading and writing to the drive is not as efficient as reading and writing to RAM.
I'd go one step further--if you are actually using your swap space (a
lot of swap disk I/Os)--then you are slowing your machine down to a
small fraction of its "flat out" speed.
Virtual memory is only a good idea if you aren't actually using it. ;-)
Get more RAM until swapping becomes rare or stops altogether.
-michael
Home page: http://members.aol.com/MJMahon/
"The wastebasket is our most important design
tool--and it is seriously underused."
.
- Follow-Ups:
- Re: Disk Space Low?
- From: Gene E . Bloch
- Re: Disk Space Low?
- References:
- Re: Diak Space Low?
- From: Gene E. Bloch
- Re: Disk Space Low?
- From: Larry Jordan
- Re: Disk Space Low?
- From: Gene E. Bloch
- Re: Disk Space Low?
- From: Jaime
- Re: Diak Space Low?
- Prev by Date: Re: MCE Locks up after 30 minutes of Live TV or Recording TV
- Next by Date: Re: Blank or Black Album Art
- Previous by thread: Re: Disk Space Low?
- Next by thread: Re: Disk Space Low?
- Index(es):
Relevant Pages
|