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

Avi Kivity
2011-05-30T12:33:15Z

On 05/30/2011 03:30 PM, Pekka Enberg wrote:
> On Mon, May 30, 2011 at 3:23 PM, Avi Kivity<avi@redhat.com> wrote:
> > IIRC there never was a memset() of all RAM, at least since kvm started
> > booting Linux. Windows has a zeroing thread which causes all of RAM to be
> > committed shortly after boot, though.
>
> Yup, I haven't heard of such thing either. AFAIK, it's all done lazily
> by the page allocator.

Note that in these days of dma engines a zeroing thread makes some
sense. During a kernel build I see quite a bit of time spent in
clear_page_c() or something. It would be nice to have the dma engine
prepare some clear pages so we could skip it.

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