Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp6006801rwe; Tue, 18 Apr 2023 15:16:31 -0700 (PDT) X-Google-Smtp-Source: AKy350ZOBNamFhAak/lW0bc0GLx5emr479U32wMTAr3t35HVG6FX4av7Aj5y5vLMadKM/qufE2ca X-Received: by 2002:a05:6a20:7f87:b0:ed:1355:f88a with SMTP id d7-20020a056a207f8700b000ed1355f88amr1165815pzj.46.1681856190911; Tue, 18 Apr 2023 15:16:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681856190; cv=none; d=google.com; s=arc-20160816; b=UaZ9BzIWTkqU310aBv3qCHJL6mn8obExk6w4aXQzvWU0mIiwthRaLJ0JXqHqBaVym/ zMvGg9OC5mhLRfFgSl+w4DqhoSSxU2R/t8r8nU3J6jGXeuOCry7H/qjvqZUV5/cE7NKb yRXraRidAt04Sqw/jOyCWlYVrv8hCtgIMGf1qgo/AcTmrOMyG9TmsyJa4fjAHx8qYwNS 8Qwpre2orPdMnoDsnrCuHsw3JlnEAOJQIvI8L77quwH579jfPmHzDaybjIliYnzk6u4R j5s67sG0SQJ5TkZLXJ3ST/HrG35yntpIkFYAAwQVuqZWmU81e1ly5SkDZZXEWVGXupQ2 rAWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=yRR2e8B06lzCvJ5iOYoMxV3G9i7mewUP7f5jY1aaz5s=; b=q9Tb02AwBk0uO+7KnRyQB5Xa39al2L1pqQDrL/WlvPhTpXsI5xEn3STiRsfpdOYmoR lOMZ+eQrVbzAl+10ZMRFpAaGs7fqFJtX/uNZAEx2mYMQvWhV6RY7aq4dr/dNVnxMR+TH 1aE+iv3jv5wafSez65G8QXQ8zKV3ZJSlt3nEga6mog/+mCEiUdgfXn4Z8rvsVoYkxjyi AA8haAhgClASE1kjltekEwC+DWQXov4FLuK+HicZnTL9K0Amd3dKCWWCvPYcvrQU6e2e LRMiUt3B2KSsadM3oqw+wgS4E/To/HG1bejAtDlFpI0CKRdBJ4B6p2oEIeEwWtP0Ah2D FgrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=dU3s35zG; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 6-20020a621806000000b0063b6bc7df13si11555626pfy.209.2023.04.18.15.16.07; Tue, 18 Apr 2023 15:16:30 -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=@linux-foundation.org header.s=korg header.b=dU3s35zG; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232462AbjDRWCH (ORCPT + 99 others); Tue, 18 Apr 2023 18:02:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231872AbjDRWCE (ORCPT ); Tue, 18 Apr 2023 18:02:04 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FBA3A5FC for ; Tue, 18 Apr 2023 15:02:03 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C095A6399E for ; Tue, 18 Apr 2023 22:02:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C64CCC433EF; Tue, 18 Apr 2023 22:02:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1681855322; bh=JNP1xB5GIvgJJmSbKQabnxhJhbq3MlZMoGbPthN+Vlw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=dU3s35zGaGQzcQIfZFASfRNiGP2LdPGekM1pWmXlWZWgaUS9hn+0/k1HvMtL7uR1X kyh2TcXFLCX/PC+aWFRFmbDBTtbsC9VkH2l5BRRhbn5dPTAsrgzmlRn9Tjc9n+EMBk 0BDCNKFs9eKooI+KQaHxVeapVFr8SM6tVJLQrX5E= Date: Tue, 18 Apr 2023 15:02:00 -0700 From: Andrew Morton To: Marcelo Tosatti Cc: Christoph Lameter , Aaron Tomlin , Frederic Weisbecker , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Russell King , Huacai Chen , Heiko Carstens , x86@kernel.org, Vlastimil Babka , Michal Hocko Subject: Re: [PATCH v7 00/13] fold per-CPU vmstats remotely Message-Id: <20230418150200.027528c155853fea8e4f58b2@linux-foundation.org> In-Reply-To: <20230320180332.102837832@redhat.com> References: <20230320180332.102837832@redhat.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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, 20 Mar 2023 15:03:32 -0300 Marcelo Tosatti wrote: > This patch series addresses the following two problems: > > 1. A customer provided evidence indicating that a process > was stalled in direct reclaim: > > ... > > 2. With a task that busy loops on a given CPU, > the kworker interruption to execute vmstat_update > is undesired and may exceed latency thresholds > for certain applications. > I don't think I'll be sending this upstream in the next merge window. Because it isn't clear that the added complexity in vmstat handling is justified. - Michal's request for more clarity on the end-user requirements seems reasonable. - You have indicated that additional changelog material is forthcoming. - The alternative idea of adding a syscall which tells the kernel "I'm about to go realtime, so please clear away all the pending crap which might later interrupt me" sounds pretty good. Partly because there are surely other places where we can use this. Partly because it moves all the crap-clearing into special crap-clearing code paths while adding less burden to the commonly-executed code. And I don't think this alternative has been fully investigated and discussed.