Re: Over used cache memory?
From: Wee Teck Neo
Date: Thu Nov 06 2003 - 04:34:36 EST
Ok...... Thanks got an idea how linux uses memory.
Thanks
----Original Message Follows----
From: Jerry Lundström <jerry.lundstrom@xxxxxxxx>
To: Wee Teck Neo <slashboy84@xxxxxxx>
CC: linux-kernel@xxxxxxxxxxxxxxx
Subject: Re: Over used cache memory?
Date: Thu, 06 Nov 2003 10:16:19 +0100
Wee Teck Neo wrote:
But seems like the swap space is begin used because of "insufficent" free
memory. I'm not sure if there is a performance slow down.
no no no, this is the way linux works. Memory from programs that are not
accessed alot are put into the swap so that the not-so-offen-used memory can
be used by other programs or the cache to speed up everything. When that
program later access the swaped memory it will load it up and remove some of
the cache and after a while it will put it back into the swap (dont have any
numbers on how long till it will but trust linux, it does it very good).
I wouldnt worry at all about those numbers, they are very common in 1gig
server systems and ive worked with alot of them, even 4gig mem systems use
the swap, thats what its for...
If you are worried about preformance with memory and such after all
configure you systems like this:
If you use IDE have the system disk on one IDE channel and a standalone swap
disk on another IDE channel (not master or slave way but ide0 or ide1). For
SCSI you can just put the swap on a seperate disk.
Doing this will speed up alot of stuff since linux have 100% access to the
swap when it needs too, it doesnt have to share the IO to the disk with
another partition.
Otherwise Id just say, dont worry about it... Linux knows what its doing...
hope it helps...
_________________________________________________________________
Keep track of Singapore & Malaysia stock prices.
http://www.msn.com.sg/money/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/