Merge "vmscan: Support multiple kswapd threads per node"
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
commit
64f0825f01
@@ -143,6 +143,8 @@ static int six_hundred_forty_kb = 640 * 1024;
|
||||
static unsigned int __maybe_unused half_million = 500000;
|
||||
static unsigned int __maybe_unused one_hundred_million = 100000000;
|
||||
static unsigned int __maybe_unused one_million = 1000000;
|
||||
static int __maybe_unused max_kswapd_threads = MAX_KSWAPD_THREADS;
|
||||
|
||||
#ifdef CONFIG_SCHED_WALT
|
||||
static int neg_three = -3;
|
||||
static int three = 3;
|
||||
@@ -1825,6 +1827,17 @@ static struct ctl_table vm_table[] = {
|
||||
.proc_handler = watermark_boost_factor_sysctl_handler,
|
||||
.extra1 = SYSCTL_ZERO,
|
||||
},
|
||||
#ifdef CONFIG_MULTIPLE_KSWAPD
|
||||
{
|
||||
.procname = "kswapd_threads",
|
||||
.data = &kswapd_threads,
|
||||
.maxlen = sizeof(kswapd_threads),
|
||||
.mode = 0644,
|
||||
.proc_handler = kswapd_threads_sysctl_handler,
|
||||
.extra1 = SYSCTL_ONE,
|
||||
.extra2 = &max_kswapd_threads,
|
||||
},
|
||||
#endif
|
||||
{
|
||||
.procname = "watermark_scale_factor",
|
||||
.data = &watermark_scale_factor,
|
||||
|
||||
Reference in New Issue
Block a user