Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp619829rdb; Thu, 30 Nov 2023 13:37:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IGpLlHyzfGJLtjlEb/AtAgURNkfUynaZwUxkvOTgKS8c5lKJTXetFwMD9pZbv5G/rDtTFMu X-Received: by 2002:a05:6e02:1609:b0:35d:4518:75f1 with SMTP id t9-20020a056e02160900b0035d451875f1mr3362931ilu.23.1701380253803; Thu, 30 Nov 2023 13:37:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701380253; cv=none; d=google.com; s=arc-20160816; b=r4S0mTFKVRh9fdpBTpc288tVnXUMlxzeTjEjlFouNJSylE7imi3IW9vAspnqeA0HC7 4EpNAS4UC+O2tOwNVdmIsIRTjkjw6s8P9lS3dkkWiQu/WNWAf/k5nyo6jwjKwwOPARc6 ZIGoREU80MTrd9nyBbpzmaUdAcr2QRz0fZFtVrb3GyJRu7PjjYatkng7C28RxILRkvnl 9XWlkRPfP4p+0eJImtVMZs/Kac+hV2LZpLXLxXQSxMidWZdCn9+9CgrV1ZtT1ELTR7Md 0j1TKNKGCXXK03ZCjid6dnVDjhRp4y2jGFNF8NDyOX4ePqAsstnx8ggDUcs143zKFLgc JsTA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=CfQ/d5DYIynVOODVEmY468fgthwDnp9eRwHJ6ueBpfo=; fh=atUUuB3feSPi2qrvgTJqtPYEBIdJMevv4p9L+SR8vxQ=; b=TCFhAzwkF7/r1HZSmmW3ZuuA1LBy62h/g4GB8t3/3hpGHulxDB8s5NNZvMH21MZQ4p +WPWl66wVjOsHGYNuzw/Q5/vNpAsp9jrFZ3JkQONGUDGNXzDwyeCfYSmldFm3JblbCUv RyCLAWQvtT9HaXTDq60CKu5xpKdcDbtoZmZa7ss4fBxDHkT84ywFf8rFyQBzqyROMwu7 z0X77Tu4Dw5o01HQUBkZgILo6mPwz9r4lumDMxE03m5XaYqybtl+bqNccU3BSmpF5BQD K3oSavB/xI7sZslmrc/6kT8tvQDZBghFf1aV3LBkTkWQP0WJHkWAoX2gz/CVs42Re2mI c0qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=HbQEQHlY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id w4-20020a63d744000000b005c2203bfc01si2160719pgi.170.2023.11.30.13.37.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 13:37:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=HbQEQHlY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 6A42180CCD3A; Thu, 30 Nov 2023 13:37:31 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376954AbjK3VhM (ORCPT + 99 others); Thu, 30 Nov 2023 16:37:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376859AbjK3VhL (ORCPT ); Thu, 30 Nov 2023 16:37:11 -0500 Received: from mail-oi1-x232.google.com (mail-oi1-x232.google.com [IPv6:2607:f8b0:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD3E910D9; Thu, 30 Nov 2023 13:37:17 -0800 (PST) Received: by mail-oi1-x232.google.com with SMTP id 5614622812f47-3b837d974ecso898633b6e.2; Thu, 30 Nov 2023 13:37:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701380237; x=1701985037; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=CfQ/d5DYIynVOODVEmY468fgthwDnp9eRwHJ6ueBpfo=; b=HbQEQHlYENUZFMt+wseFb2WxYzlSVZC/MXLQauYyJJvl8hqANKKBpM/iE8i8aT28pc Y1nW6fh3AQGkjpj2F2MV2qAH0RPIyO8DvBmB3JUtsXxPbNgXjTYIrhTaWLGQwD2OLGxw kRPBv7AVYge3A75tjX4OQHXiUEGrIHAeadxauOuS46YcnXJqLH4g1Hyzz4ucMNuf0YwV FU09WV0N5M9gVZclXQduH+J9L2/UC8rG3SAu3E5q8SHmIBn/RQqZHRVFG0lvP8uLwKwl IwYV7ObX8F4cOairC0Z/OQY++oSQikOcI//MgXVPAHvD8DgHUvr+gKwT9UNNE6452RD5 sCbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701380237; x=1701985037; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=CfQ/d5DYIynVOODVEmY468fgthwDnp9eRwHJ6ueBpfo=; b=hiE4g50KWriPKlTPK1TkPd5xTddTbDGcKqLaP7UKBBSVghI+Lxz8DjTKzEqvHkKqba HNRWQ2suRIaLJ9c6So12dgl21j0tKzhxk87T0OO5Bn7dSRoKi5xbQ2q+2Qpu+E1S0m5Z Kb+voE0t8TGRia4dk87rmGoiQisAbUInJtJOQwQJQv7O9/X5yAOSjjXxoA6x/o6YhuC0 84EUBWKK3O48TJoermoK7PEAkyhllZqm/RNTlJ1ssv+o7d4jn4O8/R31ufRazXZO4ufh 4bzqa/yzoLsdKGT3/GT/n4xfjo+wqgeCn+obYTj9IJqZYW3xsEWviHklr2rs3dfn2Rbo LPnw== X-Gm-Message-State: AOJu0Yy9wqmWq52XNxMwVO/hvOgt+76q8VTskCq7s+ipvJmcGU/8bl45 HjIwHhp6G6p1gquRYmt527g= X-Received: by 2002:a05:6808:6407:b0:3b8:4023:86e2 with SMTP id fg7-20020a056808640700b003b8402386e2mr1101641oib.29.1701380236887; Thu, 30 Nov 2023 13:37:16 -0800 (PST) Received: from dschatzberg-fedora-PF3DHTBV ([2620:10d:c091:500::7:5fb0]) by smtp.gmail.com with ESMTPSA id bj16-20020a05620a191000b0077d66e5b2e6sm855589qkb.3.2023.11.30.13.37.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 13:37:16 -0800 (PST) Date: Thu, 30 Nov 2023 16:37:13 -0500 From: Dan Schatzberg To: Shakeel Butt 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 Subject: Re: [PATCH 0/1] Add swappiness argument to memory.reclaim Message-ID: References: <20231130153658.527556-1-schatzberg.dan@gmail.com> <20231130165642.GA386439@cmpxchg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Thu, 30 Nov 2023 13:37:31 -0800 (PST) On Thu, Nov 30, 2023 at 12:30:27PM -0800, Shakeel Butt wrote: > On Thu, Nov 30, 2023 at 11:47 AM 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? 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?