Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6030131iog; Thu, 23 Jun 2022 09:54:36 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sYnrre1UI2ius0bh9d70+VQjQnCP8sx36vYYX7p3jD6V3XFaXrcp8WP4pCEMT3aXlad2fp X-Received: by 2002:a17:907:9727:b0:6fe:d943:312f with SMTP id jg39-20020a170907972700b006fed943312fmr8849247ejc.263.1656003276345; Thu, 23 Jun 2022 09:54:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656003276; cv=none; d=google.com; s=arc-20160816; b=LSbALRWTFM8DfCZiJkC8HskokR/GAL0afBgnFJjpUPWNTFjX0C65klHnzpHIJ77hkH UA/SLbalHqi5M3pawk1n4XJuZgPiWx2MhkOvmodtvJQgIjFnRK2Jw0cnydodrlHskTOQ lwHefrFGUOmMXJZcReR4LiAcybtxvr73BfhqXrgI696OeelJFQ6rG/CVYzBgD7IyqQzD 7TJm+dy6EQtNQJtjx2ulzVTmL7LGA0D8+bGIW7IZq9fmC4vLqGwEy1eSNsoJtsIEJzlo Edw3uhdhC6E5sAdo0T1hyTif/pQi3VVQAxg+F7SPswffXcftphkfTfKtw/E/ioxpZ0ol pFqA== 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=Xjy8SPQ+d5ER4berxN3l8OR04THIzep3YipbQ/OBM0g=; b=bEMFlxZwqv7DhayvsZ2Zx5yW6MrhIE9pk1aS2pzdtwErrkA9++H9gImklneeJebBnh OELr1q27912N1IeXsGJlOr/ctOS+PqYkoDCVY/SwhHK9a1GJOdsFIbjirlTJPaiTicEk Pjd73RCvqzynuk+d6RNC6GczDmwv8U4Ebay3Ly0Tn+kl00O+hew2iGZFUhVZrKwZ/lSj li/+mWtkAtFMLjaTWHY0KikTs+Qi4135sKEIXE4qq553sqOWTO+sWvU4alYW9i/VtnwC OLbNH2UFDXmJOtDlKwQ+4cXF2YmpleWi+5lfUwC5Bvrz6mObtJUxJA/rFw0wTCQxoafO d/og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=Ew+9Nb9M; 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 qa15-20020a170907868f00b007262c304032si432395ejc.760.2022.06.23.09.54.02; Thu, 23 Jun 2022 09:54:36 -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=Ew+9Nb9M; 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 S232225AbiFWQhI (ORCPT + 99 others); Thu, 23 Jun 2022 12:37:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230512AbiFWQhG (ORCPT ); Thu, 23 Jun 2022 12:37:06 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87D5345AFA; Thu, 23 Jun 2022 09:37:05 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 404BF1F38C; Thu, 23 Jun 2022 16:37:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1656002224; 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=Xjy8SPQ+d5ER4berxN3l8OR04THIzep3YipbQ/OBM0g=; b=Ew+9Nb9MszfcKz8/CBOy/vbT3LdyWXYXJmxRGKgwX44dyVrdqLUM2gHRY/sEx6UyjnRIDM XzKj749fNM/8KrvLqqDkVWcOjsXB8hvCCVPr2RXCWZIpa/zrlE67nFC15urvWI1xAa1OjU AnLic47l3onMcYVNv9L25O3PWNX0d3c= Received: from suse.cz (unknown [10.100.201.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 6AD542C197; Thu, 23 Jun 2022 16:37:03 +0000 (UTC) Date: Thu, 23 Jun 2022 18:37:02 +0200 From: Michal Hocko To: Yosry Ahmed Cc: Johannes Weiner , Roman Gushchin , Shakeel Butt , Muchun Song , Andrew Morton , Matthew Wilcox , Vlastimil Babka , David Hildenbrand , Miaohe Lin , NeilBrown , Alistair Popple , Suren Baghdasaryan , Peter Xu , Linux Kernel Mailing List , Cgroups , Linux-MM Subject: Re: [PATCH] mm: vmpressure: don't count userspace-induced reclaim as memory pressure Message-ID: References: <20220623000530.1194226-1-yosryahmed@google.com> 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 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 Thu 23-06-22 09:22:35, Yosry Ahmed wrote: > On Thu, Jun 23, 2022 at 2:43 AM Michal Hocko wrote: > > > > On Thu 23-06-22 01:35:59, Yosry Ahmed wrote: [...] > > > In our internal version of memory.reclaim that we recently upstreamed, > > > we do not account vmpressure during proactive reclaim (similar to how > > > psi is handled upstream). We want to make sure this behavior also > > > exists in the upstream version so that consolidating them does not > > > break our users who rely on vmpressure and will start seeing increased > > > pressure due to proactive reclaim. > > > > These are good reasons to have this patch in your tree. But why is this > > patch benefitial for the upstream kernel? It clearly adds some code and > > some special casing which will add a maintenance overhead. > > It is not just Google, any existing vmpressure users will start seeing > false pressure notifications with memory.reclaim. The main goal of the > patch is to make sure memory.reclaim does not break pre-existing users > of vmpressure, and doing it in a way that is consistent with psi makes > sense. memory.reclaim is v2 only feature which doesn't have vmpressure interface. So I do not see how pre-existing users of the upstream kernel can see any breakage. -- Michal Hocko SUSE Labs