[svlug] Performance and memory

Karsten M. Self kmself at ix.netcom.com
Fri Apr 29 18:34:39 PDT 2005


on Fri, Apr 29, 2005 at 03:14:04PM -0700, steve (steve at itsage.com) wrote:
> Skip Evans wrote:
> > 
> > Is that a lot of swap???
> > 
> Your using more swap then you have physical RAM?  That's pretty high...

Myth.

How much swap you have doesn't matter (within reason).  1-2 GiB
allocation is not unreasonable for a 256 MiB - 1 GiB+ system.

How much swap you're _using_ is realtively immaterial.  What that swap
is buying you is freedom from having to manage memory by hunting down
and killing processes manually.

How much you're _swapping_ -- paging memory in and out of swap -- *DOES*
matter.  It's slow, and it means both disk _and_ memory operations are
being impacted.

And, even on a system with gobs of RAM, you want swap.  Helps the kernel
balance the VM subsystem:

    Is Swap Space Obsolete?
    Martin Pool
    http://sourcefrog.net/weblog/software/linux-kernel/swap.html

 
> Another issue with swap is the speed, type, and layout of your 
> harddrives.  If your swapping to the same IDE drive it's trying to read 
> the incoming program/data from, you'll bottleneck as IDE only does 1 
> transaction per controller per interval.

Yep.  RAID will buy you _massive_ benefits here (the controller handles
the i/o, the CPU doesn't block), for good values of RAID controller.
Dittos SCSI.
 
> I think the short answer though, is yes, 256M is too small for that 
> machine.

512 - 1GB personally.


Peace.

-- 
Karsten M. Self <kmself at ix.netcom.com>        http://kmself.home.netcom.com/
 What Part of "Gestalt" don't you understand?
    The Journal's editorial page made the mistake of relying on the
    accuracy and completeness of The Journal's reporting.
    - Warren E. Buffett, letter to The Wall Street Journal
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.svlug.org/archives/svlug/attachments/20050429/f159e7cf/attachment.bin


More information about the svlug mailing list