AutoPage Migration - V0.1 - 2/8 add sched_migrate_memory sysctl
Subsystems (2)
AutoPage Migration - V0.1 - 2/8 add sched_migrate_memory sysctl
This patch adds the infrastructure for "migration controls" under /sys/kernel/migration. It also adds a single such control-- sched_migrate_memory--to enable/disable scheduler driven task memory migration. May also be initialized from boot command line option.
Default is disabled!
Note that this patch also introduces a new header: <linux/auto-migrate.h> to contain the minimal memory migration definitions required to hook the migration to the scheduler's inter-node task migration. At this point, the header contains only the extern declaration for the sched_migrate_memory control.
include/linux/auto-migrate.h new file +20 -0
@@ -0,0 +1,20 @@ +#ifndef _LINUX_AUTO_MIGRATE_H +#define _LINUX_AUTO_MIGRATE_H + +/* +* minimal memory migration definitions need by scheduler, +* sysctl, ..., so that they don't need to drag in the entire +* mempolicy.h and all that it depends on. +*/ + +#include <linux/config.h> + +#ifdef CONFIG_MIGRATION + +extern int sched_migrate_memory;/* sysctl: enable/disable */ + +#else + +#endif + +#endif
mm/mempolicy.c +74 -0
92 lines not on this page · raw message
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>