Re: [RFC 00/20] ns: Introduce Time Namespace

2018-10-31 Thread Andrei Vagin
On Mon, Oct 29, 2018 at 09:33:14PM +0100, Thomas Gleixner wrote: > Andrei, > > On Sat, 20 Oct 2018, Andrei Vagin wrote: > > When a container is migrated to another host, we have to restore its > > monotonic and boottime clocks, but we still expect that the container > > will continue using the

Re: [RFC 00/20] ns: Introduce Time Namespace

2018-10-31 Thread Andrei Vagin
On Mon, Oct 29, 2018 at 09:33:14PM +0100, Thomas Gleixner wrote: > Andrei, > > On Sat, 20 Oct 2018, Andrei Vagin wrote: > > When a container is migrated to another host, we have to restore its > > monotonic and boottime clocks, but we still expect that the container > > will continue using the

Re: [RFC 00/20] ns: Introduce Time Namespace

2018-10-29 Thread Thomas Gleixner
Eric, On Mon, 29 Oct 2018, Eric W. Biederman wrote: > Thomas Gleixner writes: > > > > I'll try to find some time in the next weeks to look deeper into that, but > > I can't promise anything before returning from LPC. Btw, LPC would be a > > great opportunity to discuss that. Are you and the

Re: [RFC 00/20] ns: Introduce Time Namespace

2018-10-29 Thread Thomas Gleixner
Eric, On Mon, 29 Oct 2018, Eric W. Biederman wrote: > Thomas Gleixner writes: > > > > I'll try to find some time in the next weeks to look deeper into that, but > > I can't promise anything before returning from LPC. Btw, LPC would be a > > great opportunity to discuss that. Are you and the

Re: [RFC 00/20] ns: Introduce Time Namespace

2018-10-29 Thread Eric W. Biederman
Thomas Gleixner writes: > Andrei, > > On Sat, 20 Oct 2018, Andrei Vagin wrote: >> When a container is migrated to another host, we have to restore its >> monotonic and boottime clocks, but we still expect that the container >> will continue using the host real-time clock. >> >> Before stating

Re: [RFC 00/20] ns: Introduce Time Namespace

2018-10-29 Thread Eric W. Biederman
Thomas Gleixner writes: > Andrei, > > On Sat, 20 Oct 2018, Andrei Vagin wrote: >> When a container is migrated to another host, we have to restore its >> monotonic and boottime clocks, but we still expect that the container >> will continue using the host real-time clock. >> >> Before stating

Re: [RFC 00/20] ns: Introduce Time Namespace

2018-10-29 Thread Thomas Gleixner
Andrei, On Sat, 20 Oct 2018, Andrei Vagin wrote: > When a container is migrated to another host, we have to restore its > monotonic and boottime clocks, but we still expect that the container > will continue using the host real-time clock. > > Before stating this series, I was thinking about

Re: [RFC 00/20] ns: Introduce Time Namespace

2018-10-29 Thread Thomas Gleixner
Andrei, On Sat, 20 Oct 2018, Andrei Vagin wrote: > When a container is migrated to another host, we have to restore its > monotonic and boottime clocks, but we still expect that the container > will continue using the host real-time clock. > > Before stating this series, I was thinking about

Re: [RFC 00/20] ns: Introduce Time Namespace

2018-10-20 Thread Andrei Vagin
On Sat, Oct 20, 2018 at 06:41:23PM -0700, Andrei Vagin wrote: > On Fri, Sep 28, 2018 at 07:03:22PM +0200, Eric W. Biederman wrote: > > Thomas Gleixner writes: > > > > > On Wed, 26 Sep 2018, Eric W. Biederman wrote: > > >> Reading the code the calling sequence there is: > > >> tick_sched_do_timer

Re: [RFC 00/20] ns: Introduce Time Namespace

2018-10-20 Thread Andrei Vagin
On Sat, Oct 20, 2018 at 06:41:23PM -0700, Andrei Vagin wrote: > On Fri, Sep 28, 2018 at 07:03:22PM +0200, Eric W. Biederman wrote: > > Thomas Gleixner writes: > > > > > On Wed, 26 Sep 2018, Eric W. Biederman wrote: > > >> Reading the code the calling sequence there is: > > >> tick_sched_do_timer

Re: [RFC 00/20] ns: Introduce Time Namespace

2018-10-20 Thread Andrei Vagin
On Fri, Sep 28, 2018 at 07:03:22PM +0200, Eric W. Biederman wrote: > Thomas Gleixner writes: > > > On Wed, 26 Sep 2018, Eric W. Biederman wrote: > >> Reading the code the calling sequence there is: > >> tick_sched_do_timer > >>tick_do_update_jiffies64 > >> update_wall_time > >>

Re: [RFC 00/20] ns: Introduce Time Namespace

2018-10-20 Thread Andrei Vagin
On Fri, Sep 28, 2018 at 07:03:22PM +0200, Eric W. Biederman wrote: > Thomas Gleixner writes: > > > On Wed, 26 Sep 2018, Eric W. Biederman wrote: > >> Reading the code the calling sequence there is: > >> tick_sched_do_timer > >>tick_do_update_jiffies64 > >> update_wall_time > >>

Re: [RFC 00/20] ns: Introduce Time Namespace

2018-10-02 Thread Thomas Gleixner
Dmitry, On Tue, 2 Oct 2018, Dmitry Safonov wrote: > On Tue, 2 Oct 2018 at 07:15, Thomas Gleixner wrote: > > I explained that in detail in this thread, but it's not about the initial > > setting of clock mono/boot before any timers have been armed. > > > > It's about setting the offset or clock

Re: [RFC 00/20] ns: Introduce Time Namespace

2018-10-02 Thread Thomas Gleixner
Dmitry, On Tue, 2 Oct 2018, Dmitry Safonov wrote: > On Tue, 2 Oct 2018 at 07:15, Thomas Gleixner wrote: > > I explained that in detail in this thread, but it's not about the initial > > setting of clock mono/boot before any timers have been armed. > > > > It's about setting the offset or clock

Re: [RFC 00/20] ns: Introduce Time Namespace

2018-10-02 Thread Dmitry Safonov
Hi Thomas, Andrei, Eric, On Tue, 2 Oct 2018 at 07:15, Thomas Gleixner wrote: > > On Mon, 1 Oct 2018, Andrey Vagin wrote: > > > On Thu, Sep 27, 2018 at 11:41:49PM +0200, Thomas Gleixner wrote: > > > On Thu, 27 Sep 2018, Thomas Gleixner wrote: > > > > Add time skew via NTP/PTP into the picture and

Re: [RFC 00/20] ns: Introduce Time Namespace

2018-10-02 Thread Dmitry Safonov
Hi Thomas, Andrei, Eric, On Tue, 2 Oct 2018 at 07:15, Thomas Gleixner wrote: > > On Mon, 1 Oct 2018, Andrey Vagin wrote: > > > On Thu, Sep 27, 2018 at 11:41:49PM +0200, Thomas Gleixner wrote: > > > On Thu, 27 Sep 2018, Thomas Gleixner wrote: > > > > Add time skew via NTP/PTP into the picture and

Re: [RFC 00/20] ns: Introduce Time Namespace

2018-10-02 Thread Thomas Gleixner
On Mon, 1 Oct 2018, Andrey Vagin wrote: > On Thu, Sep 27, 2018 at 11:41:49PM +0200, Thomas Gleixner wrote: > > On Thu, 27 Sep 2018, Thomas Gleixner wrote: > > > Add time skew via NTP/PTP into the picture and you might have to adjust > > > timers as well, because you need to guarantee that they

Re: [RFC 00/20] ns: Introduce Time Namespace

2018-10-02 Thread Thomas Gleixner
On Mon, 1 Oct 2018, Andrey Vagin wrote: > On Thu, Sep 27, 2018 at 11:41:49PM +0200, Thomas Gleixner wrote: > > On Thu, 27 Sep 2018, Thomas Gleixner wrote: > > > Add time skew via NTP/PTP into the picture and you might have to adjust > > > timers as well, because you need to guarantee that they

Re: [RFC 00/20] ns: Introduce Time Namespace

2018-10-01 Thread Andrey Vagin
On Thu, Sep 27, 2018 at 11:41:49PM +0200, Thomas Gleixner wrote: > On Thu, 27 Sep 2018, Thomas Gleixner wrote: > > Add time skew via NTP/PTP into the picture and you might have to adjust > > timers as well, because you need to guarantee that they are not expiring > > early. > > > > I haven't

Re: [RFC 00/20] ns: Introduce Time Namespace

2018-10-01 Thread Andrey Vagin
On Thu, Sep 27, 2018 at 11:41:49PM +0200, Thomas Gleixner wrote: > On Thu, 27 Sep 2018, Thomas Gleixner wrote: > > Add time skew via NTP/PTP into the picture and you might have to adjust > > timers as well, because you need to guarantee that they are not expiring > > early. > > > > I haven't

Re: [RFC 00/20] ns: Introduce Time Namespace

2018-10-01 Thread Eric W. Biederman
Thomas Gleixner writes: > Eric, > > On Fri, 28 Sep 2018, Eric W. Biederman wrote: >> Thomas Gleixner writes: >> > On Wed, 26 Sep 2018, Eric W. Biederman wrote: >> >> At the same time using the techniques from the nohz work and a little >> >> smarts I expect we could get the code to scale. >> >

Re: [RFC 00/20] ns: Introduce Time Namespace

2018-10-01 Thread Eric W. Biederman
Thomas Gleixner writes: > Eric, > > On Fri, 28 Sep 2018, Eric W. Biederman wrote: >> Thomas Gleixner writes: >> > On Wed, 26 Sep 2018, Eric W. Biederman wrote: >> >> At the same time using the techniques from the nohz work and a little >> >> smarts I expect we could get the code to scale. >> >

Re: [RFC 00/20] ns: Introduce Time Namespace

2018-09-28 Thread Thomas Gleixner
Eric, On Fri, 28 Sep 2018, Eric W. Biederman wrote: > Thomas Gleixner writes: > > On Wed, 26 Sep 2018, Eric W. Biederman wrote: > >> At the same time using the techniques from the nohz work and a little > >> smarts I expect we could get the code to scale. > > > > You'd need to invoke the update

Re: [RFC 00/20] ns: Introduce Time Namespace

2018-09-28 Thread Thomas Gleixner
Eric, On Fri, 28 Sep 2018, Eric W. Biederman wrote: > Thomas Gleixner writes: > > On Wed, 26 Sep 2018, Eric W. Biederman wrote: > >> At the same time using the techniques from the nohz work and a little > >> smarts I expect we could get the code to scale. > > > > You'd need to invoke the update

Re: [RFC 00/20] ns: Introduce Time Namespace

2018-09-28 Thread Eric W. Biederman
Thomas Gleixner writes: > On Wed, 26 Sep 2018, Eric W. Biederman wrote: >> Reading the code the calling sequence there is: >> tick_sched_do_timer >>tick_do_update_jiffies64 >> update_wall_time >> timekeeping_advance >> timekeepging_update >> >> If I read that

Re: [RFC 00/20] ns: Introduce Time Namespace

2018-09-28 Thread Eric W. Biederman
Thomas Gleixner writes: > On Wed, 26 Sep 2018, Eric W. Biederman wrote: >> Reading the code the calling sequence there is: >> tick_sched_do_timer >>tick_do_update_jiffies64 >> update_wall_time >> timekeeping_advance >> timekeepging_update >> >> If I read that

Re: [RFC 00/20] ns: Introduce Time Namespace

2018-09-27 Thread Thomas Gleixner
On Thu, 27 Sep 2018, Thomas Gleixner wrote: > Add time skew via NTP/PTP into the picture and you might have to adjust > timers as well, because you need to guarantee that they are not expiring > early. > > I haven't looked through Dimitry's patches yet, but I don't see how this > can work at all

Re: [RFC 00/20] ns: Introduce Time Namespace

2018-09-27 Thread Thomas Gleixner
On Thu, 27 Sep 2018, Thomas Gleixner wrote: > Add time skew via NTP/PTP into the picture and you might have to adjust > timers as well, because you need to guarantee that they are not expiring > early. > > I haven't looked through Dimitry's patches yet, but I don't see how this > can work at all

Re: [RFC 00/20] ns: Introduce Time Namespace

2018-09-27 Thread Thomas Gleixner
On Wed, 26 Sep 2018, Eric W. Biederman wrote: > Reading the code the calling sequence there is: > tick_sched_do_timer >tick_do_update_jiffies64 > update_wall_time > timekeeping_advance > timekeepging_update > > If I read that properly under the right nohz

Re: [RFC 00/20] ns: Introduce Time Namespace

2018-09-27 Thread Thomas Gleixner
On Wed, 26 Sep 2018, Eric W. Biederman wrote: > Reading the code the calling sequence there is: > tick_sched_do_timer >tick_do_update_jiffies64 > update_wall_time > timekeeping_advance > timekeepging_update > > If I read that properly under the right nohz

Re: [RFC 00/20] ns: Introduce Time Namespace

2018-09-26 Thread Dmitry Safonov
2018-09-26 18:36 GMT+01:00 Eric W. Biederman : > The advantage of timekeeping_update per time namespace is that it allows > different lengths of seconds per time namespace. Which allows testing > ntp and the kernel in interesting ways while still having a working > production configuration on the

Re: [RFC 00/20] ns: Introduce Time Namespace

2018-09-26 Thread Dmitry Safonov
2018-09-26 18:36 GMT+01:00 Eric W. Biederman : > The advantage of timekeeping_update per time namespace is that it allows > different lengths of seconds per time namespace. Which allows testing > ntp and the kernel in interesting ways while still having a working > production configuration on the

Re: [RFC 00/20] ns: Introduce Time Namespace

2018-09-26 Thread Eric W. Biederman
Andrey Vagin writes: > On Tue, Sep 25, 2018 at 12:02:32AM +0200, Eric W. Biederman wrote: >> Andrey Vagin writes: >> >> > On Fri, Sep 21, 2018 at 02:27:29PM +0200, Eric W. Biederman wrote: >> >> Dmitry Safonov writes: >> >> >> >> > Discussions around time virtualization are there for a long

Re: [RFC 00/20] ns: Introduce Time Namespace

2018-09-26 Thread Eric W. Biederman
Andrey Vagin writes: > On Tue, Sep 25, 2018 at 12:02:32AM +0200, Eric W. Biederman wrote: >> Andrey Vagin writes: >> >> > On Fri, Sep 21, 2018 at 02:27:29PM +0200, Eric W. Biederman wrote: >> >> Dmitry Safonov writes: >> >> >> >> > Discussions around time virtualization are there for a long

Re: [RFC 00/20] ns: Introduce Time Namespace

2018-09-24 Thread Andrey Vagin
On Tue, Sep 25, 2018 at 12:02:32AM +0200, Eric W. Biederman wrote: > Andrey Vagin writes: > > > On Fri, Sep 21, 2018 at 02:27:29PM +0200, Eric W. Biederman wrote: > >> Dmitry Safonov writes: > >> > >> > Discussions around time virtualization are there for a long time. > >> > The first attempt

Re: [RFC 00/20] ns: Introduce Time Namespace

2018-09-24 Thread Andrey Vagin
On Tue, Sep 25, 2018 at 12:02:32AM +0200, Eric W. Biederman wrote: > Andrey Vagin writes: > > > On Fri, Sep 21, 2018 at 02:27:29PM +0200, Eric W. Biederman wrote: > >> Dmitry Safonov writes: > >> > >> > Discussions around time virtualization are there for a long time. > >> > The first attempt

Re: [RFC 00/20] ns: Introduce Time Namespace

2018-09-24 Thread Eric W. Biederman
Andrey Vagin writes: > On Fri, Sep 21, 2018 at 02:27:29PM +0200, Eric W. Biederman wrote: >> Dmitry Safonov writes: >> >> > Discussions around time virtualization are there for a long time. >> > The first attempt to implement time namespace was in 2006 by Jeff Dike. >> > From that time, the

Re: [RFC 00/20] ns: Introduce Time Namespace

2018-09-24 Thread Eric W. Biederman
Andrey Vagin writes: > On Fri, Sep 21, 2018 at 02:27:29PM +0200, Eric W. Biederman wrote: >> Dmitry Safonov writes: >> >> > Discussions around time virtualization are there for a long time. >> > The first attempt to implement time namespace was in 2006 by Jeff Dike. >> > From that time, the

Re: [RFC 00/20] ns: Introduce Time Namespace

2018-09-24 Thread Andrey Vagin
On Fri, Sep 21, 2018 at 02:27:29PM +0200, Eric W. Biederman wrote: > Dmitry Safonov writes: > > > Discussions around time virtualization are there for a long time. > > The first attempt to implement time namespace was in 2006 by Jeff Dike. > > From that time, the topic appears on and off in

Re: [RFC 00/20] ns: Introduce Time Namespace

2018-09-24 Thread Andrey Vagin
On Fri, Sep 21, 2018 at 02:27:29PM +0200, Eric W. Biederman wrote: > Dmitry Safonov writes: > > > Discussions around time virtualization are there for a long time. > > The first attempt to implement time namespace was in 2006 by Jeff Dike. > > From that time, the topic appears on and off in

Re: [RFC 00/20] ns: Introduce Time Namespace

2018-09-21 Thread Eric W. Biederman
Dmitry Safonov writes: > Discussions around time virtualization are there for a long time. > The first attempt to implement time namespace was in 2006 by Jeff Dike. > From that time, the topic appears on and off in various discussions. > > There are two main use cases for time namespaces: > 1.

Re: [RFC 00/20] ns: Introduce Time Namespace

2018-09-21 Thread Eric W. Biederman
Dmitry Safonov writes: > Discussions around time virtualization are there for a long time. > The first attempt to implement time namespace was in 2006 by Jeff Dike. > From that time, the topic appears on and off in various discussions. > > There are two main use cases for time namespaces: > 1.

[RFC 00/20] ns: Introduce Time Namespace

2018-09-19 Thread Dmitry Safonov
Discussions around time virtualization are there for a long time. The first attempt to implement time namespace was in 2006 by Jeff Dike. >From that time, the topic appears on and off in various discussions. There are two main use cases for time namespaces: 1. change date and time inside a

[RFC 00/20] ns: Introduce Time Namespace

2018-09-19 Thread Dmitry Safonov
Discussions around time virtualization are there for a long time. The first attempt to implement time namespace was in 2006 by Jeff Dike. >From that time, the topic appears on and off in various discussions. There are two main use cases for time namespaces: 1. change date and time inside a