Received: by 2002:ac0:8c8e:0:0:0:0:0 with SMTP id r14csp782662ima; Wed, 6 Feb 2019 08:16:44 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib8Xc71qNsiJ7xzIxc993bgS1lv5g1fudYaVFgrzIxI5upF4f29dWZK6YGblhkCLHGq19FW X-Received: by 2002:a63:ce4f:: with SMTP id r15mr1564211pgi.303.1549469803955; Wed, 06 Feb 2019 08:16:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549469803; cv=none; d=google.com; s=arc-20160816; b=YRxvQMmEWg0XgGivhC58ND0j48MvsgXTTscirEBfP1pX+NJkF1vOlRKnBEhfQU0csK MRw3gXtP99u+LMAsQ8+OE0f1kFHNqK3mEpLAssSqY5blhNWeX1MWQ/9Thwsie+mPKJmf HERsQo4z5G/Cmo2X5+geCFsEdzfXudDhCYg/KCALq1r9xf+wrEgbaFA2K5t887n0gLcw 6EF/iO6jj3XG6iVhXbFwX889y9A79N22+vn1DHVIlSWBjKfXS1WhsmzH+EuiwnmggRO1 vMPmMKCollvvjW6r+YzvKEecAGpgwxFEmLVyk8ZeqGA4PXCK50BlwTiF/MK498E4SkkF u2zA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=EX6fcKBAizwUjxPkC9toB7IzXU4FHbfJzEdEET1xb0o=; b=ZMnF8l4/metL9lp0rcuKh5EmqPnQVI7gW9DSINSuef3ZuZUu3jLOSpzDwOBcpy+D0N /xwwdv8g+c9VjiWfrppQVQcEDRNGDBorM/3W9y9RlvZFs0qwxbiHdsXfuInPNidRMgty dGMZA3931okRxzUKpIsbhGcneYEsNRH2XMHOEbbi7BzW9HfoRr4fwVY3dyhsaZSzfNA/ BsU3CqE+/mCx5OFAkt9diDXtpZahtiW+evuRAE3XwG8PudWzIukY+g3rrlBZoPnkZhS/ C80h9vtPFz8PuAdK0l0u7T0WTyrF5106LssMOzzzgs6rIYACYElCfJQJmX/viBw7ZLNC neWQ== 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 a13si3557285pgb.412.2019.02.06.08.16.26; Wed, 06 Feb 2019 08:16:43 -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 S1730466AbfBFQQQ (ORCPT + 99 others); Wed, 6 Feb 2019 11:16:16 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:42846 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727212AbfBFQQQ (ORCPT ); Wed, 6 Feb 2019 11:16:16 -0500 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 814FA80332; Wed, 6 Feb 2019 17:16:07 +0100 (CET) Date: Wed, 6 Feb 2019 17:16:13 +0100 From: Pavel Machek To: "Pan, Harry" Cc: "Brown, Len" , "linux-kernel@vger.kernel.org" , "gs0622@gmail.com" , "linux-pm@vger.kernel.org" , "rjw@rjwysocki.net" Subject: Re: [PATCH] PM / suspend: measure the time of filesystem syncing Message-ID: <20190206161612.GA7868@amd> References: <20190203052007.27392-1-harry.pan@intel.com> <20190205212308.GA2816@amd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mP3DRpeJDSE+ciuQ" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --mP3DRpeJDSE+ciuQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed 2019-02-06 15:08:18, Pan, Harry wrote: > On Tue, 2019-02-05 at 22:23 +0100, Pavel Machek wrote: > > On Sun 2019-02-03 13:20:07, Harry Pan wrote: > > > This patch gives the reader an intuitive metric of the time cost by > > > the kernel issuing a filesystem sync during suspend; although > > > developer > > > can guess by the timestamp of next log or enable the ftrace power > > > event > > > for manual calculation, this manner is easier to read and benefits > > > the > > > automatic script. > >=20 > > Do we really need this functionality? > >=20 > > As you explained, developers can already use next timestamp or > > ftrace... and this is really not that interesting number. >=20 > The backdrop is some stress test script of suspend/resume, like Chrome > OS, is designed to program an expected RTC wake-alarm then issue > suspend command, while in rare case (or buggy software), the filesystem > sync could cost longer time in seconds, this consumes the alarm budget > causes suspend aborting, it could be abstruse to production line > developers to realize it is not a platform issue in terms of drivers > suspending; given a such metric might make the communication easier, > this is my intuition. I'd rather educate other developers that this may happen. dmesg timestamps should already make it easy to see. And actually... if you do "time sync" in userspace just before programing the RTC and suspending, this whole issue should go away. Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --mP3DRpeJDSE+ciuQ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlxbCEwACgkQMOfwapXb+vIKhgCaAnD9fPajXqwIhVuWFT72fKjh KdQAn3hBYS5jaOiUEw44mzte/TprnrEL =fRxm -----END PGP SIGNATURE----- --mP3DRpeJDSE+ciuQ--