cgroups.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tejun Heo <tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
To: "Eric W. Biederman" <ebiederm-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org>
Cc: Glauber Costa <glommer-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>,
	Frederic Weisbecker
	<fweisbec-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	Balbir Singh
	<bsingharora-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	Pavel Emelyanov <xemul-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>,
	Suleiman-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org,
	Daniel Lezcano
	<daniel.lezcano-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
	Tim Hockin <thockin-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>,
	Greg Thelen <gthelen-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>,
	Paul Turner <pjt-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>,
	devel-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org,
	Serge Hallyn
	<serge.hallyn-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>,
	Souhlal <ssouhlal-HZy0K5TPuP5AfugRpC6u6w@public.gmane.org>,
	Dave Kleikamp
	<dave.kleikamp-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>,
	Dhaval Giani
	<dhaval.giani-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	KAMEZAWA Hiroyuki
	<kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A@public.gmane.org>,
	Maxim-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org,
	Johannes Weiner <hannes-druUgvl0LCNAfugRpC6u6w@public.gmane.org>,
	Rohit Seth <rohitseth-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>,
	Patlasov <MPatlasov-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
Subject: Re: [Devel] Re: containers and cgroups mini-summit @ Linux Plumbers
Date: Thu, 26 Jul 2012 12:44:41 -0700	[thread overview]
Message-ID: <20120726194441.GB25660@google.com> (raw)
In-Reply-To: <87a9ymwcsv.fsf-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org>

Hey, Eric.

On Thu, Jul 26, 2012 at 12:19:12PM -0700, Eric W. Biederman wrote:
> > No, any attempt to build namespace support into cgroup core code will
> > be nacked with strong prejudice.
> 
> The cgroup code was only merged with the understanding that this support
> was simple to add and it would be added.  I am sorry that no one had
> the sense to follow up and make certain that promise was not fullfilled.

Good chunk of cgroup is messy and I'm likely to continue to break a
lot of whatever promises that have been made. :)

> > Thankfully, procfs is going the FUSE way.
> 
> No procfs is not going the FUSE way.  Hacks for programs that misuse
> information in procfs is going the FUSE way.

All those were proposed to be solved by "teaching" kernel procfs how
to present itself differently.

> The best example is there currently is not a good method for programs
> to figure out how parellel it is productive to be so the programs
> read /proc/cpuinfo and get the count of cpus.  Control groups can
> limit you to fewer cpus but those programs have figured that out yet.

Yeah, and you can handle that too nicely with FUSE.  More on this
later.

> But ultimately fuse for procfs is about the rare case where people
> want to lie to applications, because it is easier to lie to applications
> then to disabuse the applications of their mistaken asumptions.

I don't think so.  They are necessary parts of representing a properly
scoped environment.

> I have not seen a single suggest that any of the other procfs bits
> can go away.

I think I made that a couple times now.  I definitely intend to push
things that way.  Or, at least, I'll bark as hard as I can against
adding more namespace stuff to system pseudo filesystems.

> > and I hope in time we could convert sysfs to a similar mechanism and
> > deprecate the in-kernel support.
> 
> I have nothing that even suggests there is a reasonable possibility of
> using fuse to deprecate any of the proc or sysfs support.

Why not?  If there's some deficiency in FUSE or notification
mechanisms in pseudo FSes, let's fix them.

> > So, no, no, no, no, no, no, no, no, no, no, no, no. :P
> 
> Bahahahahahahaha! :P

:)

> I sort of wish I had the energy to tackle this.  As it is control groups
> hierarchies have very severe usablilty problems supporting one of their
> core use cases.
> 
> We should have our interfaces designed such that it is possible to run
> nested init's without hacks, and the only significant piece left on the
> hacks pile is control groups.
> 
> Control group hiearchies are are really strange piece of work whose
> design makes very little sense to me.

cgroupfs is riddled with confused designs but this is not it.  The
confusion is that namespace should play a major role in the design of
system pseudo filesystems and that it can be achieved by playing
peekaboo with dentries.

It obfuscates the code for niche use case - which in itself could be
acceptable if that's the only / best way to achieve that - while not
even being able to serve the said use case properly.

Thanks.

-- 
tejun

  parent reply	other threads:[~2012-07-26 19:44 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-11 21:41 containers and cgroups mini-summit @ Linux Plumbers Kir Kolyshkin
     [not found] ` <4FFDF321.4030103-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org>
2012-07-12  3:47   ` Serge Hallyn
2012-07-13 15:09     ` Kir Kolyshkin
     [not found]       ` <50003A13.4000201-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org>
2012-07-16 20:29         ` Serge Hallyn
2012-07-12 13:26   ` Frederic Weisbecker
2012-07-16 21:08   ` Dhaval Giani
2012-07-17  6:59   ` Balbir Singh
     [not found]     ` <CAKTCnzmhWZa=_+EE9rA63NuJf3kQ-bXNYStXmZXt8r2w-N02ag-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-07-18 10:36       ` James Bottomley
2012-07-17  7:26   ` Daniel Lezcano
     [not found]     ` <50051390.7010109-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2012-07-25  8:48       ` Glauber Costa
2012-07-17 20:06   ` Tejun Heo
     [not found]     ` <20120717200606.GD24336-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
2012-07-17 20:15       ` Paul Turner
2012-07-20 16:30   ` Johannes Weiner
2012-07-21  1:59   ` Kamezawa Hiroyuki
2012-07-25  8:55   ` Glauber Costa
     [not found]     ` <500FB473.3090606-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
2012-07-25 10:00       ` Eric W. Biederman
     [not found]         ` <871uk0b1p4.fsf-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org>
2012-07-25 10:00           ` Glauber Costa
     [not found]             ` <500FC3C9.4010005-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
2012-07-25 10:02               ` [Devel] " Glauber Costa
     [not found]                 ` <500FC44C.1030606-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
2012-07-25 11:16                   ` Eric W. Biederman
2012-07-26 11:16               ` Andrea Righi
2012-07-25 10:53   ` Glauber Costa
     [not found]     ` <500FD022.6000608-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
2012-07-25 11:51       ` Serge Hallyn
2012-07-25 11:52         ` Glauber Costa
     [not found]           ` <500FDE1B.4090907-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
2012-07-25 12:15             ` Serge Hallyn
2012-07-26  3:57       ` Eric W. Biederman
     [not found]         ` <877gtr6uo5.fsf-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org>
2012-07-26  9:16           ` Glauber Costa
     [not found]             ` <50110AE6.2080701-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
2012-07-26  9:26               ` [Devel] " Glauber Costa
     [not found]                 ` <50110D53.2090407-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
2012-07-26 10:42                   ` Eric W. Biederman
     [not found]                     ` <874nou6bx1.fsf-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org>
2012-07-26 18:15                       ` Tejun Heo
     [not found]                         ` <20120726181528.GA25660-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
2012-07-26 19:19                           ` Eric W. Biederman
     [not found]                             ` <87a9ymwcsv.fsf-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org>
2012-07-26 19:44                               ` Tejun Heo [this message]
2012-07-26 18:16                       ` Serge Hallyn
2012-07-26 19:38                         ` Eric W. Biederman
2012-07-26 10:57               ` Eric W. Biederman
2012-07-26 18:09           ` Serge Hallyn
2012-08-02  8:37   ` Daniel Wagner
     [not found]     ` <501A3C48.6060607-kQCPcA+X3s7YtjvyW6yDsg@public.gmane.org>
2012-08-02  8:37       ` Glauber Costa
     [not found]         ` <501A3C4D.1020101-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
2012-08-02  9:42           ` Daniel Wagner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120726194441.GB25660@google.com \
    --to=tj-dgejt+ai2ygdnm+yrofe0a@public.gmane.org \
    --cc=MPatlasov-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org \
    --cc=Maxim-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org \
    --cc=Suleiman-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org \
    --cc=bsingharora-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=daniel.lezcano-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
    --cc=dave.kleikamp-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org \
    --cc=devel-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org \
    --cc=dhaval.giani-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=ebiederm-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org \
    --cc=fweisbec-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=glommer-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org \
    --cc=gthelen-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org \
    --cc=hannes-druUgvl0LCNAfugRpC6u6w@public.gmane.org \
    --cc=kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A@public.gmane.org \
    --cc=pjt-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org \
    --cc=rohitseth-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org \
    --cc=serge.hallyn-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org \
    --cc=ssouhlal-HZy0K5TPuP5AfugRpC6u6w@public.gmane.org \
    --cc=thockin-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org \
    --cc=xemul-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).