Re: [PATCH v2 6/8] kvm tools: Add rwlock wrapper

Avi Kivity
2011-05-30T14:30:15Z

On 05/30/2011 05:10 PM, Ingo Molnar wrote:
> > [...] Windows has a zeroing thread which causes all of RAM to be
> > committed shortly after boot, though.
>
> heh, maybe they read lkml and copied my ancient idea:
>
> http://people.redhat.com/mingo/clearpage-patches/clearpage-2.3.18-J1
>
> An earlier version had a 'zerod' (page zeroing kernel thread).
>
> This was one of my more stupid ideas btw.
>

I think that with a dma engine it makes sense. We've got an extra
resource, why not utilize it in the background? Some workloads generate
a lot of demand for zero pages.

I agree that using the cpu to clear memory is not a good idea, it just
causes cache pollution.

--
error compiling committee.c: too many arguments to function