Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #212416

Re: lxc-cgroup -n 11 cpuacct.stat is empty in buster

From Reco <recoverym4n@enotuniq.net>
Newsgroups linux.debian.user
Subject Re: lxc-cgroup -n 11 cpuacct.stat is empty in buster
Date 2019-08-08 11:30 +0200
Message-ID <ysMU9-3r7-7@gated-at.bofh.it> (permalink)
References <ysMAO-3k6-23@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


	Hi.

On Thu, Aug 08, 2019 at 11:01:15AM +0200, Marc SCHAEFER wrote:
> I found this reported here: https://github.com/lxc/lxc/issues/2742
> and here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=929926
> however, this is supposedly fixed in 1:3.1.0+really3.0.3-8 which
> is what is installed on my system.

#929926 was fixed by bumping LXC version. It did not really "fixed"
anything because it was not "broken" in the first place.
At least according to the upstream.


> So, maybe it's a config option I missed ?

In a way, yes. All LXC utilities changed their logging between LXC2 and
LXC3, and lxc-cgroup is one of the casualties.

To force lxc-cgroup to produce any output one needs to a) tell it to
write an output to stdout b) set an appropriate loglevel.

In your case,

lxc-cgroup -n 11 cpuacct.stat

should be transformed to:

lxc-cgroup -n 11 -o /dev/stdout -l INFO cpuacct.stat

And you'll probably have to apply some amount of sed to the output.
Try it, you'll see what I'm talking about.

Reco

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

lxc-cgroup -n 11 cpuacct.stat is empty in buster Marc SCHAEFER <schaefer@alphanet.ch> - 2019-08-08 11:10 +0200
  Re: lxc-cgroup -n 11 cpuacct.stat is empty in buster Reco <recoverym4n@enotuniq.net> - 2019-08-08 11:30 +0200
    Re: lxc-cgroup -n 11 cpuacct.stat is empty in buster Marc SCHAEFER <schaefer@alphanet.ch> - 2019-08-08 11:50 +0200
      Re: lxc-cgroup -n 11 cpuacct.stat is empty in buster Reco <recoverym4n@enotuniq.net> - 2019-08-08 12:50 +0200

csiph-web