Received: by 2002:a05:6a10:5594:0:0:0:0 with SMTP id ee20csp383628pxb; Mon, 25 Apr 2022 11:55:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkTFRXMnNadDbZw0xQSOk7hyNW+kDgJT9pVv9awhn0O10K/Wu43Tz3QMxI3EOWZgqEhTvA X-Received: by 2002:a05:6a00:2392:b0:4fa:dcd2:5bc1 with SMTP id f18-20020a056a00239200b004fadcd25bc1mr20307347pfc.8.1650912951406; Mon, 25 Apr 2022 11:55:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650912951; cv=none; d=google.com; s=arc-20160816; b=GL137jAYzucrhQ6ckbBaClqf4XGKudURcjUe0sno22bU9zKMK06pyuq2s4kYVxV64g /SdokSMin7mF0P/U/+RNxM6OERBVeJ29zYc22I6S9bdUXqHloy5aqm6HJuimnP4NTFDF 0PwP1C6bHqK+DbL5c5i774ac9gTxQ+PDO7aC9c1mvF97S4WiEfuAbT8tb7tzIQZCb0ZW TOaxfoCTFMA05EJY+h6QbsswdCzJx+dhVy96wp7IwvU6P3G3bEsLrC+/zSYxNxEG5R5v MHBArMUOJNuQ7W0XAy7V7LO2fNCHYG+NzjzxzUdTJsCA/1ij7oBeFUz/EuzK350D/yQz A4pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=3M0aoxkyxBu8tMQw8TfYWG0VMojy3pZmIs9OKgeG0uY=; b=hoLi5m8gqDgM+u6mwTzhzUvFbTgr62bloL73ed8N6aznGKg8+CDoam+jGdkEFqrM2m gQrX3YLduIQMe1UAJaG96XW+57ggBV88fXoNk9yaFVkgVh/8V7KQUD6f37g/gG0aVr+j DmTTIYO7ozjc8ObSuOSGY24hKo9RN3oL8bmyDLCettgAFNcG8W5tJV9naIIHuXr+FSjZ +uDPvPXbDhDSubJgt95s/W+e1K4fgJ6WuMp0t5bMjzmO4BOy/6Obd9/LbHK+yzlb327i ZOoMKehsS5RWx6UplULIw+J+VpyoGteUBL2wef07csMHip5AIHKKJv7AVq1rjlYn1kQv Anyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=I45q1LiJ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lx3-20020a17090b4b0300b001d2827e4df2si146421pjb.9.2022.04.25.11.55.33; Mon, 25 Apr 2022 11:55:51 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=I45q1LiJ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237992AbiDYOUa (ORCPT + 99 others); Mon, 25 Apr 2022 10:20:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237175AbiDYOU3 (ORCPT ); Mon, 25 Apr 2022 10:20:29 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BD2421D336 for ; Mon, 25 Apr 2022 07:17:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1650896243; 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: in-reply-to:in-reply-to:references:references; bh=3M0aoxkyxBu8tMQw8TfYWG0VMojy3pZmIs9OKgeG0uY=; b=I45q1LiJfmZlSy/1hvA6gRGwZ1cXOHYPrCAwnT7HIxZwb0yc8FL01DE2XA97cxK+zvHe+w U81smKudZNz3npuDjwB76hoNUjY+kgGBq1HNqnLCiebWhJ3luoMQdA0yTRT1MV7EEgVOGC U+PWjXskryQDWqCWlrtNz9Y3pJULoQY= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-315-a92EowTmN7aRTbViTfYHQA-1; Mon, 25 Apr 2022 10:17:22 -0400 X-MC-Unique: a92EowTmN7aRTbViTfYHQA-1 Received: by mail-wm1-f69.google.com with SMTP id t2-20020a7bc3c2000000b003528fe59cb9so7205321wmj.5 for ; Mon, 25 Apr 2022 07:17:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=3M0aoxkyxBu8tMQw8TfYWG0VMojy3pZmIs9OKgeG0uY=; b=qmeTYiRYZgbobjS8Nvv/Na7B0/W43ly2Aapz6+AIOTK/MevRHcuJ32JTHAWkHlwSvf 1kEhjQ528f4XscuUxtYE+coxmhxHeLuhNeL1NuONweRiY/6AdTBXC3p35T0zoTatjMUT iHJxA2FcJigA5Od8PAMNFYonNc72KBnGKXW9xadD/pMEMbsyym00p0tCpqfDZbR43Zp0 Hm6/9xVR/qQ/YjQ40l91Ibec8zbQPA7A3GDaOtBq9yb14sMI/oDCB3297DF9OXlbu06K KZWtXrLpv27S4MnCtT2aQDqwCGYOypdQwgkLL8KyjzlmBdnd62PW/Usb/nB8OigF9fLY WwVg== X-Gm-Message-State: AOAM531X4Xlu5TvF/B4MDxX8SMk8aY+97dXdJ6jDdlLjMj2TTzDXvF0u WXZu/U+qSZEUo8BNc7xBiOUXR5Fh4CSqjHu/uEPKJb1NLp9bNuh+LlkDMi2z8xsWohf6KjWjlPg N4BIgoHatlPvtX3gmBPwAZPo= X-Received: by 2002:a7b:c84f:0:b0:393:e729:e670 with SMTP id c15-20020a7bc84f000000b00393e729e670mr8781326wml.153.1650896241040; Mon, 25 Apr 2022 07:17:21 -0700 (PDT) X-Received: by 2002:a7b:c84f:0:b0:393:e729:e670 with SMTP id c15-20020a7bc84f000000b00393e729e670mr8781309wml.153.1650896240824; Mon, 25 Apr 2022 07:17:20 -0700 (PDT) Received: from localhost (cpc111743-lutn13-2-0-cust979.9-3.cable.virginm.net. [82.17.115.212]) by smtp.gmail.com with ESMTPSA id t2-20020a1c4602000000b003917d43d339sm11918988wma.4.2022.04.25.07.17.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Apr 2022 07:17:19 -0700 (PDT) Date: Mon, 25 Apr 2022 15:17:17 +0100 From: Aaron Tomlin To: Peter Zijlstra Cc: Christoph Lameter , frederic@kernel.org, mtosatti@redhat.com, tglx@linutronix.de, mingo@kernel.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 Message-ID: <20220425141717.vw2jfnn3zp6c5ib2@ava.usersys.com> X-PGP-Key: http://pgp.mit.edu/pks/lookup?search=atomlin%40redhat.com X-PGP-Fingerprint: 7906 84EB FA8A 9638 8D1E 6E9B E2DE 9658 19CC 77D6 References: <20220422193647.3808657-1-atomlin@redhat.com> <20220425113909.u3smtztp66svlw4o@ava.usersys.com> <20220425132700.GK2731@worktop.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220425132700.GK2731@worktop.programming.kicks-ass.net> X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE 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 2022-04-25 15:27 +0200, Peter Zijlstra wrote: > On Mon, Apr 25, 2022 at 02:09:06PM +0200, Christoph Lameter wrote: > > 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. > > I'm thinking you're going to find a ton of regressions if you try it > though; some workloads go idle *very* shortly, doing all this accounting > is going to be counter-productive. Hi Peter, Christoph, Indeed. Which was why I decided, initially, against the general-purpose case/or approach. Personally, I would prefer to keep this somewhat restrictive to nohz. Kind regards, -- Aaron Tomlin