Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp626565rdb; Thu, 30 Nov 2023 13:52:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IETTsCUbh2S8jG8fIf0Qp4lXM0sGSAOcN6pNoAYhpZY5hk1bRsaPzbb+k2t4h237okS1E9A X-Received: by 2002:a05:6a20:a122:b0:18c:95f1:20bf with SMTP id q34-20020a056a20a12200b0018c95f120bfmr16771933pzk.47.1701381169061; Thu, 30 Nov 2023 13:52:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701381169; cv=none; d=google.com; s=arc-20160816; b=E/KFOmLUwslcRKNdDeeoTgrXKfQQjoig4pj3+ianVAkGCNHfD1Kx3GcVHGjLdvOnPC ExGPoYOExSmGwL4vKfXw0jlL1y6dCYWJfwqgyo2cbLDe6D75uBAdVwYe65IJEVXdcV+5 tL/dCFN+6HKCwSZcwn+VRQ1NnKT1WDP85eCCID/VwxCk9RrQvNKZaNg7Vg6pbXaltdTr O03LVbaC3xPn2yuxJW79xKpmNbtjKMkeqgX0XKJzC+pv4xUCjPkXd0P8d9cAhxBdkIbD AP4pMzOu/m03///hTed5n0nRCUg0Erb6tCCzF/xtoezDUhCJcUAgvalc5gQqGj/QbKXo CscA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Sfe9+yUHQWvFF1MBxcyQEWLBB5xhP4R/v24MyHrer70=; fh=x414ljTcB5C9C7hAzmVYccEX6jF+yw9a9BaF6XMucNU=; b=rQI6Rx0jIUqL2d5ECXg3GIcCSS7OBOnJ0qZV6xGOh+ktVpXBXBGgKz6IVtwNG54n1/ An/cIT/rEG0UGsJUtPUpvjcktvMLzu9/+zfbJexMbIF0VQTY3G8dtcUJ7tQIS0tNoA44 d+8Ujumyu50V5tBrOqOb2OeQO434ZmktRfEDJcUtG2pmKNusZTTrIk4UuTrREZ2mxGoL AErSe6bPOzDs45MT3LOm+GET+HLvjYRIpkwAc+gXYiXPPYYmZ8WDOi4mT+otN0mFEus2 lhe50M4LwzBeeBBxUrkEc8D6JJqVJnMy4cVumQe/cspRQDCSjPflXMuZXqcuVP3ycoRl /ypQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=0tepH5Wb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id c17-20020a6566d1000000b005c277ef191esi2096356pgw.295.2023.11.30.13.52.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 13:52:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=0tepH5Wb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id C446E8080EC7; Thu, 30 Nov 2023 13:52:46 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377026AbjK3Vwd (ORCPT + 99 others); Thu, 30 Nov 2023 16:52:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377029AbjK3Vwc (ORCPT ); Thu, 30 Nov 2023 16:52:32 -0500 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D03C110FC for ; Thu, 30 Nov 2023 13:52:38 -0800 (PST) Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-1cc79f73e58so17565ad.1 for ; Thu, 30 Nov 2023 13:52:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1701381158; x=1701985958; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Sfe9+yUHQWvFF1MBxcyQEWLBB5xhP4R/v24MyHrer70=; b=0tepH5WbTQDmSBXXhFxxics+9wndxDVEo7hFze81ihmWMaiRmp5254VIEOZUvOB2wy 63Qz9piC+Lk2GItfcKvudo3r8eRj/CzXqt8K9Bk6YQ0RML4NkmI1AQkplvtJPgklBcRq 7bygYxKAHNltIvNwgTw4FbmO9w4OBnv30ciCcl+Ebin1e9u+XaLmOB+rsUtPWfP/IpA5 KMO2KVrbWJY41zRN39DEthXOHRp1HyBD1jTFnbCrOL//YsRXNnejbq3Rz8Rw5JQYm1Ap AW7V/g7UvGAeGTm6zPCqE1aMbQl1mTHDiCRmHQ3gKSeM1EX0nLOAkKSmvHeY6v/8yTKB EpDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701381158; x=1701985958; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Sfe9+yUHQWvFF1MBxcyQEWLBB5xhP4R/v24MyHrer70=; b=I5zuPCh9ZiJ02641WkDTVBx5MxFe58gVx05Dg+FOCSTmiAlg6unAdThMUlSmrUzzqO KQwnrOUFJlLEalkOXv2Kpd7Uj6KHAjoReNqwVUTT0qKHNvRkkwNVvKgmVjhnGqQ/ejI8 CqE5VSjKEX6sMl2deQrHApWf+7PVlfriSUypPYUIRCOnwAiwKDNyZfe901uyV7KTiIQ+ endAiO+1WRMoomMKqavtisvrM64axsxLqjqFqOdwGyB78dwUFI/Pw//ORPGmpXkWO2p3 x61+3oWBnJ8wQ7plgJfb6DiMcIGjlfsLrv53xCQu/lzTcMghXApmf8xmvKf13juRWF02 EjUQ== X-Gm-Message-State: AOJu0YyDEOGKWls+/twM6D+bIBMLRhraI2Q4SmW64AoY/xVN8bdYC2yO YNbFn5ZNpJbc8IeUG0Vd0s0Ex/UQrux/SQB3QI5jgg== X-Received: by 2002:a17:902:b684:b0:1cf:b218:25c7 with SMTP id c4-20020a170902b68400b001cfb21825c7mr39731pls.0.1701381157613; Thu, 30 Nov 2023 13:52:37 -0800 (PST) MIME-Version: 1.0 References: <20231130153658.527556-1-schatzberg.dan@gmail.com> <20231130165642.GA386439@cmpxchg.org> In-Reply-To: From: Shakeel Butt Date: Thu, 30 Nov 2023 13:52:26 -0800 Message-ID: Subject: Re: [PATCH 0/1] Add swappiness argument to memory.reclaim To: Dan Schatzberg Cc: Johannes Weiner , Michal Hocko , Roman Gushchin , Yosry Ahmed , Huan Yang , linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, linux-mm@kvack.org, Muchun Song , Andrew Morton , David Hildenbrand , Matthew Wilcox , Huang Ying , Kefeng Wang , Peter Xu , "Vishal Moola (Oracle)" , Yue Zhao , Hugh Dickins Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 30 Nov 2023 13:52:46 -0800 (PST) On Thu, Nov 30, 2023 at 1:37=E2=80=AFPM Dan Schatzberg wrote: > > On Thu, Nov 30, 2023 at 12:30:27PM -0800, Shakeel Butt wrote: > > On Thu, Nov 30, 2023 at 11:47=E2=80=AFAM Dan Schatzberg > > wrote: > > > > > > On Thu, Nov 30, 2023 at 11:56:42AM -0500, Johannes Weiner wrote: > > > > [...] > > > > So I wouldn't say it's merely a reclaim hint. It controls a very > > > > concrete and influential factor in VM decision making. And since th= e > > > > global swappiness is long-established ABI, I don't expect its meani= ng > > > > to change significantly any time soon. > > > > > > I want to add to this last point. While swappiness does not have > > > terribly well-defined semantics - it is the (only?) existing mechanis= m > > > to control balance between anon and file reclaim. I'm merely > > > advocating for the ability to adjust swappiness during proactive > > > reclaim separately from reactive reclaim. To what degree the behavior > > > and semantics of swappiness change is a bit orthogonal here. > > > > Let me ask my question in this chain as it might have been missed: > > > > Whatever the semantics of swappiness are (including the edge cases > > like no swap, file_is_tiny, trim cache), should the reclaim code treat > > the global swappiness and user-provided swappiness differently? > > I can't think of any reason why we would want swappiness interpreted > differently if it's provided at proactive reclaim time vs > globally. Did you have something in mind here? Nah just wanted to know what you are aiming for.