Re: Container Uptime Discussion

Jim Warner <[email protected]> Tue, 30 Jan 2024 14:52:23 -0600
Newsgroups gmane.linux.procps.devel
Message-ID <[email protected]>
Hi Craig,

Were you to add a procps_container_uptime_sprint() function, don't worry 
about top.  We can just make 'l' a three-way toggle: host, container, off.

I'm using lxc version 5.19 and it already adjusts /proc/uptime for the 
container start time.  This looks great with uptime and on top's first line.

However, each process start_time reflects the host's values.  This reeks 
havoc on ELAPSED, etc.  I haven't yet determined if a fix is possible 
through the library.

Regards,

Jim