On Thu, 25 Jan 2001, Michael J. Maravillo wrote:
..
> > i have a 128 mb mem & 130 swap in my RH 4.2 and i want
> > to add more mem, can i add another 128 or 256 mb
> > without repartitioning my HDD for swap?
> 
> You can add more swap space by using swap files.  To add an 8MB
> swap for example do the following (1024*1024=1048576=1MB):

it really shouldnt matter. linux will only use the swap after memory
overcommit. since 2.0.x and 2.2.x kernels have VERY poor performance once
memory overcommit happens, you should not try to solve the problem by
adding swap. remember, this is not BSD/Solaris, which aggressively caches
in-core images to the swap space/tmpfs.

i don't know about 2.4.x, i've only used it for a day, but the swap usage
is much less. (two mozillas, oracle8i, helix gnome, total usage about 70MB
only vs 130MB with 2.2.x).

in all cases, physical ram is the solution. the 1:1.5 ram:swap ratio was
valid for the BSD's and solaris, which have a unified ramfs/tmpfs/swap and
they store in-core images there so the next time that binary is loaded, it
can just be mmap'ped in. linux doesn't do that, so it needs swap much
less. these days i go for 256MB swap if memory >=256MB.


---------------------------------------------------------------------
Orlando Andico <[EMAIL PROTECTED]>       POTS Phone: +63   (2) 937-2293
Mosaic Communications, Inc.            GSM Mobile: +63 (917) 531-5893
I'm not suffering from insanity -- I'm enjoying  every minute of it!!


_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

Reply via email to