Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4497425ioa; Wed, 27 Apr 2022 05:15:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy06zbGmTm3juuTWjC2ODD8YqskjFhJ4W16iQJBOgOD2RRDmADT2sA+53cRooRIv11Fw3kP X-Received: by 2002:a17:902:f693:b0:15d:1c2:3436 with SMTP id l19-20020a170902f69300b0015d01c23436mr17612347plg.161.1651061703216; Wed, 27 Apr 2022 05:15:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651061703; cv=none; d=google.com; s=arc-20160816; b=OdJOWh+SBonlPbPNaoJMTQCWUf+WxcqfMpQvKtAek67dwyoB9gIzUR8wm8WzeoXqo7 RZu0qoxfulbLGHWSjwXiB+9+BKP2KxqXtpDq60/RtyWFz1lmvto9VtDHPd7DeEbYlb79 Ii+3e13nfO6OfnorJ60tZaDLuHqt8E3GyxneLCrB6Scr/xTN5HDXAj5OwBrCItqPYBd8 8NyxhLLt8IrW6WBmMZxwLa5qzScDYeOyLapq9z//+2ZTPIsxZ3kqhsW5iFfr02ioMd5Z I2IzX5xfh+Ic9cGu+gettcFWB5j5YJJDgdNLARrX8Ri7mOuFmeG15ZEUMzQAJBh6bbbE 4L0g== 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=J8PqE4iMUPFqCcEpgWE5Kb02oz8+U7so76j9i/Ng+DY=; b=npGapGl/WyFnbz/Kkj58PKcCLJBl/C1YX2MSObdG4tqJEAOjTJz1NbHweViW2TKkeD UYyvsHgvBmc92X+lBC3bwG61XG+yyzd9FAdWhZAZHehWqalSV9mzcEAFitgFnJJtsUHW LH9TJJ3iHpGduTaSOATvwXETfXMSz3BHst5+V5oI1t70P6J5KV8a9lBdoU8n3VpfgydK jPpd415MIl06XKdLUZK4Ube5aLvuQc2HAof/8mPTRUNPyf9ZB32FowprCFK/Hx+xVkce /0RKnSo+jof+zf8sJ9NF1hbtSa7N2b/sOn2vgbwHAb9cwlJZR12cwIaG/DS5vg2Oh3hJ RbrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JcJ0GTTC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id k14-20020a170902d58e00b00156b1cd8b9dsi883437plh.206.2022.04.27.05.15.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 05:15:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JcJ0GTTC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B9B3C1301A6; Wed, 27 Apr 2022 04:50:36 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233173AbiD0Lxn (ORCPT + 99 others); Wed, 27 Apr 2022 07:53:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233131AbiD0Lxk (ORCPT ); Wed, 27 Apr 2022 07:53:40 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AFDE212EB78 for ; Wed, 27 Apr 2022 04:50:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1651060227; 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=J8PqE4iMUPFqCcEpgWE5Kb02oz8+U7so76j9i/Ng+DY=; b=JcJ0GTTC0PdKSeb4FV1XoHlcP6LTsML9BT2C1NUSG6IYe/k8g0PpuKa0V65j90sTGdY1Wg /+UMbxOCHgd8T5zoPi4zeFF6n+MVTbZ4hrXeeI00bLwcDz0V/v0e2qCmh6RBSYRgMMguh2 Y0c3Bb9JWiHkGk+KG3IPzh6Xya7WkZM= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-164-fIUCw_7DNmi3VP8wvjY9_g-1; Wed, 27 Apr 2022 07:50:23 -0400 X-MC-Unique: fIUCw_7DNmi3VP8wvjY9_g-1 Received: by mail-wr1-f70.google.com with SMTP id o11-20020adfca0b000000b0020adc114131so661130wrh.8 for ; Wed, 27 Apr 2022 04:50:23 -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=J8PqE4iMUPFqCcEpgWE5Kb02oz8+U7so76j9i/Ng+DY=; b=1O3hpQi2796mqUD4/wvPjgRtXdbA6TaOuV2FEOVdW33F86I3bSd6MouH1kBiUi+Yns OGQq0PEjgIcbT78BpCvxDvzLErEgcT7r8C++zuFlYssKThhXgHzHDqXfw+NstE+32bAk 8x/byzmXuAHaahnm8tJ+053i9hIqIxAQIsJDAzUR5EoprH+bBk6siL9gccf1OhY/+3jB WnKS+7g20+NVTGpQO3m+LDaM85hiJ1cG/G6D1az80hvLxgGq26YUAzj9amCpMoFphDer hnIh4KjGGKTWZh7KUaoYr/QkXYReUPoJbFi6o5UnP6iJjylsDX2DWvmW65iZDhr8V9BE FlYQ== X-Gm-Message-State: AOAM533VQoTrJitqiBfiz08dp9iOjDDO+bK0XgVTUt0DSrlzTVSdXzaD bnI5S1EyVOh7pAigdvop5H1fE5bv4XZ8gm2GIbrJsUVcO2kBUjmds3txGZB3NjKBmdSO7CPOH/I O3/3i8ffbX8ykQEX9LUhhpx8= X-Received: by 2002:adf:d1ea:0:b0:20a:2823:9e22 with SMTP id g10-20020adfd1ea000000b0020a28239e22mr22270414wrd.332.1651060222725; Wed, 27 Apr 2022 04:50:22 -0700 (PDT) X-Received: by 2002:adf:d1ea:0:b0:20a:2823:9e22 with SMTP id g10-20020adfd1ea000000b0020a28239e22mr22270403wrd.332.1651060222535; Wed, 27 Apr 2022 04:50:22 -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 f66-20020a1c3845000000b00393e84ea043sm1390797wma.44.2022.04.27.04.50.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 04:50:21 -0700 (PDT) Date: Wed, 27 Apr 2022 12:50:20 +0100 From: Aaron Tomlin To: Marcelo Tosatti Cc: Peter Zijlstra , Christoph Lameter , frederic@kernel.org, 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: <20220427115020.kyaxc5j67lq5zrfq@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> <20220425141717.vw2jfnn3zp6c5ib2@ava.usersys.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=unavailable 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 16:21 -0300, Marcelo Tosatti wrote: > > 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. > > Is there anything that prevents a nohz full CPU from running an > application with short and frequent idling? Hi Marcelo, I'm not sure I understand the question; albeit, if I understand correctly, yes: the scheduling-clock tick, if it was stopped. Yet I believe this behaviour is correct. Consider the following example: When a CFS task is moved/or migrated to a nohz_full CPU that was previously idle and had its tick stopped, if its the only task on the run-queue then it is possible that the idle task may not restart the tick (see __tick_nohz_full_update_tick()). Thus once the CFS task exits manual intervention i.e. a reschedule IPI to wake the idle task, would be required to run again, on the same CPU. Kind regards, -- Aaron Tomlin