Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp560568rdb; Thu, 30 Nov 2023 11:47:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IGavMk6cN78QmiaAdLJ84lWwR2WRN3r1ArW869ZDALqghqtdBscN+LEojTE9lJgg/Hrj+84 X-Received: by 2002:a17:90a:1a03:b0:280:2652:d4e with SMTP id 3-20020a17090a1a0300b0028026520d4emr23192980pjk.29.1701373679574; Thu, 30 Nov 2023 11:47:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701373679; cv=none; d=google.com; s=arc-20160816; b=d/7HednwYyYdAOm8lKZ1wjUMhzDT9t43ju2BNFTpuYaErwrYBMTzNMv5JPWHVUZ4Fc YlZeNr53Vc7Gki1+O81eR0kLkv0Y23g8e91vlkXZr89deptoinOmjuLMRfIDGBaswlg0 QPK5/t6Wou9cVzOBI9xxYiVzrq6rzA4ITTyY0foUD9JgXHq6bqyDhFyW7OCCgqBmUtAE 63yneZIQ0gLessdY4fWSKwWS4Yo6wnV024cUiYy5aPtYf11vvY7i51gBqdba3/24yiar KIug60sGndo/hY8ThLebEulTHOWmzJassuysfex8a4g6VsL+ir+MiY7GFaD1BPrkMLxW sHqw== 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=lv+GmmtaQLarUwDGJAav6sGuLpEislLWofysxmwJakI=; fh=nUB4cEU96fvudx310WNja3F64ZpkpTQ/E+WQ6oRMmOU=; b=MAkfH0QL6ylrxlaWUCChFu2Kr+ZSLkEwa6iX3HbShK3+a//FCKyZ9v/+tkjJ3ObDug 0qCbRouUO5OOQ5adcOXDr+B419ZYyYPzYgV+IS+xTHiO8svs0OKxEZYNU/aLR7znF50X 137K78smS3ITK2ncrx6r9RVSSSVi7sVCPgBnh6rM8UTJwLaIjQGh4Ltab/DwtoUMEfw3 fCdZrqdszx0don9dFxGovopwAT+z6Z4HGBi1rqK54P3rmx3uic1dHk8YsI4n92WWLDY0 VR7jN7VRgkFXmb7sPkoq8PKbu6VI3ojOCd8GAXC5TItUvL7eXUpIF/WJHPFS2LNV8lzZ I2Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ndownpIx; 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 g8-20020a17090a9b8800b00285105c440esi1974256pjp.120.2023.11.30.11.47.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 11:47:59 -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=ndownpIx; 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 49FCE8026A7B; Thu, 30 Nov 2023 11:47:57 -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 S1376470AbjK3Trm (ORCPT + 99 others); Thu, 30 Nov 2023 14:47:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229697AbjK3Trl (ORCPT ); Thu, 30 Nov 2023 14:47:41 -0500 Received: from mail-qk1-x730.google.com (mail-qk1-x730.google.com [IPv6:2607:f8b0:4864:20::730]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71D46D5C; Thu, 30 Nov 2023 11:47:47 -0800 (PST) Received: by mail-qk1-x730.google.com with SMTP id af79cd13be357-77a453eb01cso68724685a.0; Thu, 30 Nov 2023 11:47:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701373666; x=1701978466; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=lv+GmmtaQLarUwDGJAav6sGuLpEislLWofysxmwJakI=; b=ndownpIx4Bi/oIcTUQji/cOPO/xK0Hp0jTBFXcwdJfPiZ81i5Oh9vPxF3LT66ZcVa9 /8Ba9wluIjQdjygIK4RqmzA6MiqJ0r/gnpAJTH0DF4mav2QeNq4Loxvc0uELESfDRQxu ZqXOWQmf8xFew/dmir/g7SC87GrHYvYRhRHmwjLavC+TQt+f7rB2zXzMd/5LI8egf/vh 5WOZ+8Moi5ULva0nTdAR8A0bvf1S4uDyQW5YkDcu1jwGMutextMsHVO/RROnapT7ketd x0ur6uU8uuXQsAY+Kpk2XGTVBbgADE0GxCkPQ+7Pc1P+HzdAPx1D1qx0f6bfgyF3KZ89 giXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701373666; x=1701978466; h=in-reply-to: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=lv+GmmtaQLarUwDGJAav6sGuLpEislLWofysxmwJakI=; b=psuuRtfdMx2fztr9lthL+BCetCtkXJf2Jo2AQD9K5Fb+O5gtoc9bgqR4eNAHarmfm7 2bm65eqDdUt3jZQWbGUfLUxcqDGqiiZ5BVogpr8H+wvDjFX8lOb1xUng2Mh8+/AkBwKw TJuHDhrTK4U4/w0s2FH92qAUDkCsVIDug+5KYcG/dcf5XZJLWZjgYieu+dkAeP6epuBW 3XegvSUtYFGYY71LKLRoktQb8zunbtC1EJas4kRsc2LTEANevQhLoNZif70rZyVhwFzk AgizGAXibNmDZlkRFtac11KmTCQWwGorBGRoq4bANH0Uln9f10LJWqfiEziR0vq0VIQZ Qokg== X-Gm-Message-State: AOJu0YwJpjnRESQPgVLQBS92/OHdGSxlUOOI2EG4z5jc4PI7nq0KWHpS Pnovo+lxxMgnar7T7oFvZqaI+vSkmwrwxA== X-Received: by 2002:a05:6214:86:b0:67a:2b0b:c591 with SMTP id n6-20020a056214008600b0067a2b0bc591mr20348209qvr.25.1701373666490; Thu, 30 Nov 2023 11:47:46 -0800 (PST) Received: from dschatzberg-fedora-PF3DHTBV ([2620:10d:c091:500::6:43ad]) by smtp.gmail.com with ESMTPSA id n9-20020ac86749000000b004239ed654fesm773629qtp.51.2023.11.30.11.47.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 11:47:46 -0800 (PST) Date: Thu, 30 Nov 2023 14:47:43 -0500 From: Dan Schatzberg To: Johannes Weiner Cc: Michal Hocko , Roman Gushchin , Yosry Ahmed , Huan Yang , linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, linux-mm@kvack.org, Shakeel Butt , 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=us-ascii Content-Disposition: inline In-Reply-To: <20231130165642.GA386439@cmpxchg.org> 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 11:47:57 -0800 (PST) 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.