Received: by 2002:a05:6a10:5594:0:0:0:0 with SMTP id ee20csp84611pxb; Mon, 25 Apr 2022 06:18:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyaS/mFVwqNNeRnNb+HNDaYReXo/zTAk71bAKR/2Pk6BducM6GMu1qCgTGP6RHgm4WS9KlQ X-Received: by 2002:a17:907:da0:b0:6df:d4a4:9d0f with SMTP id go32-20020a1709070da000b006dfd4a49d0fmr17065598ejc.407.1650892718993; Mon, 25 Apr 2022 06:18:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650892718; cv=none; d=google.com; s=arc-20160816; b=PxuPm0zzBf5MECua9G6sdk8B9PMicxWzxu0oKZVJNXdlcWl7HB/DitEw64c/zC0LpD jjgglOHpApCYBHysAyBdpl4ei0dMBPmXWNZAC72/kBwa3N7a8+LbMrBhTesXEMHISfPU kLGt4U32fCNCqDboBwNpa8Lyzu+p2IhJ3649e9s5iJYn6ugwseeN8LDiaGvapchPmk4j rBC6rYGNCl9kFDiDEiy5Qk8o7Yjo1EOLm1yo+/aCQvW4gOY6wDqRSDCbi1XMtrAqgMvs zIiADcOE6N2CQPZPGqtQMsQIVNro4KLSXIvUvdFj76Uim9Bmm/IlNhWFUkSXuF5WzK4c mqpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=/TxDY9HW+7nRTelfIkVVQMWMB7EWMnxcscdCMr4QSiM=; b=tVKkNu3Jb16fUnQjx3C7PG22zyRvLMMAC8b/xQ3+FdeJBnuLcoAiLx3YDlZcLBKKN1 UaRyhdLgAC0gCQH8SO8Yjcg3o6Df2bh5hpvfvZDK6LOqwMNylrjPmzJd9J7F9+YTKtmJ S0Tbt49frRRZQxI5fErI5F7ie/6XI1sgfmLqubVIgtFfFX+wXv473J6chScNJ2DKIZ/v RaBL/aLnEV1CTe3huURMf+FnDILh8hbNQEzAeojS35VOSoGXKxhlaqErGmsyoFxXQyRZ LaPYVJfqa0JJ5JkKikz1MLmsfA0QvxU5E5nQSfEtock6NV4Z6FRJTE/UDEVbvnlnuQAp F5aw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gentwo.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kw22-20020a170907771600b006e6ff6b070asi13654935ejc.39.2022.04.25.06.18.05; Mon, 25 Apr 2022 06:18:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gentwo.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236019AbiDYMMO (ORCPT + 99 others); Mon, 25 Apr 2022 08:12:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235122AbiDYMMN (ORCPT ); Mon, 25 Apr 2022 08:12:13 -0400 Received: from gentwo.de (gentwo.de [IPv6:2a02:c206:2048:5042::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 794AA5A177 for ; Mon, 25 Apr 2022 05:09:08 -0700 (PDT) Received: by gentwo.de (Postfix, from userid 1001) id 94730B000C1; Mon, 25 Apr 2022 14:09:06 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by gentwo.de (Postfix) with ESMTP id 938E4B00078; Mon, 25 Apr 2022 14:09:06 +0200 (CEST) Date: Mon, 25 Apr 2022 14:09:06 +0200 (CEST) From: Christoph Lameter To: Aaron Tomlin cc: frederic@kernel.org, mtosatti@redhat.com, tglx@linutronix.de, mingo@kernel.org, peterz@infradead.org, pauld@redhat.com, neelx@redhat.com, oleksandr@natalenko.name, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [RFC PATCH v3] tick/sched: Ensure quiet_vmstat() is called when the idle tick was stopped too In-Reply-To: <20220425113909.u3smtztp66svlw4o@ava.usersys.com> Message-ID: References: <20220422193647.3808657-1-atomlin@redhat.com> <20220425113909.u3smtztp66svlw4o@ava.usersys.com> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 25 Apr 2022, Aaron Tomlin wrote: > Yes, in the context of nohz, this patch should ensure it, if required, when > the idle tick is to be stopped. What I said was that it is generally useful. Even in the non NOHZ case. Folding the vmstat diffs *always* when entering idle prevents unnecessary wakeups and processing in the future and also provides more accurate counters for the VM allowing better decision to be made on reclaim.