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

From: Wu Fengguang
Date: Sat Aug 15 2009 - 02:15:42 EST


On Sat, Aug 15, 2009 at 06:37:22AM +0800, Rik van Riel wrote:
> Dike, Jeffrey G wrote:
> > A side note - I've been doing some tracing and shrink_active_list
> > is called a humongous number of times (25000-ish during a ~90 kvm
> > run), with a net result of zero pages moved nearly all the time.

Your mean "no pages get deactivated at all in most invocations"?
This is possible in the steady (thrashing) state of a memory tight
system(the working set is bigger than memory size).

> > Your test is rescuing essentially all candidate pages from the
> > inactive list. Right now, I have the VM_EXEC || PageAnon version
> > of your test.
>
> That is exactly why the the split LRU VM does an unconditional
> deactivation of active anon pages :)

In general it is :) However in Jeff's small memory case, there
will be many refaults without the "PageAnon" protection. But the
patch does not imply that I'm happy with the "PageAnon" test ;)

Thanks,
Fengguang
--
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/