From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 32B41C433E0 for ; Mon, 29 Mar 2021 14:22:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DEAD46195B for ; Mon, 29 Mar 2021 14:22:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230239AbhC2OV7 (ORCPT ); Mon, 29 Mar 2021 10:21:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbhC2OVZ (ORCPT ); Mon, 29 Mar 2021 10:21:25 -0400 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7113DC061574 for ; Mon, 29 Mar 2021 07:21:25 -0700 (PDT) Received: by mail-pl1-x62c.google.com with SMTP id t20so4463071plr.13 for ; Mon, 29 Mar 2021 07:21:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=cDnq1q/ixaVc6yHqM4JadYnjCDMnNs61XGSyJlHYRyk=; b=H3whbVbFholAqsAFuvE5aKB4O0j6HZRSQkOH1Lbo2CZvs8Tn6pJCAWdTBhgI6cWryY AKc+CF+ytasxVg7EPkmzQVmZUdOkt5dYfk2/w2H34X2fYN3+BCm5li8sacGt+wEKxono UumcHsGW4RspbwyCmboTuvV2loHyNPM0J3QMfysZxBa6fbm7Ziqdjif6DfEIkntDIjNo rv2mwBeAVM22D1I2kCR2CiWEApdVWdvyKazNZO973AYbBoqj0wZSew05tU02L4RZO5ub icSj/1+a2GlnId1eruP7Y4wmNBKP6TufMfxgrHfZl4Igxvm0GCBjssxJKvAzBHU07DD6 +ybQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=cDnq1q/ixaVc6yHqM4JadYnjCDMnNs61XGSyJlHYRyk=; b=IbpwWs3VDfeH/vCjHAqShJP/8Ud7n5WHBU/nwxS4cDEa/0aZRRl1wLQ7IwYaqiLqaJ 3jOS1RFZ2RcXC2Wfmk85tYl+gYzeNUZgVnI7R1svlQ8nNEP3be19gpVtooctcrrE0c47 VXVVoLbRazgk+dVWYwdyOCVgojJlNDn/qAM4vA8LHF5TBnfczkOIXrUnvL17MlFWvomb Jh60f1DaN2/vuucv+uWPTvZK3FoNKtWpZe6Utb4RqbrIm/3M9a4q4o5o/0o2dJKRVmKx /o55c+cL6RRKYwF+35JHebnwfpsL6BI8EMfsVDZPNvPU1x8uWwBVS0NVn8ZGFb4mWb4k KxKA== X-Gm-Message-State: AOAM531lcFI745DRBVqyx4Q64kzHbDepUz1xHlSRQJypJfD3pDJ5eTzV VPEFxdlT+E0uhUdxiNxFAQw= X-Google-Smtp-Source: ABdhPJyMfesfAI+aeZ8X5IYw6bq3nvO6ogxfTIzFkCMwUSimERD+wU0BC02VyGiVZerlz3W1EUAj0g== X-Received: by 2002:a17:90a:a616:: with SMTP id c22mr25983414pjq.94.1617027684948; Mon, 29 Mar 2021 07:21:24 -0700 (PDT) Received: from hoboy.vegasvil.org ([2601:645:c000:3c:e2d5:5eff:fea5:802f]) by smtp.gmail.com with ESMTPSA id i14sm8322554pgl.79.2021.03.29.07.21.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Mar 2021 07:21:24 -0700 (PDT) Date: Mon, 29 Mar 2021 07:21:22 -0700 From: Richard Cochran To: Miroslav Lichvar Cc: Thomas Gleixner , Daphne Preston-Kendall , LKML , John Stultz , "Michael Kerrisk (man-pages)" Subject: Re: [Bug 212265] New: clock_gettime(CLOCK_TAI, ...) should return an error when TAI has not been configured Message-ID: <20210329142122.GB20909@hoboy.vegasvil.org> References: <87sg4iupzs.fsf@nanos.tec.linutronix.de> <20210327032859.GA3168@hoboy.vegasvil.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 29, 2021 at 11:16:48AM +0200, Miroslav Lichvar wrote: > On Fri, Mar 26, 2021 at 08:28:59PM -0700, Richard Cochran wrote: > > Using ntpd on Debian, the service will set the offset, but only after > > synchronization with the upstream server has been established, and > > this takes about five minutes, IIRC. > > With the iburst option it shouldn't take more than 10 seconds. There > might be an issue wrt stepping the clock when the initial offset is > large. Really? Debian has # pool.ntp.org maps to about 1000 low-stratum NTP servers. Your server will # pick a different set every time it starts up. Please consider joining the # pool: pool 0.debian.pool.ntp.org iburst pool 1.debian.pool.ntp.org iburst pool 2.debian.pool.ntp.org iburst pool 3.debian.pool.ntp.org iburst I guess I'll measure again, but I'm pretty sure it took a long time to get to TAI being set. > In Fedora and derived distros using chrony by default the > TAI-UTC offset should be set right on the first update of the clock as > expected. (Maybe it is time to switch to chrony ;) Thanks, Richard