Re: Linux Memory Accounting

  • From: "Jared Still" <jkstill@xxxxxxxxx>
  • To: "Thomas A. La Porte" <tlaporte@xxxxxxxxxxxxxxxxxxx>
  • Date: Mon, 2 Oct 2006 14:45:30 -0700

Do you have a script/process that does that?

I'm not into reinventing the wheel here if I can avoid it.

Would be sweet if linux actually knew how to properly account for its


On 10/2/06, Thomas A. La Porte <tlaporte@xxxxxxxxxxxxxxxxxxx> wrote:

Isn't the overage related to shared memory?

I.e. the RSS for any one process includes *all* of the shared
memory used by that process. And so when four processes share a
1GB memory segment, the sum of RSS == 4GB, while physical memory
used is actually only 1GB?

  -- Tom

On Mon, 2 Oct 2006, Jared Still wrote:

> Thanks, though I think you knew what I meant. :)
> To be more precise in what I am asking:
> --------------------------------------
> According to the ps man page:
> rss            RSS         resident set size, the non-swapped physical
> memory that a task has used (in kiloBytes).
>                          (alias rssize, rsz).
> What's interesting is that summing RSS for all Oracle processes
> on the server in question (RH ES 4 64 Bit) yield 25 gig of RAM.
> The server has only 12 gig of RAM.
> Here's the ps command:
> ps -fywluoracle  | awk  '{ mem=mem+$8 } END{ mem=mem*1024; print "bytes:
> mem}'
> My question is:  Does someone here know what is really being reported by
> RSS?
> Or is it just untrustworthy?

-- Jared Still Certifiable Oracle DBA and Part Time Perl Evangelist

Other related posts: