On Mon, Jun 19, 2017 at 01:04:38PM -0000, gozdal wrote:
> This introduces a different problem: process creation time is counted as
> offset from btime:
> 
> (22) starttime  %llu
>           The time the process started after system boot.  In
>           kernels before Linux 2.6, this value was expressed
>           in jiffies.  Since Linux 2.6, the value is expressed
>           in clock ticks (divide by sysconf(_SC_CLK_TCK)).

Yes, we reverted that patch since we consider STTIME to be more
important.

> 
> (http://man7.org/linux/man-pages/man5/proc.5.html)
> 
> This means that because starttime is not virtualized, all the processes
> within the LXC container appear as time travellers from the future.
> 
> -- 
> You received this bug notification because you are a member of Ubuntu
> containers team, which is subscribed to lxcfs in Ubuntu.
> Matching subscriptions: lxcfs
> https://bugs.launchpad.net/bugs/1654310
> 
> Title:
>   lxcfs: update the 'btime' field in /proc/stat to reflect guest boot
>   time not host
> 
> Status in lxcfs package in Ubuntu:
>   Fix Released
> 
> Bug description:
>   The 'btime' field in /proc/stat reflects the host boot time and not
>   the time that the guest container has started.
> 
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/lxcfs/+bug/1654310/+subscriptions

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1654310

Title:
  lxcfs: update the 'btime' field in /proc/stat to reflect guest boot
  time not host

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxcfs/+bug/1654310/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to