lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Tue, 22 Feb 2011 11:13:40 +0800 From: Yong Zhang <yong.zhang0@...il.com> To: Peter Zijlstra <peterz@...radead.org> Cc: Mike Galbraith <efault@....de>, linux-kernel@...r.kernel.org, Ingo Molnar <mingo@...e.hu> Subject: Re: [PATCH 5/5] sched, autogroup: runtime enable/disable tuning fix On Tue, Feb 22, 2011 at 12:36 AM, Peter Zijlstra <peterz@...radead.org> wrote: > On Sun, 2011-02-20 at 18:22 +0100, Mike Galbraith wrote: >> >> Your whole series looked fine to me at a glance (sunday;), with the >> exception of #2, that one is maybe iffy, depending on point of view. > > Right, so I've queued 1 and 3, 2 is like you said iffy, if there's an > autogroup it should display it. So how about replacing patch-2 by below one for now? --- From: Yong Zhang <yong.zhang0@...il.com> Subject: [PATCH] sched, autogroup: always show autogroup name in sched_debug When autogroup is disabled, there will be lots of group named "cfs_rq[cpu]:", thus will lead to confusion for who read it. And for now, autogroup runtime disable/enable will not take effect immediately on current live processes, so there maybe still have some processes attaching to its autogroup. So show autogroup name always. But for the root group, its name will dance between "cfs_rq[cpu]:" and "cfs_rq[cpu]:/autogroup-0" according to sysctl_sched_autogroup_enabled. Signed-off-by: Yong Zhang <yong.zhang0@...il.com> Cc: Ingo Molnar <mingo@...e.hu> Cc: Peter Zijlstra <peterz@...radead.org> Cc: Mike Galbraith <efault@....de> --- kernel/sched_autogroup.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/kernel/sched_autogroup.c b/kernel/sched_autogroup.c index 64919dc..6114e3e 100644 --- a/kernel/sched_autogroup.c +++ b/kernel/sched_autogroup.c @@ -301,7 +301,7 @@ static inline int autogroup_path(struct task_group *tg, char *buf, int buflen) { int enabled = ACCESS_ONCE(sysctl_sched_autogroup_enabled); - if (!enabled || !tg->autogroup) + if (!tg->autogroup || (!tg->autogroup->id && !enabled)) return 0; return snprintf(buf, buflen, "%s-%ld", "/autogroup", tg->autogroup->id); -- 1.7.1 -- Only stand for myself -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists