Re: VM question - accounting of SysV SHM

From: Lee Revell
Date: Wed Oct 17 2007 - 17:11:44 EST


On 10/17/07, Rik van Riel <riel@xxxxxxxxxx> wrote:
> On Wed, 17 Oct 2007 16:49:07 -0400
> "Lee Revell" <rlrevell@xxxxxxxxxxx> wrote:
>
> > Sorry to ask this question on the list but I've Googled and found
> > nothing.
> >
> > Is system V shared memory accounted for as Cached, or as normal
> > application memory?
>
> Cached.
>
> Shared memory segments basically are tmpfs files.

Thanks!

Are there any plans to track it separately in a future kernel release?

I've also noticed that if huge pages are used for the shared memory,
they are not accounted for as cached - I have a 56GB huge page pool
but cached is only 6GB. Is this behavior specific to huge pages?

Finally, are these quirks documented anywhere?

Lee
-
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/