Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp374754rwr; Wed, 19 Apr 2023 07:39:52 -0700 (PDT) X-Google-Smtp-Source: AKy350YpkCBsm+zkhDNtiAo0QfjmWJaLz0pkAXG/D8keTHg/2ZrUO2J+kQ+QpXflpUpCS4IxeKvR X-Received: by 2002:a05:6a21:6da0:b0:ef:c4f6:912d with SMTP id wl32-20020a056a216da000b000efc4f6912dmr4805449pzb.49.1681915192022; Wed, 19 Apr 2023 07:39:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681915192; cv=none; d=google.com; s=arc-20160816; b=lWssCOohzPIDALyMR3eUJPjmnon+7mcbjjK6MXXnPhak+tJe02n7KrhtX1/7VjDZw+ 8LRXbTJ8J2NYkt0c33eoPFuN6yc3w7Ml+FNST6YAxbHxDjL0bX97HqRJwJacznmJfwBD VUcb0KBF3SzqDwLl7lgAmFGcebd6SBBTTMO+WYUXW5hNV2GbMaVUiU3+FUysWbT+ggWT ZTWGNmP+9yfy5TwE+180lvgHyayJH6yGhZyd354ziyzQCIBHBJs7KQCZJksDB7Ws5bnX d7oCOAgYK3wJiPlr9pge3CNAsG3LjaXEVOlSPt4XU5szUzWLi1hPUa8Wr0tv0tBzLqde ES9w== 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=0zceTr3IJvZAOP6+2eeC0vH3EC5khW0Gmy792chY32s=; b=HzLPGW8DPQVXZpCMWVyiHhaEPxgKnJe/jcxngfHoJ6LyKml5xzFf4JnhayVz26tnKc KAOq9RFBbg+NWvDnfFMOpn4H9Tw/C4UMm8Fy9buv/w/3qMb7kbEjcGqGnto0zztKBJr4 wNwemKAC5LFnIKuzh4TyT5I12fLHVI7vZA6kAYQMEcLXMnQ+cHxdFkiZ3MWP3KTw4Eat sYyKKohrEjb4OjvYVq4OQ8VvxVOIPVncK8xvmormptkhvk8x3wWIMDf9tT9R8DD/Qtp6 1wpqKl5QvAgs1fr+wg5qZZCc/hj/3UQOKrHpNUwlNootzMZSCzE3+pCt8MUJeGt8ZN3o CwiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=ogvZyIAj; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n7-20020a6543c7000000b0050fad5c0e52si15726942pgp.830.2023.04.19.07.39.40; Wed, 19 Apr 2023 07:39: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=@suse.com header.s=susede1 header.b=ogvZyIAj; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232587AbjDSOgE (ORCPT + 99 others); Wed, 19 Apr 2023 10:36:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232635AbjDSOgA (ORCPT ); Wed, 19 Apr 2023 10:36:00 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D86167ECD for ; Wed, 19 Apr 2023 07:35:54 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id E64971FD93; Wed, 19 Apr 2023 14:35:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1681914952; h=from:from:reply-to: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=0zceTr3IJvZAOP6+2eeC0vH3EC5khW0Gmy792chY32s=; b=ogvZyIAjdJEHmhNihYmNWEk4ZzZW3kDWQU/3MM6QbERZwdcEHpaEx3D40HQHSaLZlGzH0J +xqSkOoVowITwW3e24rleVA7FbWaqvuYtngTcpoifDjW2h7SRi9HhEYJ9Wn/XZp4FQ7+o8 qSr3pYdK/GRyC7PFofYV3Lkg7+rS7mc= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id BFB1613580; Wed, 19 Apr 2023 14:35:52 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id UKqnK0j8P2QhdgAAMHmgww (envelope-from ); Wed, 19 Apr 2023 14:35:52 +0000 Date: Wed, 19 Apr 2023 16:35:51 +0200 From: Michal Hocko To: Marcelo Tosatti Cc: Frederic Weisbecker , Andrew Morton , Christoph Lameter , Aaron Tomlin , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Russell King , Huacai Chen , Heiko Carstens , x86@kernel.org, Vlastimil Babka Subject: Re: [PATCH v7 00/13] fold per-CPU vmstats remotely Message-ID: References: <20230320180332.102837832@redhat.com> <20230418150200.027528c155853fea8e4f58b2@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Wed 19-04-23 10:48:03, Marcelo Tosatti wrote: > On Wed, Apr 19, 2023 at 02:24:01PM +0200, Frederic Weisbecker wrote: [...] > > 2) Run critical code > > 3) Optionally do something once you're done > > > > If vmstat is going to be the only thing to wait for on 1), then the remote > > solution looks good enough (although I leave that to -mm guys as I'm too > > clueless about those matters), > > I am mostly clueless too, but i don't see a problem with the proposed > patch (and no one has pointed any problem either). I really hate to repeat myself again. The biggest pushback has been on a) justification and b) single purpose solution which is very likely incomplete. For a) we are getting the story piece by piece which doesn't speed up the process. You are proposing a non-trivial change to an already convoluted code so having a solid justification is something that shouldn't be all that surprising. b) is what concerns me more though. There are other per-cpu specific things going on that require some regular flushing. Just to mention another one that your group has been brought up was the memcg pcp caches. Again with a non-trivial proposal to deal with that problem [1]. It has turned out that we can do a simpler thing [2]. I do not think it is a stretch to expect that similar things will pop out every now and then and rather than dealing with each one in its own way it kinda makes sense to come up with a more general concept so that all those cases can be handled at a single place at least. All I hear about that is that the code of those special applications would need to be changed to use that. Well, true but is that bar so impractical that we are going to grow kernel complexity and therefore a maintenance burden? Everything for a very specialized workloads? [1] http://lkml.kernel.org/r/20221102020243.522358-1-leobras@redhat.com [2] http://lkml.kernel.org/r/20230317134448.11082-1-mhocko@kernel.org -- Michal Hocko SUSE Labs