All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC 0/5] forced comounts for cgroups.
@ 2012-09-04 14:18 ` Glauber Costa
  0 siblings, 0 replies; 92+ messages in thread
From: Glauber Costa @ 2012-09-04 14:18 UTC (permalink / raw)
  To: linux-kernel
  Cc: cgroups, linux-mm, davej, ben, a.p.zijlstra, pjt, lennart,
	kay.sievers, tj

Hi,

As we have been extensively discussing, the cost and pain points for cgroups
come from many places. But at least one of those is the arbitrary nature of
hierarchies. Many people, including at least Tejun and me would like this to go
away altogether. Problem so far, is breaking compatiblity with existing setups

I am proposing here a default-n Kconfig option that will guarantee that the cpu
cgroups (for now) will be comounted. I started with them because the
cpu/cpuacct division is clearly the worst offender. Also, the default-n is here
so distributions will have time to adapt: Forcing this flag to be on without
userspace changes will just lead to cgroups failing to mount, which we don't
want.

Although I've tested it and it works, I haven't compile-tested all possible
config combinations. So this is mostly for your eyes. If this gets traction,
I'll submit it properly, along with any changes that you might require.

Thanks.

Glauber Costa (5):
  cgroup: allow some comounts to be forced.
  sched: adjust exec_clock to use it as cpu usage metric
  sched: do not call cpuacct_charge when cpu and cpuacct are comounted
  cpuacct: do not gather cpuacct statistics when not mounted
  sched: add cpusets to comounts list

 include/linux/cgroup.h |   6 ++
 init/Kconfig           |  23 ++++++++
 kernel/cgroup.c        |  29 +++++++++-
 kernel/cpuset.c        |   4 ++
 kernel/sched/core.c    | 149 +++++++++++++++++++++++++++++++++++++++++++++----
 kernel/sched/rt.c      |   1 +
 kernel/sched/sched.h   |  20 ++++++-
 7 files changed, 220 insertions(+), 12 deletions(-)

-- 
1.7.11.4

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 92+ messages in thread

end of thread, other threads:[~2012-09-08 13:36 UTC | newest]

Thread overview: 92+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-04 14:18 [RFC 0/5] forced comounts for cgroups Glauber Costa
2012-09-04 14:18 ` Glauber Costa
2012-09-04 14:18 ` [RFC 1/5] cgroup: allow some comounts to be forced Glauber Costa
2012-09-04 14:18   ` Glauber Costa
2012-09-04 14:18 ` [RFC 2/5] sched: adjust exec_clock to use it as cpu usage metric Glauber Costa
2012-09-04 14:18   ` Glauber Costa
2012-09-04 14:18 ` [RFC 3/5] sched: do not call cpuacct_charge when cpu and cpuacct are comounted Glauber Costa
2012-09-04 14:18   ` Glauber Costa
2012-09-04 14:18 ` [RFC 4/5] cpuacct: do not gather cpuacct statistics when not mounted Glauber Costa
2012-09-04 14:18   ` Glauber Costa
2012-09-04 14:18 ` [RFC 5/5] sched: add cpusets to comounts list Glauber Costa
2012-09-04 14:18   ` Glauber Costa
     [not found] ` <1346768300-10282-1-git-send-email-glommer-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
2012-09-04 21:46   ` [RFC 0/5] forced comounts for cgroups Tejun Heo
2012-09-04 21:46     ` Tejun Heo
2012-09-04 21:46     ` Tejun Heo
     [not found]     ` <20120904214602.GA9092-RcKxWJ4Cfj1J2suj2OqeGauc2jM2gXBXkQQo+JxHRPFibQn6LdNjmg@public.gmane.org>
2012-09-05  8:03       ` Glauber Costa
2012-09-05  8:03         ` Glauber Costa
2012-09-05  8:03         ` Glauber Costa
2012-09-05  8:14         ` Tejun Heo
2012-09-05  8:14           ` Tejun Heo
2012-09-05  8:17           ` Glauber Costa
2012-09-05  8:17             ` Glauber Costa
2012-09-05  8:29             ` Tejun Heo
2012-09-05  8:29               ` Tejun Heo
     [not found]               ` <20120905082947.GD3195-RcKxWJ4Cfj1J2suj2OqeGauc2jM2gXBXkQQo+JxHRPFibQn6LdNjmg@public.gmane.org>
2012-09-05  8:35                 ` Glauber Costa
2012-09-05  8:35                   ` Glauber Costa
2012-09-05  8:35                   ` Glauber Costa
2012-09-05  8:47                   ` Tejun Heo
2012-09-05  8:47                     ` Tejun Heo
     [not found]                     ` <20120905084740.GE3195-RcKxWJ4Cfj1J2suj2OqeGauc2jM2gXBXkQQo+JxHRPFibQn6LdNjmg@public.gmane.org>
2012-09-05  8:55                       ` Glauber Costa
2012-09-05  8:55                         ` Glauber Costa
2012-09-05  8:55                         ` Glauber Costa
2012-09-05  9:07                         ` Tejun Heo
2012-09-05  9:07                           ` Tejun Heo
     [not found]                           ` <20120905090744.GG3195-RcKxWJ4Cfj1J2suj2OqeGauc2jM2gXBXkQQo+JxHRPFibQn6LdNjmg@public.gmane.org>
2012-09-05  9:06                             ` Glauber Costa
2012-09-05  9:06                               ` Glauber Costa
2012-09-05  9:06                               ` Glauber Costa
     [not found]                               ` <5047161F.60503-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
2012-09-05  9:14                                 ` Tejun Heo
2012-09-05  9:14                                   ` Tejun Heo
2012-09-05  9:14                                   ` Tejun Heo
2012-09-05  9:06                     ` Peter Zijlstra
2012-09-05  9:06                       ` Peter Zijlstra
2012-09-05  9:07                       ` Peter Zijlstra
2012-09-05  9:07                         ` Peter Zijlstra
2012-09-05  9:22                         ` Tejun Heo
2012-09-05  9:22                           ` Tejun Heo
2012-09-05  9:11                       ` Tejun Heo
2012-09-05  9:11                         ` Tejun Heo
2012-09-05  9:11                         ` Tejun Heo
2012-09-05  9:12                         ` Glauber Costa
2012-09-05  9:12                           ` Glauber Costa
     [not found]                           ` <50471782.6060800-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
2012-09-05  9:19                             ` Tejun Heo
2012-09-05  9:19                               ` Tejun Heo
2012-09-05  9:19                               ` Tejun Heo
2012-09-05  9:30                               ` Glauber Costa
2012-09-05  9:30                                 ` Glauber Costa
2012-09-05  9:30                                 ` Glauber Costa
2012-09-05  9:26                           ` Peter Zijlstra
2012-09-05  9:26                             ` Peter Zijlstra
2012-09-05  9:31                             ` Glauber Costa
2012-09-05  9:31                               ` Glauber Costa
2012-09-05  9:31                               ` Glauber Costa
2012-09-05  9:45                               ` Tejun Heo
2012-09-05  9:45                                 ` Tejun Heo
2012-09-05  9:48                                 ` Glauber Costa
2012-09-05  9:48                                   ` Glauber Costa
2012-09-05  9:56                                   ` Tejun Heo
2012-09-05  9:56                                     ` Tejun Heo
     [not found]                               ` <50471C0C.7050600-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
2012-09-05 10:20                                 ` Peter Zijlstra
2012-09-05 10:20                                   ` Peter Zijlstra
2012-09-05 10:20                                   ` Peter Zijlstra
2012-09-06 20:38                                   ` Tejun Heo
2012-09-06 20:38                                     ` Tejun Heo
     [not found]                                     ` <20120906203839.GM29092-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
2012-09-06 22:39                                       ` Glauber Costa
2012-09-06 22:39                                         ` Glauber Costa
2012-09-06 22:39                                         ` Glauber Costa
     [not found]                                         ` <50492617.8030609-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
2012-09-06 22:45                                           ` Tejun Heo
2012-09-06 22:45                                             ` Tejun Heo
2012-09-06 22:45                                             ` Tejun Heo
2012-09-05  9:32                       ` Tejun Heo
2012-09-05  9:32                         ` Tejun Heo
2012-09-05  9:32                         ` Tejun Heo
2012-09-05 10:04                         ` Peter Zijlstra
2012-09-05 10:04                           ` Peter Zijlstra
2012-09-06 20:46                           ` Tejun Heo
2012-09-06 20:46                             ` Tejun Heo
2012-09-06 21:11                             ` Paul Turner
2012-09-06 21:11                               ` Paul Turner
2012-09-06 22:36                               ` Glauber Costa
2012-09-06 22:36                                 ` Glauber Costa
2012-09-08 13:36                               ` Dhaval Giani
2012-09-08 13:36                                 ` Dhaval Giani

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.