Re: [RFC] respect the referenced bit of KVM guest pages?

From: KAMEZAWA Hiroyuki
Date: Thu Aug 06 2009 - 21:27:46 EST


On Thu, 06 Aug 2009 13:14:09 +0300
Avi Kivity <avi@xxxxxxxxxx> wrote:

> On 08/06/2009 12:59 PM, Wu Fengguang wrote:
> >> Do we know for a fact that only stack pages suffer, or is it what has
> >> been noticed?
> >>
> >
> > It shall be the first case: "These pages are nearly all stack pages.",
> > Jeff said.
> >
>
> Ok. I can't explain it. There's no special treatment for guest stack
> pages. The accessed bit should be maintained for them exactly like all
> other pages.
>
> Are they kernel-mode stack pages, or user-mode stack pages (the
> difference being that kernel mode stack pages are accessed through large
> ptes, whereas user mode stack pages are accessed through normal ptes).
>


Hmm, finally, memcg's problem ?
just as an experiment, how following works ?

- memory.limit_in_bytes = 128MB
- memory.memsw.limit_in_bytes = 160MB

By this, if mamory+swap usage hits 160MB, no swap more.
But plz take care of OOM.

THanks,
-Kame

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