Re: Do I Need To Add More Swap Space?



Timmy wrote:

Hi!

I have 2-gigs of ram installed, during the install of FBSD I just used
(A) to allocate the whole disk for FBSD. The swap space is over
4-gigs with the 2-gig-ram. (installed)
I just ordered another 2-gig of ram bringing the total amount to 4-gig.
Will I really need to create an 8-gig swap partition before I drop in
the other two gig of ram?

I use FBSD as a desktop system - I've never seen any usage of my swap
partition. I can open up xterm and run "swapinfo" at the end of the day
and its never been used. (0%)

The rule of thumb is to create swap 2,3-x the amount of ram that you're
using. Is that really necessary?

You think it will be okay to run 4-gig-mem on a 4-gig swap partition?

TIA.

Should be just fine. That is based upon the idea that you already seem to
have enough RAM present such that you're not swapping to disk. The rule of
thumb thing is more directed at much smaller RAM sizes, such as 64 or 128
MB, or less.

The 4GB swap partition you already have is not really getting used and
adding more RAM makes it more unlikely it will get used. A regular end user
desktop is not going to fill up this much memory unless you run some very
high-end 3D CAD/CAM, 3D animation, or large number crunching statistical
analysis kinds of apps. Having some extra left over for caching is good for
performance though.

If you want to run out of memory run Java, Glassfish, and Oracle all on the
same box. This kind of server app will chew up as much RAM as you can throw
at it. :-)

-Jason

.



Relevant Pages

  • Re: Need advice on how to partition a 10gig hdrive
    ... >> install your fourth kernel. ... Swap size depends on the RAM and the purpose of the ... > possible on the system partitions. ...
    (alt.os.linux)
  • Re: How much drive space for Linux?
    ... It is generally recommended to have twice as much swap ... >> space as you have RAM. ... Sounds like 4 gig is not enough. ... >> make the attempt to install it and see whether it fits. ...
    (linux.redhat.install)
  • Re: excessive swap-in time
    ... Trying to do it all with RAM is just inefficient. ... I find that does not work well when the swapping is caused by excessive I/O ... Or you could have 5 TB of swap space. ...
    (comp.os.linux.development.system)
  • Re: Swap usage always goes up - never down
    ... which is cheap enough or even more swap is ... > buffers/cache available in RAM, even when I'm running my 'big' jobs. ... It's the slowest distro one can install. ... Michael Heiming ...
    (comp.os.linux.misc)
  • SLUB 0:1 SLAB (OOM during massive parallel kernel builds)
    ... 2G of RAM, 1G of swap partition. ... DMA per-cpu: ... kill process 25286 score 188662 or a child ...
    (Linux-Kernel)

Quantcast