public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Loosening time namespace restrictions
@ 2023-09-21 16:39 Michał Cłapiński
  2023-09-25 23:40 ` Andrey Vagin
  2023-09-28 21:44 ` Thomas Gleixner
  0 siblings, 2 replies; 3+ messages in thread
From: Michał Cłapiński @ 2023-09-21 16:39 UTC (permalink / raw)
  To: linux-kernel
  Cc: John Stultz, Thomas Gleixner, Stephen Boyd, Vincenzo Frascino,
	Andy Lutomirski, Dmitry Safonov, Andrei Vagin

Hello,
I faced a problem with the current implementation of time ns while
using it for container migration. I'd like users of CLOCK_MONOTONIC to
notice as small of a jump as possible in the clock after migration,
since according to the documentation "this clock does not count time
that the system is suspended". In that case the formula for clock
monotonic offset is "m1_monotonic - m2_monotonic - migration_downtime"
where m<n>_monotonic is clock monotonic value on the n-th machine.
Unfortunately due to time ns restrictions, I have to set the offsets
before putting any process in the namespace. I also can't move
multithreaded processes between namespaces. So I would have to know
the migration downtime before the migration is close to done, which
seems impossible. For that reason I'd like to drop the requirement of
having to set the offsets before putting any processes in the
namespace. What do you think? Is it possible to implement this and get
it merged or should I forgo it? If you think it's possible, I'd
appreciate any pointers on how to get this done (or how to solve my
problem in another way).

Thanks,
Michał

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-09-28 21:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-21 16:39 Loosening time namespace restrictions Michał Cłapiński
2023-09-25 23:40 ` Andrey Vagin
2023-09-28 21:44 ` Thomas Gleixner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox