Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp586059rdb; Thu, 30 Nov 2023 12:31:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IGoK9NHdfD5o31nUYZi3TeklB9MHO1GDHp7HKW22XUsuDrLru1UP0GbxYWVQchNtiDLSbS1 X-Received: by 2002:a17:903:228a:b0:1cf:b146:8101 with SMTP id b10-20020a170903228a00b001cfb1468101mr24165368plh.16.1701376305713; Thu, 30 Nov 2023 12:31:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701376305; cv=none; d=google.com; s=arc-20160816; b=Np9O0MR+zW7Ie2qm0ILgi4ds9YhCJx00DEVOYfOwHBDQt0Y32QRDLHLFIgaH9HLW+0 N6UXBZNZ5cwOihRvmfksDGLNCGatOwy+IAZCfxW3bzLWatvS6Q63tE0XugeDnS3hGaJp IAw9yWwrJXcGiUp+dtmcnB+uJ37CHZWU9oysbXQqGy8BwGuYRf/+4khQQaJx7d/Sc4ni +j9PTGb5noP7HKJUYlMMNEXViGbDEKU6DczUXkm1gtMa4g69K5XUhMZh+4ldKmSWsQcD J7/W041KLi81G6u7bfRoPJenpr+x/9s9qvxZdbzNtXL3f+Art8Tn+7xPI35HdDBasikl 0Dwg== 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=/0GgAeTxou/WviiWghWlEQir3U8XoSLtDVw1f4rh7wk=; fh=x414ljTcB5C9C7hAzmVYccEX6jF+yw9a9BaF6XMucNU=; b=HHa1Lm7GD/5iJ9v/3tv+jmIOXSb76UGQT/wIphmmM5kooGYBxg10defTJXuoFKIJTs W9PNFv4Y4ogFLJtV0eUnBfUjnJf3+jsc6g5tQIH0Qfl5YuKBZ9Rut+7mbx+3gSFeLFuf P+v7Ud7dPQGDs1+dZC0XL+DmK0a+hgoZ/xw1Jll28ArEny4Sd+wGtH7MWiS0pQC3NCoi YRd0SiFI84LPOdlE8Uiiw6p6fbhpQHIMuCwVy7pt2s0ctiMeZnzz2isx0ojxnQOMR19Z 5VHbUYeHT/vwxZVsCzVXFgTKAfWTJ1mVSbjWB94pQ7IKvaveYaqjZTs0qfIofRiFZXgJ hTUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=d4y9otrl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id h11-20020a170902f7cb00b001d0220f3f11si1839822plw.373.2023.11.30.12.31.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 12:31:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=d4y9otrl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 8221680859BF; Thu, 30 Nov 2023 12:30:48 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232404AbjK3Uaf (ORCPT + 99 others); Thu, 30 Nov 2023 15:30:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229726AbjK3Uad (ORCPT ); Thu, 30 Nov 2023 15:30:33 -0500 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 317AC170D for ; Thu, 30 Nov 2023 12:30:40 -0800 (PST) Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-1cfd9ce0745so1275ad.1 for ; Thu, 30 Nov 2023 12:30:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1701376239; x=1701981039; 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=/0GgAeTxou/WviiWghWlEQir3U8XoSLtDVw1f4rh7wk=; b=d4y9otrl3zoLccFUcDL6v7kOBnO5McfWqkdXQPXOZ6vu3Xh4oVh45HWVLekuY3EQUY jfQZPPTIb84AQBJHnPjwPHXZ4JFkqU64LexPu2NrdBFFdNbekOk6FBafFSjTtLWOJV6c V/u4Nph88NrnGUWxfjUzq/Fc1g50RUalOGiF8YloSSdeXEROClRsy3Ht5SKW4dr5lWjv lV7wRN4C7ale8qvvniBgqtLZt1FUDfgbDKH1Tw5aEjK4TqSxfrtlt5bUJJBJcik+X1wb Y2slW3GeHDD+zv1P9KUsIF0CA++aSwH9Fs7Qwh74vStWp56Dr+aLWkQdXzDGwVEyr59+ UUnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701376239; x=1701981039; 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=/0GgAeTxou/WviiWghWlEQir3U8XoSLtDVw1f4rh7wk=; b=C9h7F6+tNDEn9RjsTDTzPHeYnhlkG67WBV/HQO4akMnzYIk4jk5ekniZyNM1jURS9Y LawdxRiNuCXI2NqS06HDAe5RzWT4ROV1BKoEvg65dtCbNqMZQyyceJyoEr5SXUvoL/PY SvRrkn7DHFfgSyC/BcXpbQd/ymTpi2EaLwRdP6c7b53U97H4KAAxXAUHcSPHcqir9wvS IHB/OW4X/WLdnP+fzp4RNsnv5QoofiI4OVxrHorwZ3qyIzrQcxhAcqRlbadoimyJDaov 3TjiOM3iTDOlnCNJ5CQMwE98q+x55yMmQSsmSvoeGeCKhLv7VrpDXga8tkadYT0eCUDX 33TQ== X-Gm-Message-State: AOJu0Yz1W5L3blWI+640k9GVS3cXKMlEPFenZkefxNSp3RlyGjjBeVH4 Zfs45wKW8TpiUydNDIAhVVM64r7Ja4KBe/qh2dqT4A== X-Received: by 2002:a17:902:e812:b0:1c7:25e4:a9d5 with SMTP id u18-20020a170902e81200b001c725e4a9d5mr4421plg.17.1701376239428; Thu, 30 Nov 2023 12:30:39 -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 12:30:27 -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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Thu, 30 Nov 2023 12:30:48 -0800 (PST) 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 the > > global swappiness is long-established ABI, I don't expect its meaning > > 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 mechanism > 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?