lkml.org 
[lkml]   [2003]   [Nov]   [6]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateThu, 06 Nov 2003 10:16:19 +0100
FromJerry Lundström <>
SubjectRe: Over used cache memory?
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...

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:58    [from the cache]
©2003-2008