[lxc-users] LXD uptime back to 0

Serge Hallyn serge.hallyn at ubuntu.com
Tue Mar 22 23:17:39 UTC 2016


Quoting Benoit GEORGELIN - Association Web4all (benoit.georgelin at web4all.fr):
> Interesting, look the process monitor : 
> 
> root 1942 0.0 0.1 72544 1280 ? Ss Mar10 0:00 [lxc monitor] /var/lib/lxd/containers vps-01 
> root 1984 0.0 0.0 72544 948 ? S Mar10 0:00 \_ [lxc monitor] /var/lib/lxd/containers vps-01 
> root 19734 0.0 0.3 72544 3460 ? Ss Mar15 0:00 [lxc monitor] /var/lib/lxd/containers vps-02 
> root 19781 0.0 0.2 72544 2364 ? S Mar15 0:00 \_ [lxc monitor] /var/lib/lxd/containers vps-02 

Hi,

I bet you're using openvswitch?  That causes lxc to create a second
thread which waits for the container to stop and deletes the port.

> They exist twice for each containers 
> 
> init process : 
> 
> 165536 1987 2.3 0.2 28280 3036 ? Ss Mar10 429:30 \_ /sbin/init 
> 165536 19782 0.0 0.4 37388 4476 ? Ss Mar15 0:04 \_ /sbin/init 
> 
> Where can I get the ctime of the cgroups of the tatks and the init task ? 

cat /proc/1942/cgroup
stat /sys/fs/cgroup/systemd/`awk -F: '/systemd/ { print $3 }' /proc/1942/cgroup`


More information about the lxc-users mailing list