Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp475542imi; Thu, 21 Jul 2022 05:05:43 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v/HZKQEV5qURKFxVlpkErdzgAkSrYWf2SUvkYPKZBYX+hS6mUFFVzsHtyA+NHAkCj+JVD2 X-Received: by 2002:a05:6808:1928:b0:33a:af6b:644b with SMTP id bf40-20020a056808192800b0033aaf6b644bmr580343oib.221.1658405143256; Thu, 21 Jul 2022 05:05:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658405143; cv=none; d=google.com; s=arc-20160816; b=NRhwOXTPJZ7i0Z89mYNvhZdu7Bm5XYRVOg7AyDpqDALZHcGqyE3BokmkRcdTfly+0x BB7q3NxKdgVsaIDI+Du6EWkF/C5qSZ92CfcBtiSt5htH9srOBC4DyfIuyw2kUsWc1oSa XW7CRWTW82TajEOW64z05654JAxv9/q6dS8RrO6CvnvEEQHAFeXS/m8B0RaNinU8EG/C K79N3bkfg0nEw3qBza7jK26EoB2EkKf2ubvM6bQ8AWTX3ZmT/NAe2qCnqG8jwBrHneQv e5OFhXaeNl0qxdUm1RxV9IlwDK0moDgc/de9CHYwAMeciKw8zt1kCc84CoFDHucRDY7e 4sDg== 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=BkvbSMivb/aWXIlzYNPZoVB/iKbqXT76LFZqzry9Fz4=; b=Qt6Han0YBMBYMnkmS9sLskyh/VjBaj+Meoqxyu1OB8HM1Z3aaixv6A36+hJNkUjJaX lXND9UQCsmImtdzFgsXP5I6yL5wp0hlsYnwBtyhjJFwWsH0sllTa8BRf0kXThuEGzkFV OPhI+ahiV0TIp8Fl1q/JfJA/qDX5qo2OGky9r2k/wTivulqR3p3f2dM6rrGoGiitL3ug LxBUJseUvD6L0iQfK+oI7S2CqvTM3PRXGMP9WeYo7c60uyj682yAmcqVMN0Tp6XX5UDY +iPBOKXLvqVW0WNqpqGlYHLr2kfR9bf2tJTGhd0/8WQ+LqiYadl0478hpulfziCGaQln eCcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=r2465AG3; 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 r6-20020a4a4e06000000b004354deaac05si1431561ooa.10.2022.07.21.05.05.24; Thu, 21 Jul 2022 05:05:43 -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=r2465AG3; 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 S232377AbiGULmd (ORCPT + 99 others); Thu, 21 Jul 2022 07:42:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230284AbiGULmc (ORCPT ); Thu, 21 Jul 2022 07:42:32 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2FE35D0EE; Thu, 21 Jul 2022 04:42:30 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 2389B347EB; Thu, 21 Jul 2022 11:42:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1658403749; 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=BkvbSMivb/aWXIlzYNPZoVB/iKbqXT76LFZqzry9Fz4=; b=r2465AG3bndbjlFwjkJAWIovGGRSvB4ub7P3vDo/JON7K4EOcDSeD0D4aKvmMfKaVYRcsN q071il98/zaQkOiititSJGsdWBY7fcTNeVkfW8TDsWHrmu1KKFWJmlRfJ6yd/MKGdXD5C2 //MdG7ABC4+aDFuIp0M2Obnx5rxqfQY= 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 5E9632C149; Thu, 21 Jul 2022 11:42:28 +0000 (UTC) Date: Thu, 21 Jul 2022 13:42:25 +0200 From: Michal Hocko To: Shakeel Butt Cc: Yosry Ahmed , Johannes Weiner , Roman Gushchin , Muchun Song , Andrew Morton , Matthew Wilcox , Vlastimil Babka , David Hildenbrand , Miaohe Lin , NeilBrown , Alistair Popple , Suren Baghdasaryan , Peter Xu , LKML , Cgroups , Linux MM Subject: Re: [PATCH v4] mm: vmpressure: don't count proactive reclaim in vmpressure Message-ID: References: <20220714064918.2576464-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 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 20-07-22 10:49:53, Shakeel Butt wrote: > On Wed, Jul 20, 2022 at 2:24 AM Michal Hocko wrote: > > > [...] > > > > I think what we are missing here is > > - explain that this doesn't have any effect on existing users of > > vmpressure user interface because that is cgroup v1 and memory.reclaim > > is v2 feature. This is a trivial statement but quite useful for future > > readers of this commit > > - explain the effect on the networking layer and typical usecases > > memory.reclaim is used for currently and ideally document that. > > I agree with the above two points (Yosry, please address those) but > the following third point is orthogonal and we don't really need to > have an answer for this patch to be accepted. > > > - how are we going to deal with users who would really want to use > > memory.reclaim interface as a replacement for existing hard/high > > memory reclaim? Is that even something that the interface is intended > > for? > > I do agree that this question is important. Nowadays I am looking at > this from a different perspective and use-case. More concretely how > (and why) to replace vmpressure based network throttling for cgroup > v2. I will start a separate thread for that discussion. I think we should be good to document this side effect for now. If you have a plan to change to vmpressure based throttling then only better. But one way or the other impact of the memory.reclaim interface on netwroking should be documented properly. -- Michal Hocko SUSE Labs