path: root/mm/mm_init.c
diff options
authorMel Gorman <>2015-06-30 14:57:05 -0700
committerLinus Torvalds <>2015-06-30 19:44:56 -0700
commit7e18adb4f80bea90d30b62158694d97c31f71d37 (patch)
tree381b23cf9315c747752e9610c71b38f5a9a58db8 /mm/mm_init.c
parent3a80a7fa7989fbb6aa56bb6ad31811b62cf99e60 (diff)
mm: meminit: initialise remaining struct pages in parallel with kswapd
Only a subset of struct pages are initialised at the moment. When this patch is applied kswapd initialise the remaining struct pages in parallel. This should boot faster by spreading the work to multiple CPUs and initialising data that is local to the CPU. The user-visible effect on large machines is that free memory will appear to rapidly increase early in the lifetime of the system until kswapd reports that all memory is initialised in the kernel log. Once initialised there should be no other user-visibile effects. Signed-off-by: Mel Gorman <> Tested-by: Nate Zimmer <> Tested-by: Waiman Long <> Tested-by: Daniel J Blueman <> Acked-by: Pekka Enberg <> Cc: Robin Holt <> Cc: Nate Zimmer <> Cc: Dave Hansen <> Cc: Waiman Long <> Cc: Scott Norton <> Cc: "Luck, Tony" <> Cc: Ingo Molnar <> Cc: "H. Peter Anvin" <> Cc: Thomas Gleixner <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'mm/mm_init.c')
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/mm_init.c b/mm/mm_init.c
index 5f420f7fafa1..28fbf87b20aa 100644
--- a/mm/mm_init.c
+++ b/mm/mm_init.c
@@ -11,6 +11,7 @@
#include <linux/export.h>
#include <linux/memory.h>
#include <linux/notifier.h>
+#include <linux/sched.h>
#include "internal.h"