[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v3] mm/page_alloc: make bootscrub happen in idle-loop



On Wed, Nov 07, 2018 at 04:36:08PM +0000, Sergey Dyasli wrote:
> On 07/11/2018 12:17, Wei Liu wrote:
> > On Wed, Nov 07, 2018 at 11:11:49AM +0000, Sergey Dyasli wrote:
> >> Scrubbing RAM during boot may take a long time on machines with lots
> >> of RAM. Add 'idle' option to bootscrub which marks all pages dirty
> >> initially so they will eventually be scrubbed in idle-loop on every
> >> online CPU.
> >>
> >> It's guaranteed that the allocator will return scrubbed pages by doing
> >> eager scrubbing during allocation (unless MEMF_no_scrub was provided).
> >>
> >> Use the new 'idle' option as the default one.
> >>
> >> Signed-off-by: Sergey Dyasli <sergey.dyasli@xxxxxxxxxx>
> >> Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
> >> ---
> >> v2 --> v3:
> >> - Removed "= 0" from enum bootscrub_mode
> >> - Removed num_online_nodes() from printk()
> >> - Added Reviewed-by
> > 
> > I think your patch (v2?) is already committed.
> 
> Hmm, you are right: CommitDate: Wed Nov 7 09:34:17 2018 +0100
> Sorry, I wasn't expecting that.
> 
> Though printk() in the committed version has a typo:
> 
>     printk("Scrubbing free RAM on in background\n");
>                                ^^

Feel free to send a followup patch to fix that.

Wei.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.