Re: cgroup mount point

2009-02-06 Thread Harald Braumann
On Thu, 05 Feb 2009 22:19:37 +0100 José Luis Tallón jltal...@adv-solutions.net wrote: [...] whereas I can't fathom why a cgroup feels like a /device/. I admit not being an expert in virtualization abstraction (I do run a significant number of virtual machines, tough), but in fact /sys seems

Re: cgroup mount point

2009-02-05 Thread José Luis Tallón
Harald Braumann wrote: On Tue, 3 Feb 2009 11:14:03 -0800 Paul Menage men...@google.com wrote: On Tue, Feb 3, 2009 at 10:51 AM, sean finney sean...@seanius.net wrote: or /proc/bus/usb or /dev/shm or /dev/pts... :) /dev is a bit different though - even if it's mounted as a

Re: cgroup mount point

2009-02-05 Thread Balbir Singh
* KAMEZAWA Hiroyuki kamezawa.hir...@jp.fujitsu.com [2009-02-03 12:15:24]: On Mon, 02 Feb 2009 16:54:58 -0600 Chris Friesen cfrie...@nortel.com wrote: Thadeu Lima de Souza Cascardo wrote: Linux Documentation is not consistent and have some funny options. In Documentation/cgroups/*,

Re: cgroup mount point

2009-02-04 Thread Josselin Mouette
Le mercredi 04 février 2009 à 00:38 +0100, Harald Braumann a écrit : So, what's the problem with /dev/cgroups then? If shm/ and pts/ are allowed under /dev, wouldn't it be discriminating against cgroups/, to not allow it there? /dev/pts contains device entries, so it sounds right to put it in

Re: cgroup mount point

2009-02-03 Thread Daniel P. Berrange
On Mon, Feb 02, 2009 at 07:41:53PM -0200, Thadeu Lima de Souza Cascardo wrote: On Mon, Feb 02, 2009 at 09:52:46PM +0100, Mike Hommey wrote: On Mon, Feb 02, 2009 at 09:26:11PM +0100, Julien Cristau wrote: On Mon, 2009-02-02 at 18:00 -0200, Thadeu Lima de Souza Cascardo wrote: Hello,

Re: cgroup mount point

2009-02-03 Thread Ben Finney
Daniel P. Berrange berra...@redhat.com writes: On Mon, Feb 02, 2009 at 07:41:53PM -0200, Thadeu Lima de Souza Cascardo wrote: So, we have some more options now: /cgroups, /containers, /dev/cpuset, /dev/cpuctl, /opt/cgroup, /opt/cpuset. Putting new mount points in / is not really

Re: cgroup mount point

2009-02-03 Thread Daniel P. Berrange
On Tue, Feb 03, 2009 at 10:30:28AM -0200, Thadeu Lima de Souza Cascardo wrote: Sorry. I didn't mean to imply that libvirt or Fedora did anything in respect to the mountpoint themselves. But that they are supporting or planning to support cgroups. And I think that one time we will need to sort

Re: cgroup mount point

2009-02-03 Thread Gabor Gombas
On Tue, Feb 03, 2009 at 10:24:16AM +, Daniel P. Berrange wrote: Putting new mount points in / is not really acceptable, so that rules out the first two. /opt is just totally wrong, since that is intended for add on software packages. /dev/ feels a little odd, since it is not really device

Re: cgroup mount point

2009-02-03 Thread Gustavo Noronha
On Tue, 2009-02-03 at 23:44 +1100, Ben Finney wrote: I agree with all that Thadeu Lima says here. I would add that cgroups are nothing to do with device nodes, so definitely don't belong in ‘/dev/’ either. Since they're a filesystem mapping “for browsing and manipulation from user space” of

Re: cgroup mount point

2009-02-03 Thread Thadeu Lima de Souza Cascardo
On Tue, Feb 03, 2009 at 11:44:00PM +1100, Ben Finney wrote: Daniel P. Berrange berra...@redhat.com writes: On Mon, Feb 02, 2009 at 07:41:53PM -0200, Thadeu Lima de Souza Cascardo wrote: So, we have some more options now: /cgroups, /containers, /dev/cpuset, /dev/cpuctl, /opt/cgroup,

Re: cgroup mount point

2009-02-03 Thread Bill Nottingham
Gabor Gombas (gomb...@sztaki.hu) said: On Tue, Feb 03, 2009 at 10:24:16AM +, Daniel P. Berrange wrote: Putting new mount points in / is not really acceptable, so that rules out the first two. /opt is just totally wrong, since that is intended for add on software packages. /dev/ feels

Re: cgroup mount point

2009-02-03 Thread Paul Menage
On Tue, Feb 3, 2009 at 6:38 AM, Gustavo Noronha k...@debian.org wrote: On Tue, 2009-02-03 at 23:44 +1100, Ben Finney wrote: I agree with all that Thadeu Lima says here. I would add that cgroups are nothing to do with device nodes, so definitely don't belong in '/dev/' either. Since they're a

Re: cgroup mount point

2009-02-03 Thread Thadeu Lima de Souza Cascardo
On Tue, Feb 03, 2009 at 10:24:16AM +, Daniel P. Berrange wrote: On Mon, Feb 02, 2009 at 07:41:53PM -0200, Thadeu Lima de Souza Cascardo wrote: From what I've seen, most of them are in the same phases as Debian, or, perhaps, behind. Fedora seems to plan that for Fedora 11, and they have

Re: cgroup mount point

2009-02-03 Thread John H. Robinson, IV
Paul Menage wrote: Having one virtual filesystem mounted on top of another virtual filesystem seems like a recipe for problems. /dev/cgroup or /dev/cgroup/hierarchy_name sounds more reasonable to me (although if anyone is still using devfs that would suffer from the same drawbacks) I was

Re: cgroup mount point

2009-02-03 Thread sean finney
On Tue, Feb 03, 2009 at 07:49:15PM +0100, Mike Hommey wrote: Having one virtual filesystem mounted on top of another virtual filesystem seems like a recipe for problems. Like with /sys/fs/fuse/connections ? Come on, there is no problem with a virtual filesystem mounted on top of another.

Re: cgroup mount point

2009-02-03 Thread Paul Menage
On Tue, Feb 3, 2009 at 10:51 AM, sean finney sean...@seanius.net wrote: On Tue, Feb 03, 2009 at 07:49:15PM +0100, Mike Hommey wrote: Having one virtual filesystem mounted on top of another virtual filesystem seems like a recipe for problems. Like with /sys/fs/fuse/connections ? Come on,

Re: cgroup mount point

2009-02-03 Thread Harald Braumann
On Tue, 3 Feb 2009 11:14:03 -0800 Paul Menage men...@google.com wrote: On Tue, Feb 3, 2009 at 10:51 AM, sean finney sean...@seanius.net wrote: or /proc/bus/usb or /dev/shm or /dev/pts... :) /dev is a bit different though - even if it's mounted as a udev fs, you can create a new

Re: cgroup mount point

2009-02-03 Thread Paul Menage
On Tue, Feb 3, 2009 at 3:38 PM, Harald Braumann ha...@unheit.net wrote: So, what's the problem with /dev/cgroups then? If shm/ and pts/ are allowed under /dev, wouldn't it be discriminating against cgroups/, to not allow it there? Right, that's what I proposed a couple of emails earlier in

Re: cgroup mount point

2009-02-03 Thread Mike Hommey
On Tue, Feb 03, 2009 at 08:55:34AM -0800, Paul Menage wrote: On Tue, Feb 3, 2009 at 6:38 AM, Gustavo Noronha k...@debian.org wrote: On Tue, 2009-02-03 at 23:44 +1100, Ben Finney wrote: I agree with all that Thadeu Lima says here. I would add that cgroups are nothing to do with device nodes,

Re: cgroup mount point

2009-02-03 Thread Harald Braumann
On Tue, 3 Feb 2009 15:40:39 -0800 Paul Menage men...@google.com wrote: On Tue, Feb 3, 2009 at 3:38 PM, Harald Braumann ha...@unheit.net wrote: So, what's the problem with /dev/cgroups then? If shm/ and pts/ are allowed under /dev, wouldn't it be discriminating against cgroups/, to not

Re: cgroup mount point

2009-02-03 Thread Ben Finney
Thadeu Lima de Souza Cascardo casca...@minaslivre.org writes: The message you quoted is from Daniel Berrange, not me. You're right. I should have read more carefully. Could you also tell your rationale for not agreeing with /? The bar for adding new required entries to the root directory is

cgroup mount point

2009-02-02 Thread Thadeu Lima de Souza Cascardo
Hello, Some software I intend to package work with the new cgroup feature in Linux. I would like to open a discussion about what would be the better place to mount it and how/when to mount it. Some of the options are: /sys/cgroup /proc/cgroup These two would not be very wise, since some

Re: cgroup mount point

2009-02-02 Thread Julien Cristau
On Mon, 2009-02-02 at 18:00 -0200, Thadeu Lima de Souza Cascardo wrote: Hello, Some software I intend to package work with the new cgroup feature in Linux. I would like to open a discussion about what would be the better place to mount it and how/when to mount it. What do other distros use?

Re: cgroup mount point

2009-02-02 Thread Mike Hommey
On Mon, Feb 02, 2009 at 09:26:11PM +0100, Julien Cristau wrote: On Mon, 2009-02-02 at 18:00 -0200, Thadeu Lima de Souza Cascardo wrote: Hello, Some software I intend to package work with the new cgroup feature in Linux. I would like to open a discussion about what would be the better

Re: cgroup mount point

2009-02-02 Thread Thadeu Lima de Souza Cascardo
On Mon, Feb 02, 2009 at 09:52:46PM +0100, Mike Hommey wrote: On Mon, Feb 02, 2009 at 09:26:11PM +0100, Julien Cristau wrote: On Mon, 2009-02-02 at 18:00 -0200, Thadeu Lima de Souza Cascardo wrote: Hello, Some software I intend to package work with the new cgroup feature in Linux. I

Re: cgroup mount point

2009-02-02 Thread Chris Friesen
Thadeu Lima de Souza Cascardo wrote: Linux Documentation is not consistent and have some funny options. In Documentation/cgroups/*, we have: So, we have some more options now: /cgroups, /containers, /dev/cpuset, /dev/cpuctl, /opt/cgroup, /opt/cpuset. I am copying the container and the

Re: cgroup mount point

2009-02-02 Thread Thadeu Lima de Souza Cascardo
On Mon, Feb 02, 2009 at 04:54:58PM -0600, Chris Friesen wrote: Thadeu Lima de Souza Cascardo wrote: Linux Documentation is not consistent and have some funny options. In Documentation/cgroups/*, we have: So, we have some more options now: /cgroups, /containers, /dev/cpuset, /dev/cpuctl,

Re: cgroup mount point

2009-02-02 Thread KAMEZAWA Hiroyuki
On Mon, 02 Feb 2009 16:54:58 -0600 Chris Friesen cfrie...@nortel.com wrote: Thadeu Lima de Souza Cascardo wrote: Linux Documentation is not consistent and have some funny options. In Documentation/cgroups/*, we have: So, we have some more options now: /cgroups, /containers,

Re: cgroup mount point

2009-02-02 Thread Serge E. Hallyn
Quoting KAMEZAWA Hiroyuki (kamezawa.hir...@jp.fujitsu.com): On Mon, 02 Feb 2009 16:54:58 -0600 Chris Friesen cfrie...@nortel.com wrote: Thadeu Lima de Souza Cascardo wrote: Linux Documentation is not consistent and have some funny options. In Documentation/cgroups/*, we have: