mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Wee Teck Neo" <slashboy84@msn.com>
To: linux-kernel@vger.kernel.org
Subject: Re: Over used cache memory?
Date: Thu, 06 Nov 2003 17:15:33 +0800	[thread overview]
Message-ID: <BAY4-F40qelZScM4qcI00005e31@hotmail.com> (raw)

   procs                      memory      swap          io     system      
cpu
r  b  w   swpd   free   buff  cache   si   so    bi    bo   in    cs us sy 
id
1  0  0  92744   9640  20240 801644    0    0     3    10   17     0 25  2 
10


This one will be wierd.

I'm having 4 program running at background using 50MB each (got it from 
"top")
Total up to about 200MB.

The system is having 1GB ram and currently using 92MB as swap. Why does the 
system use the slower swap when there are still memory available (as cache). 
Anyway to "force" the system to use more ram instead of putting into swap 
memory?



----Original Message Follows----
From: Helge Hafting <helgehaf@aitel.hist.no>
To: Wee Teck Neo <slashboy84@msn.com>
CC: linux-kernel@vger.kernel.org
Subject: Re: Over used cache memory?
Date: Thu, 06 Nov 2003 10:11:50 +0100

Wee Teck Neo wrote:
>My system having 1GB ram and this is the output of vmstat
>
>   procs                      memory      swap          io     system      
>cpu
>r  b  w   swpd   free   buff  cache   si   so    bi    bo   in    cs us sy 
>id
>0  0  0   5640  21224 121512 797832    0    0     6     9    3    17  0  0  
>6
>
>
>It seems that 797MB is used for caching... thats a high number. Anyway to 
>set a lower cache size?

Yes - _use_ the memory for something else. 1. All unused memory will be put 
to good use as cache.
2. Memory is taken from the cache whenever you need it for
   something else, so (1) is not a problem at all.

Helge Hafting

_________________________________________________________________
Take a break! Find destinations on MSN Travel. http://www.msn.com.sg/travel/


             reply	other threads:[~2003-11-06  9:15 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-06  9:15 Wee Teck Neo [this message]
2003-11-06 19:07 ` Jose Luis Domingo Lopez
2003-11-06 19:57   ` Maciej Zenczykowski
2003-11-06 20:50     ` Daniel Gryniewicz
  -- strict thread matches above, loose matches on Subject: below --
2003-11-06  9:33 Wee Teck Neo
     [not found] <BAY4-F18tJyMmxsywxZ00005d1a@hotmail.com>
2003-11-06  9:16 ` Jerry Lundström
2003-11-06  8:05 Wee Teck Neo
2003-11-06  8:25 ` Nick Piggin
2003-11-06  8:59 ` Jerry Lundström
2003-11-06  9:11 ` Helge Hafting
2003-11-06 13:40   ` jlnance
2003-11-06 14:14     ` Gianni Tedesco
2003-11-06 21:47       ` jlnance

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BAY4-F40qelZScM4qcI00005e31@hotmail.com \
    --to=slashboy84@msn.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®