mm/page_alloc: make bootscrub happen in idle-loop
authorSergey Dyasli <sergey.dyasli@citrix.com>
Wed, 7 Nov 2018 08:34:17 +0000 (09:34 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 7 Nov 2018 08:34:17 +0000 (09:34 +0100)
commit0b24ef785379fff7cfb6e240e985f230155b2b12
tree321a50eb5ca1edc6894ab6739837d81e649d4243
parentcc76410d20aff2cc07b268b0713dc1d2740c6e12
mm/page_alloc: make bootscrub happen in idle-loop

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@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
docs/misc/xen-command-line.markdown
xen/common/page_alloc.c