linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dhaval Giani <dhaval.giani@gmail.com>
To: James Kosin <jkosin@intcomgrp.com>
Cc: Jan Safranek <jsafrane@redhat.com>,
	Peter Zijlstra <peterz@infradead.org>,
	linux-kernel@vger.kernel.org, menage@google.com,
	balbir@linux.vnet.ibm.com, lennart@poettering.net,
	tglx@linutronix.de
Subject: Re: [PATCH/RFC] Have sane default values for cpusets
Date: Wed, 12 May 2010 19:42:20 +0200	[thread overview]
Message-ID: <AANLkTikEyJ8q9GkpyZo0OUY4MLM_soWEviiBG2R6H-mY@mail.gmail.com> (raw)
In-Reply-To: <4BEAE7A1.2010001@intcomgrp.com>

On Wed, May 12, 2010 at 7:38 PM, James Kosin <jkosin@intcomgrp.com> wrote:
> On 5/12/2010 10:40 AM, Jan Safranek wrote:
>
> On 05/12/2010 04:20 PM, Peter Zijlstra wrote:
>
> On Wed, 2010-05-12 at 16:13 +0200, Dhaval Giani wrote:
>
> What you are saying is that an application
> programmer who wants to just use memory cgroups should also care about
> cpusets and just about countless other cgroup subsystems that can
> exist.
>
> That's exactly what he says if he mounts them together.
>
> No, the programmer does not mount anything. Programmer writes application
> which wants to create a subgroup. System admin is the one who decides what
> is mounted how. And the programmer (=me) needs a way how to reliably create
> a subgroup, without knowing details about all controllers. E.g. 'blkio'
> controller is quite new one, old applications do now know anything about it,
> yet according to your idea, the application *must* provide sane defaults to
> it.
>
> Jan
>
>
> Jan,
>
> I think sane defaults should be enforced only if the application actively
> uses the device.  Your right in that you don't want to have to guess as to
> which devices are mounted as long as you don't touch the devices that aren't
> mounted everything should be okay and work for the specific device or mount
> you are working with  (which by the way you need to know!!!)....
>

I seem to get the impression that there is a miscommunication here. We
are talking about the cgroups feature here (more details are available
at http://www.mjmwired.net/kernel/Documentation/cgroups.txt ). We
really are not talking about devices, but about specific cgroup
subsystems which can be mounted together, and are not under the
control of the programmer.

> PS: Providing a set of defaults on creation may lead to a security
> problem... just an afterthought.
>

Which is why you have *sane* defaults.

Dhaval

  parent reply	other threads:[~2010-05-12 17:42 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <eJjRf-6YM-1@gated-at.bofh.it>
     [not found] ` <eJktY-7JG-7@gated-at.bofh.it>
     [not found]   ` <eJktY-7JG-5@gated-at.bofh.it>
2010-05-12 14:11     ` [PATCH/RFC] Have sane default values for cpusets James Kosin
2010-05-12 14:13       ` Dhaval Giani
2010-05-12 14:20         ` Peter Zijlstra
2010-05-12 14:22           ` Dhaval Giani
2010-05-12 14:40           ` Jan Safranek
     [not found]             ` <4BEAE7A1.2010001@intcomgrp.com>
2010-05-12 17:42               ` Dhaval Giani [this message]
2010-05-12 17:58                 ` James Kosin
2010-05-12 18:04                   ` Chris Friesen
2010-05-12 18:27                     ` Balbir Singh
2010-05-12 19:07           ` Lennart Poettering
2010-05-13 13:01             ` Peter Zijlstra
2010-05-13 14:03               ` Lennart Poettering
2010-05-13 20:06                 ` Paul Menage
2010-05-13 20:36                   ` Lennart Poettering
2010-05-13 20:41                     ` Lennart Poettering
2010-05-13 21:07                       ` Balbir Singh
2010-05-13 23:55                         ` Lennart Poettering
2010-05-14  5:44                           ` Balbir Singh
2010-05-14  6:34                           ` Dhaval Giani
2010-05-13 21:29                     ` Paul Menage
2010-05-13 21:19                 ` Peter Zijlstra
2010-05-14  0:02                   ` Lennart Poettering
2010-05-14  5:43                     ` Balbir Singh
2010-05-14  6:53                       ` Peter Zijlstra
2010-05-14  8:12                         ` Balbir Singh
2010-05-14 10:38                           ` Peter Zijlstra
2010-05-14 11:57                             ` Dhaval Giani
2010-05-14 16:07                         ` Lennart Poettering
2010-05-14  6:51                     ` Peter Zijlstra
2010-05-14  7:23                       ` Peter Zijlstra
2010-05-14  8:11                         ` Balbir Singh
2010-05-12 13:05 Dhaval Giani
2010-05-12 13:40 ` Peter Zijlstra
2010-05-12 13:46   ` Dhaval Giani
2010-05-12 19:01 ` Paul Menage
2010-05-12 19:10   ` Dhaval Giani
2010-05-12 19:20     ` Paul Menage
2010-05-12 19:29       ` Dhaval Giani
2010-05-12 19:36         ` Paul Menage
2010-05-12 19:39           ` Balbir Singh
2010-05-12 19:59           ` Dhaval Giani
2010-05-13 10:26             ` Dhaval Giani
2010-05-13 10:52               ` Balbir Singh
2010-05-13 20:12             ` Paul Menage
2010-05-13 20:16               ` Dhaval Giani
2010-05-13 20:19                 ` Dhaval Giani
2010-05-12 19:30 ` Balbir Singh

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=AANLkTikEyJ8q9GkpyZo0OUY4MLM_soWEviiBG2R6H-mY@mail.gmail.com \
    --to=dhaval.giani@gmail.com \
    --cc=balbir@linux.vnet.ibm.com \
    --cc=jkosin@intcomgrp.com \
    --cc=jsafrane@redhat.com \
    --cc=lennart@poettering.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=menage@google.com \
    --cc=peterz@infradead.org \
    --cc=tglx@linutronix.de \
    /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).