HI,<br><br>I'm trying to monitor the usage of an application (a video decoder) which is alone in a cgroup (video_group).<br>The latter contains the subsystems : cpu, memory and cpuacct.usage.<br><br>I've tried to read cpuacct value with :<br>
- lxc-cgroup -n video_group cpuacct.usage<br> - a fopen and fscanf of the file /cgroups/video_group/cpuacct.usage<br><br>I would like to account for the cpu time spent in decoding one frame, thus a few milliseconds.<br><br>
With both of my tries the value is not updated quickly enough and I get the same value at the beginning and at the end of the decoding process.<br>If I use strace or gdb, then the value is changed. Hence my guess that the update is not fast enough.<br>
<br>I would have expected to have the up to date value when accessing cpuacct.usage through lxc-cgroup.<br><br>Do you know why this is not the case ? <br>Do you know the best way to achieve what I want ?<br><br>cheers,<br>
<br>Maxime<br clear="all"><br>-- <br>Maxime Louvel<br>+33 6 89 70 33 47<br>3 rue charreton<br>38000 Grenoble<br>France<br>