Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp223647ybl; Thu, 9 Jan 2020 20:34:22 -0800 (PST) X-Google-Smtp-Source: APXvYqzOz9yQqP8b8TkrmsvVkGznWaxtUxjL/QoYhr4ZOsxfn9knWTnapSYJP/H02kuNvvQte331 X-Received: by 2002:a9d:62c2:: with SMTP id z2mr1083408otk.309.1578630862318; Thu, 09 Jan 2020 20:34:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578630862; cv=none; d=google.com; s=arc-20160816; b=jfvq5BqBUtJsi92mWY9o+yA/i5/JK3SqBifUQCMHr3emoxWafLxR7nyp6qicxlCvg2 VcyIRsMY9jfcFv47qHNFmCyKtycHGj9PIht8AED2jRD5GnR763V6cjasUKb0o2RKpYnv ZP2YTbOyXAeF5aOix46zJ+Cw0G22ciOcsBcp9YK07K70ABeYg4jDvuYuEQc8OemWJ+Lj gQQn7qR33iSd1ECmu3VkXXmGBrQVEF5y6+z2SvYgVXAtBpA2f3zYZ2qUpgsNuefCYNuu Ns5CqqrE6MXdS7i3lOmNRU13JmQ4hH/w30NRcYv6fC9b/NFh4sQL/dpx0Z90PG2kVshm nWKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:to:from:date; bh=ITqpezOxVKhI7aWUPp1ihV9/3kIEtwflgHwIQ15IV2U=; b=hY9JhDk6QZ0uatlfhBrQ0N5OTYlA5t68uPkBY/LMTrsj53aozQbGboPB0CyxlNZOL1 KT5mxssnZDpTWickOmWOCrBL6ydOvCw+2G3EbRap/lQ47FOz89LcHy0bRAzolGgh8qTo 1SIb7Rr6WXHJZ2DRbmsw4yjAjyZrPlnJ1er0aLTjf0FnOlvpAnXS77XR31BWVrQ95JjU ix/LSlXCld4G0ALsLri6wuPoFR4i2Rh0NHllTOomP3Ns7eo0Ev13L4Hx8+Kxrw6ccPFr v+m8I7fDONueUGa0qv8R+NuUBwoTzsBJ2OvDQN1jBVPVjMpuxlqBEy6WtxrOyeKwoqAQ AIxw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a15si463348otq.83.2020.01.09.20.34.11; Thu, 09 Jan 2020 20:34:22 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731266AbgAJEdE (ORCPT + 99 others); Thu, 9 Jan 2020 23:33:04 -0500 Received: from vuizook.err.no ([178.255.151.162]:34516 "EHLO vuizook.err.no" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731162AbgAJEdE (ORCPT ); Thu, 9 Jan 2020 23:33:04 -0500 X-Greylist: delayed 1613 seconds by postgrey-1.27 at vger.kernel.org; Thu, 09 Jan 2020 23:33:03 EST Received: from p576124-ipngn200707tokaisakaetozai.aichi.ocn.ne.jp ([122.31.139.124] helo=glandium.org) by vuizook.err.no with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iplYl-0006ie-DK for linux-kernel@vger.kernel.org; Fri, 10 Jan 2020 04:06:08 +0000 Received: from glandium by goemon.lan with local (Exim 4.92) (envelope-from ) id 1iplYh-0002pF-Cv for linux-kernel@vger.kernel.org; Fri, 10 Jan 2020 13:06:03 +0900 Date: Fri, 10 Jan 2020 13:06:03 +0900 From: Mike Hommey To: linux-kernel@vger.kernel.org Subject: Uptime completely off after resume from suspend Message-ID: <20200110040603.3lxanijleog6tfl6@glandium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-GPG-Fingerprint: 182E 161D 1130 B9FC CD7D B167 E42A A04F A6AA 8C72 User-Agent: NeoMutt/20180716 X-Spam-Status: (score 0.9): No, score=0.9 required=5.0 tests=SPF_FAIL,SPF_HELO_FAIL autolearn=disabled version=3.4.2 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, I have a one month old machine, and was surprised to notice an uptime of several hundreds of days in top. Since I had been suspending the machine on many occasions, I was wondering if that could be related, so I put the machine to sleep, came back 30 minutes later, and uptime had advanced 35 days! The actual boot time, according to journald was a week ago. And the "timestamp" for the suspend exit in dmesg is 312967, which is about 86 hours, which is about half, which seems about right considering the suspends. The wall clock time and date is right too at the time of resume in the journald logs, assuming systemd-timesyncd doesn't synchronize with NTP before systemd logs "Started Suspend" after resuming. This is all with 5.5rc4 + the patches from the Debian kernel packages, on a Threadripper 3970X, in case that matters. Any hints where I should be looking to find out what's going wrong? Cheers, Mike