Received: by 10.192.165.148 with SMTP id m20csp277046imm; Thu, 19 Apr 2018 21:39:33 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/IV9g8xBN5DyyusOFy4dNQnIUaXTlWZxyvksk7rMQiVaIUs8yLGTmDlfqFgQhETsdaE7ry X-Received: by 2002:a17:902:4303:: with SMTP id i3-v6mr9023453pld.394.1524199173196; Thu, 19 Apr 2018 21:39:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524199173; cv=none; d=google.com; s=arc-20160816; b=EtExVL8bbvRklL9F5YmQw/hEDW8QaDKrCAxI0eVwRjZfOwaSr4xLGr56x8f0UECUAF rxgBUhN0s7T8Ol/ytPxJrkllOxs6sfXcX5snC1e+qPN06Tm/fF6BNE1ihEW9tiAtVIr/ yLUodMqBLFEbVnJsUHBaklsORxS/xi7cPZ2T9ag5Oan74lAInnKUxCsXLhxGTjNaKSj5 6h7GKPvqrFZDNC4vQNrSSyH7yIZYTdOtMel9qrv46ih3LAilkuubge281OqfM7emS+Te O5iw4X9KOHyxa6Q8fSrp69Tyzm/03IumSeRNAg/lrjxSy1Q9goUc1TxG0SQyM5Wfe1qH 7YMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=q7bOhZCCkRtX5oQ8N/1PM4dce1mfzs9Gmlf14tovug0=; b=Sid3eR2hTB3J53/p3tRghM57hlQSjyqyrFDqdS4ofjfRZYZv/SOk0NJEkq02FEcDAS EWFe002DlFiLAL9qwGx4lA+ys4hpuqHKxsDEdy2nM5UV3LfByUy4LzG/1m/pZPgbHpEW Vpq6MsMoTocGjrDFo8V/bXrgd+xGwL+C8Y1K3ocAlr9VDhSGrGk1Bfp4LJq5bp8Bnbmt qyGL7qt920bdG5L7SLR7QTs/0V6RsAHgo9VxWQQUI82i2JQqkhXFmOhruzw2IU2ix0qI CaHjq3R3Lu0ADn/Q3Ux7MJkS2EC2/U4ZUTIobpaUE4D6Z0jzevWUe2V2dZK+EftnywFH 2Skg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pbfp7lZl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 32-v6si4939808pla.348.2018.04.19.21.39.06; Thu, 19 Apr 2018 21:39:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pbfp7lZl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751467AbeDTEhP (ORCPT + 99 others); Fri, 20 Apr 2018 00:37:15 -0400 Received: from mail-io0-f196.google.com ([209.85.223.196]:41494 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750729AbeDTEhO (ORCPT ); Fri, 20 Apr 2018 00:37:14 -0400 Received: by mail-io0-f196.google.com with SMTP id o7-v6so7326634iob.8 for ; Thu, 19 Apr 2018 21:37:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=q7bOhZCCkRtX5oQ8N/1PM4dce1mfzs9Gmlf14tovug0=; b=pbfp7lZliIXPKu7FJ9mx9FR3d1xMEKipIrAD1nrG5jQJ1uzqnI00VQXZOtJWxDidGb oF2nom7LvzoO791epL0wlOBSVG8Hm3M4vpqJQtU6nNdlFlapj0m057kxdsfarPp3V+cM kdqwW725ewuxJHRsxEUVY133hfDYYukXnIL5QLyT9IpYyt7gVzqJL4VyklNKkJqzYH3b JqG9FRz9fIvgJpsKHmrjEC9/pXYaD3Ovcx7mCsjXQkGULBQTcTRgUwc7O+kDp4W2KAci hX/IgA66ddLXPsCXJlx8colZv1d5hF/d2z6yPL3HolO5Rm+uCEjDlantKKl1YGaGdvwc +iPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=q7bOhZCCkRtX5oQ8N/1PM4dce1mfzs9Gmlf14tovug0=; b=AeTukfty4vK4nC+WFAzAonrURs1AfL1+hasyYpHF1vy1aLWOHE4mlHW68Kz7wowwhT Hr2hI32NXjox12DQs+iuFokgyKWmd+Ylha92KzKfFPCpPBXmGvHQRI+/8DJd/qmJVhP5 l+nKjNwvGyXFD3NpVp7yJ6coOEEB2XGeaSPN/Ke8R3r/8qhzJQjZh86cZ0S3hvcRs9tx OGqVlqwqLG93mSPBJ/d3Ionz4I+FjzHhQY06HDQkI/bpF9qimAsC/yA+yLIC2XIgcf+I h02VBt8j7RjFa5UeAZhuuN3xBjOOvYOPt+rMEZBFxhvrGQs4fDuRSAVV6llKBQavxVg+ U7Kg== X-Gm-Message-State: ALQs6tDf6AW998Xuw4+uVEJfgIfxjy9AzzFeJ52iWiYDo7KyZ0+IX6n8 PykRCmbR51l02ROz8Mk1xByeZBbohBrGPtgMH1c= X-Received: by 2002:a6b:8544:: with SMTP id h65-v6mr8498245iod.271.1524199033516; Thu, 19 Apr 2018 21:37:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.157.15 with HTTP; Thu, 19 Apr 2018 21:37:12 -0700 (PDT) In-Reply-To: References: <20180301163331.987775783@linutronix.de> <20180313063630.zxebyb7gczeiovyf@gmail.com> From: David Herrmann Date: Fri, 20 Apr 2018 06:37:12 +0200 Message-ID: Subject: Re: [RFC/RFT patch 0/7] timekeeping: Unify clock MONOTONIC and clock BOOTTIME To: John Stultz Cc: Ingo Molnar , Linus Torvalds , Thomas Gleixner , LKML , Peter Zijlstra , Steven Rostedt , Petr Mladek , Mark Salyzyn , Prarit Bhargava , Sergey Senozhatsky , Dmitry Torokhov , Kevin Easton , Michael Kerrisk , Jonathan Corbet Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey On Tue, Mar 13, 2018 at 7:11 PM, John Stultz wrote: > On Mon, Mar 12, 2018 at 11:36 PM, Ingo Molnar wrote: >> Ok, I have edited all the changelogs accordingly (and also flipped around the >> 'clock MONOTONIC' language to the more readable 'the MONOTONIC clock' variant), >> the resulting titles are (in order): >> >> 72199320d49d: timekeeping: Add the new CLOCK_MONOTONIC_ACTIVE clock >> d6ed449afdb3: timekeeping: Make the MONOTONIC clock behave like the BOOTTIME clock >> f2d6fdbfd238: Input: Evdev - unify MONOTONIC and BOOTTIME clock behavior >> d6c7270e913d: timekeeping: Remove boot time specific code >> 7250a4047aa6: posix-timers: Unify MONOTONIC and BOOTTIME clock behavior >> 127bfa5f4342: hrtimer: Unify MONOTONIC and BOOTTIME clock behavior >> 92af4dcb4e1c: tracing: Unify the "boot" and "mono" tracing clocks >> >> I'll push these out after testing. > > I'm still anxious about userspace effects given how much I've seen the > current behavior documented, and wouldn't pushed for this myself (I'm > a worrier), but at least I'm not seeing any failures in initial > testing w/ kselftest so far. I get lots of timer-errors on Arch-Linux booting current master, after a suspend/resume cycle. Just a selection of errors I see on resume: systemd[1]: systemd-journald.service: Main process exited, code=dumped, status=6/ABRT rtkit-daemon[742]: The canary thread is apparently starving. Taking action. systemd[1]: systemd-udevd.service: Watchdog timeout (limit 3min)! systemd[1]: systemd-journald.service: Watchdog timeout (limit 3min)! kernel: e1000e 0000:00:1f.6: Failed to restore TIMINCA clock rate delta: -22 Lots of crashes with SIGABRT due to these. I did not bisect it, but it sounds related to me. Also, user-space uses CLOCK_MONOTONIC for watchdog timers. That is, a process is required to respond to a watchdog-request in a given MONOTONIC time-frame. If this jumps during suspend/resume, watchdogs will fire immediately. I don't see how this can work with the new MONOTONIC behavior? Thanks David