[lxc-users] cgm getvalue invalid request on lxc host

Serge Hallyn serge.hallyn at ubuntu.com
Fri Apr 24 13:01:39 UTC 2015


Quoting Georg Schönberger (gschoenberger at thomas-krenn.com):
> On Fre, 2015-04-17 at 15:31 +0000, Serge Hallyn wrote:
> > Quoting Georg Schönberger (gschoenberger at thomas-krenn.com):
> > > Hi serge,
> > > 
> > > THX a lot for your help, "escaping" to the root cgroup got it working:
> > > # sudo bash
> > > # cgm movepidabs memory / $$
> > > # cgm getvalue memory /lxc/ubuntu1 memory.limit_in_bytes
> > > 268435456
> > > # cat /proc/self/cgroup 
> > > # cat /proc/self/cgroup | grep memory
> > > 5:memory:/
> > > 
> > > Is there any intention to change that behavior or at least give some
> > > hints in a documentation? It is quite confusing if per default cgm is
> > > not working on a lxc created container.
> > 
> > Changing it, probably not.  It's one of the underlying safety assumptions
> > (see https://github.com/lxc/cgmanager/blob/master/README ) which lets me
> > sleep at least some nights.  I'm all for better documenting it, I just
> > don't know where the best place is.  Where did you look when you were
> > trying to figure this out?  'man cgm'?  Something else?
> 
> I think 'man cgm' would definitively the best place for documenting
> that.
> Maybe we could add some short examples to '/usr/share/doc/cgmanager',
> just on
> how set/get values correctly.

Thanks, I added some text to the cgm manpage (just in the git tree for
now)


More information about the lxc-users mailing list