Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2679291rdb; Fri, 22 Sep 2023 05:51:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEHL5CniZXcAfjjzdms7rev5HhsYlvZqwQW1HYDeVJw/tnWFYLiRw0DfXBHIhomcZoMEqbw X-Received: by 2002:a05:6358:7e46:b0:13f:e3eb:53a6 with SMTP id p6-20020a0563587e4600b0013fe3eb53a6mr7280192rwm.30.1695387079111; Fri, 22 Sep 2023 05:51:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695387079; cv=none; d=google.com; s=arc-20160816; b=NBfLYBdICsNlWH5tYZkEnA3nCtsM+J7bwuZnSFWfrXPfdK+AQW6tg2f5IY9Lq8aQBl cxxDJ0zkgwkMK/JCao2lUL+bxQecTnbdizWd9UAU24TvtefOZ+sXp15WNE4yZB25+VO5 BvCeQEiJmtzQBe7eDBcBzb5H8SBda1UBvzay1TWCkxepaLSQivh3Jbx/gXUbnQcxl0/S /564xrxUIoq3eXM4bE1QmuWAoi8ayNudH2NVm5Sc76kmqWlGcGQtTD98LQPKPvZk41sY x4YMuUKTQM6Qxm9kC8QEyfTfGtr9iTEATM672scrcQryGL8KA632of/rE/KuLLTCIUhP GjDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:mime-version:dkim-signature; bh=bZ1DObAEllNfzNC+iAQHCqhiv+DRdfXl9I07x7RRLQE=; fh=eCk0n+YxJvb+GNg7bFjf+rlMf5WiNW3eRjKQKPzPwSE=; b=GAYYz1Gd/2+8c/I7bf9bhK3QDsgcH77FX8bQogNkOeTOSU2ZEbE/b0KPM/c/B4kXgn nTDEzjNn3FzJYPXkbmLI5KYFd5hhZeyBiml1o6RUUe4cmmw8B+hOkdyFkUxidVvxZDT/ icBOHVkTqG5BrRXGYtFABPNQaCcDxHLtWaMw4JKJ57XgLYP+iyjxSN5GxWrt4Fg8dE6/ qxExcpp0MNxOstQqFLz5R/mVZ9F/getEI6iSJfF35sCzT7Y5tEtakz0sNmqQLmVrCvTU jUHEHmb8rGmqQnMu0+3JkbxIEB/5sdACzy+8llRx3pDrXe/3fEPao1u+RQjTaE3H+38S utNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=LHy8osrU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id w185-20020a6382c2000000b00543a89c95c2si3659632pgd.207.2023.09.22.05.51.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 05:51:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=LHy8osrU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 4E833824BAC9; Thu, 21 Sep 2023 15:21:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231814AbjIUWU7 (ORCPT + 99 others); Thu, 21 Sep 2023 18:20:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232034AbjIUWUn (ORCPT ); Thu, 21 Sep 2023 18:20:43 -0400 Received: from mail-ot1-x32a.google.com (mail-ot1-x32a.google.com [IPv6:2607:f8b0:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C0455B96 for ; Thu, 21 Sep 2023 10:08:50 -0700 (PDT) Received: by mail-ot1-x32a.google.com with SMTP id 46e09a7af769-6c0b8f42409so724759a34.0 for ; Thu, 21 Sep 2023 10:08:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1695316129; x=1695920929; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=bZ1DObAEllNfzNC+iAQHCqhiv+DRdfXl9I07x7RRLQE=; b=LHy8osrU0sR+eseJ7977/FKGz5NW2VBR5t7LlebS7A6ns0mQYqppAE/Qdb2UcpXnlL XvwOn3B7SFHNcDdsB4b8mJtuq3wKgJTh/59TppPoCS54Sm3chqaUi15RwlV0DXy5IzG8 fm7C8w3NYGgM3k0f9LotkhIj5o5IFna0THMiHFqcIj2RnG4WwecZA8SUndRHpgvnomV3 AUxqpschHIKpU158kH2+MwiZCTqLR+DrULt31lopLxCtoHACIC7Xa9149osvn2UIR1dU PKmT/HzK+wHmQMYgvN/+4eYTAP3pXRbZr2nng93caekr4xDQlcQRnPz8Q4OZ6JQs1lVR iYCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695316129; x=1695920929; h=content-transfer-encoding:cc:to:subject:message-id:date:from :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=bZ1DObAEllNfzNC+iAQHCqhiv+DRdfXl9I07x7RRLQE=; b=k1rlWfzXCpx0Xu+/NxGSNgJsQcJjdQnVTEBH9neQ5XETv4cypgh6FVxm6eZz2YyRbj jjFhQ3dqKsnmiDd0WYduk+yTOJ2K6nJfUwGMhVJR1/3NfTm94Dgtc+xt1OX5LjvT+GTk 6fx8a91u6dNprEjLM4/3QR6q3OVmNyBD+14ZCPnNONiUd92eai+jFWMVXHy1WUP/Uuc1 MOmOae1B9avKGy7gvzxfwgiSipph4mU8oVNYMrodIrVQtGUI1dLtCrpB3u4dp+CZfUJ3 PolSeNByJoKnKOjLnendOQkkCazEhgj2gOWEDsGcWA4EV9E1tGrkZWNwszajNFy3ihdP SzIQ== X-Gm-Message-State: AOJu0YyQhilJRjSwaZIsvthmIPRSASyRE3lrYt9XpMRQ27LLo5NrK79i auIgrO1finklhDAWJ/rRzOdh+GC6aOtIaIQFBQiiknHTKopMAWlUJqlXFQ== X-Received: by 2002:a25:68cb:0:b0:d43:18d7:e292 with SMTP id d194-20020a2568cb000000b00d4318d7e292mr6189141ybc.32.1695314376936; Thu, 21 Sep 2023 09:39:36 -0700 (PDT) MIME-Version: 1.0 From: =?UTF-8?B?TWljaGHFgiBDxYJhcGnFhHNraQ==?= Date: Thu, 21 Sep 2023 18:39:25 +0200 Message-ID: Subject: Loosening time namespace restrictions To: linux-kernel@vger.kernel.org Cc: John Stultz , Thomas Gleixner , Stephen Boyd , Vincenzo Frascino , Andy Lutomirski , Dmitry Safonov <0x7f454c46@gmail.com>, Andrei Vagin Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Thu, 21 Sep 2023 15:21:03 -0700 (PDT) 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_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=C5=82