[Devel] [PATCH rh7 v2] ve: Add interface for @start_timespec and @real_start_timespec adjustmen

Vladimir Davydov vdavydov at virtuozzo.com
Wed Feb 10 03:29:43 PST 2016


On Tue, Feb 09, 2016 at 04:43:53PM +0300, Cyrill Gorcunov wrote:
> This two members represent monotonic and bootbased clocks for
> container's uptime. When container is in suspended state (or
> moving to another node) we trest monotonic and bootbased
> clocks as being stopped so we need to account delta time
> on restore and adjust the members in subject.
> 
> Moreover this timestamps are involved into posix-timers
> setup so once application tries to setup monotonic clocks
> after the restore (with absolute time specification) we
> adjust the values as well.
> 
> The application which migrate a container must fetch
> the current settings from /sys/fs/cgroup/ve/$VE/ve.real_start_timespec
> and /sys/fs/cgroup/ve/$VE/ve.start_timespec, then write them
> back on the restore.
> 
> https://jira.sw.ru/browse/PSBM-41311
> https://jira.sw.ru/browse/PSBM-41406
> 
> v2:
>  - use clock_[monotonic|bootbased] for cgroup entry names instead
> 
> Original-by: Andrew Vagin <avagin at openvz.org>
> Signed-off-by: Cyrill Gorcunov <gorcunov at virtuozzo.com>
> CC: Vasily Averin <vvs at virtuozzo.com>
> CC: Andrey Vagin <avagin at virtuozzo.com>
> CC: Pavel Emelianov <xemul at virtuozzo.com>
> CC: Vladimir Davydov <vdavydov at virtuozzo.com>
> CC: Konstantin Khorenko <khorenko at virtuozzo.com>

Reviewed-by: Vladimir Davydov <vdavydov at virtuozzo.com>


More information about the Devel mailing list