From 73764f0b1b19f1fee0d5518bde05ddaddc22f833 Mon Sep 17 00:00:00 2001 From: Zhang Qiao Date: Sun, 24 Apr 2022 11:30:01 +0800 Subject: [PATCH] sysctl: Modify sysctl_overload_detect_period minimum to 100ms hulk inclusion category: features bugzilla: https://gitee.com/openeuler/kernel/issues/I4UQ08 CVE: NA -------------------------------- The sysctl_overload_detect_period indicates the maximum time that an offline task can be preempted by online tasks. Currently, this minimum is 1s, it is too long for the vcpu thread in VM. So set its minimum to 100ms. Signed-off-by: Zhang Qiao Reviewed-by: Chen Hui Signed-off-by: Zheng Zengkai --- kernel/sysctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 89ef0c1a1642..7daa5b045a17 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -2699,7 +2699,7 @@ static struct ctl_table kern_table[] = { .maxlen = sizeof(unsigned int), .mode = 0644, .proc_handler = proc_dointvec_minmax, - .extra1 = &one_thousand, + .extra1 = &one_hundred, .extra2 = &hundred_thousand, }, { -- GitLab