Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2146670ybx; Fri, 8 Nov 2019 00:17:51 -0800 (PST) X-Google-Smtp-Source: APXvYqxNXa5DdPcHGs0pfw9gj1bZ8YnxlbCJsePvFk8Q9T+qLYIWKRd4J0OcGaVopQANGCm7hONT X-Received: by 2002:a17:906:25c5:: with SMTP id n5mr7297006ejb.126.1573201071853; Fri, 08 Nov 2019 00:17:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573201071; cv=none; d=google.com; s=arc-20160816; b=jf0H8a8j5Ht4IsQYlZhtDCQvrNEsFUQeclKSzd9WsBu2Smoj4xFsr1dSep2cHwaqF9 5lrvQ/8W6DpeyGbv9oeZ8LHK/E0OXFAfuZWmZVjYT2Pa1bjm4lm4PzrAB6O53/4xQzta STJ6OiZMrCOVbg1GJCO5KQzi10+w0k5HgICAkfS9gOxvd7kYdhHRp2iaNsW8ymaFUQke V8rAlMizI4mYLZF3WMZQNqt8XY07UMawWS221E5XoKSr/qDB86vNrQmSrZ2eGYGU3rB/ gmtwwJMUbCVbQiwYUChOb5uooMb+ZT9jmBN2vxXx4VVRHOixFHGY4uRhFrK6yr5Lwt9/ IrCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:organization:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=m9gPHJr4lKqA/qy4lU+Ot6ytQsbEtzegqOGni3evgQo=; b=j0QHBPJbLDP4dgOqji8g2Dd0f8xheeJ3a75GbUBcx15ZybByx0smjDPGdb0WaGyVZF ZNL8b/m4ebUMAWqpG4n1JjBzqcJ4MXPDbjr4USrwKBQkN95vMr1y6qY3GctY2nvSikvm n+ccs0bVisMQw0CXrvJkcOc9lAnoxQs13rNRbrEGHpIlGQ6Cr4IvcFww5Yy9hstADXVl YNQ3Pf+DPEryYwX51XC/qO1roapYbL24GZBM+C8ktTCuusquZCKQuClbwTwQew0ia9Vl kA2JxmrzXKJXdzacvcKopSu2ua71aFl0c2olkJ5cVi1/j+15GYvVQKf0Kv+9DUZGSnDq acYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Aipj1ePs; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u5si325012ejx.286.2019.11.08.00.17.27; Fri, 08 Nov 2019 00:17:51 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Aipj1ePs; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730224AbfKHINw (ORCPT + 99 others); Fri, 8 Nov 2019 03:13:52 -0500 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:57874 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726072AbfKHINv (ORCPT ); Fri, 8 Nov 2019 03:13:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1573200830; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=m9gPHJr4lKqA/qy4lU+Ot6ytQsbEtzegqOGni3evgQo=; b=Aipj1ePsaJiRpRRe7/I6nOAv7bKp19/eptFVd32sJENOLi0sAdNYT2Rr+RK0pDYYspP2vM 5PWuqSE0bUU41y2BSqdIJPxrRply7HJ20zicwK5S80xbITFwo2Hfpwx2gWflKnQe23o4zG y8KNauG34c4W26YHJmVp5AKbllArpIc= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-181-vk3zzKaIP4mSdaOIoPy9DA-1; Fri, 08 Nov 2019 03:13:46 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B32AD8017DE; Fri, 8 Nov 2019 08:13:45 +0000 (UTC) Received: from ovpn-116-229.phx2.redhat.com (ovpn-116-229.phx2.redhat.com [10.3.116.229]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2FEB960CCC; Fri, 8 Nov 2019 08:13:45 +0000 (UTC) Message-ID: Subject: Re: [PATCH] timers/nohz: Update nohz load even if tick already stopped From: Scott Wood To: Peter Zijlstra Cc: Thomas Gleixner , Frederic Weisbecker , Ingo Molnar , LKML Date: Fri, 08 Nov 2019 02:13:44 -0600 In-Reply-To: <20191105124351.GN4131@hirez.programming.kicks-ass.net> References: <20191028150716.22890-1-frederic@kernel.org> <20191029100506.GJ4114@hirez.programming.kicks-ass.net> <52d963553deda810113accd8d69b6dffdb37144f.camel@redhat.com> <20191030133130.GY4097@hirez.programming.kicks-ass.net> <813ed21938aa47b15f35f8834ffd98ad4dd27771.camel@redhat.com> <7b782bc880a29eb7d37f2c2aff73c43e7f7d032f.camel@redhat.com> <20191105124351.GN4131@hirez.programming.kicks-ass.net> Organization: Red Hat User-Agent: Evolution 3.30.5 (3.30.5-1.fc29) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-MC-Unique: vk3zzKaIP4mSdaOIoPy9DA-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2019-11-05 at 13:43 +0100, Peter Zijlstra wrote: > On Tue, Nov 05, 2019 at 01:30:58AM -0600, Scott Wood wrote: > > As for the warning in sched_tick_remote(), it seems like a test for tim= e > > since the last tick on this cpu (remote or otherwise) would be better > > than > > relying on curr->se.exec_start, in order to detect things like this. >=20 > I don't think we have a timestamp that is shared between the remote and > local tick.=20 Why wouldn't rq_clock_task() work on the local tick? It's what ->task_tick() itself uses. > Also, there is a reason this warning uses the task time > accounting, there used to be (as in, I can't find it in a hurry) code > that could not deal with >u32 (~4s) clock updates. Detecting a 3 second interval between ticks for a given cpu should assert i= n a superset of the situations the current check asserts in -- it just avoids the false negative of exec_runtime getting updated by something other than the tick. -Scott