Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp556660rdb; Thu, 30 Nov 2023 11:40:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IEqL9BvstVm7XKzGHMsNTmpTSc01E+NamgItDnF/B4dzsfbhlHssH9/2FJE6ZAIJPbjWmbW X-Received: by 2002:a05:6a00:2da1:b0:6cd:fb72:1262 with SMTP id fb33-20020a056a002da100b006cdfb721262mr463707pfb.9.1701373221548; Thu, 30 Nov 2023 11:40:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701373221; cv=none; d=google.com; s=arc-20160816; b=iC1Ugu9qYasFJM+JqD2StJ6LZqGnNdMLdiCD9yHnTPW2ydmawmby5D6aqMtAj7HaxG 5yo3iBPsFxMLb7vkf859X7s2IlSiqfzn1SpvQEk7WMUlBMj5mscR996Hit//rYhO9D3i cD3USF29phrotZb8Lf8Y61ulgN/aA6B/OflFXSZdJqzfArCFRXKVfNu+02AY2Itt/K2n CNT+vOf2B+Qm1QcQWvOVs46BDNZATV4XypnJy/tUx+C0r9a3zCBwp3u4z5pfvaToxRDK uw1awi7dq1p0w7dGYpeeBZ484XsmlBVftIExHcKq4Jk56xmmRyBOLWO2vAxLKIS2+nLh nfOA== 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=kWhHBtnSLbzDgabGaZdMiHsx1XbL7QU05xk19LHaQ6U=; fh=ACkslUeM5/1/ELK/BRn7ufiPf9xzqsJhAqI2P4H50T0=; b=fmHLHBmgM2CY8fJpSyEh4iCRzKZZdmdIn8R4M7aSdCpArARWVLwM9LzCWpQuJK/3ay cJMqbu1Q69e1V/jj+v2QPk39trtGhPGtPApRZ5M0ffApc7s5et0+cTyPHFsS6cf7k5Io W/yfgloX9BcaSbiBCAXZTXd5l6YRyZfGBlORFHFX+jvk0DBSXQ4M1BAB3u9ZdAaizdrB 1JL4IpmNcu2uWFN0fQPYTVihmlCxG9zWwWRKGQHwpzSIUj5KdYxSoiwsgSFa9BtdpJ25 isHaBH5wwuVPL4Ht5bDFxH4oDl2EYkGv0BBT6oSf27prVwtDhwnZRhlfZevAdfwd0krj 6CjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20230601.gappssmtp.com header.s=20230601 header.b=WNjVE1Y3; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id u22-20020a63d356000000b005c5e24c7e8csi1996782pgi.414.2023.11.30.11.40.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 11:40:21 -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=@cmpxchg-org.20230601.gappssmtp.com header.s=20230601 header.b=WNjVE1Y3; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 5681B80DB718; Thu, 30 Nov 2023 11:40:18 -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 S1376525AbjK3Tjy (ORCPT + 99 others); Thu, 30 Nov 2023 14:39:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376470AbjK3Tjx (ORCPT ); Thu, 30 Nov 2023 14:39:53 -0500 Received: from mail-qk1-x733.google.com (mail-qk1-x733.google.com [IPv6:2607:f8b0:4864:20::733]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3FFDD5C for ; Thu, 30 Nov 2023 11:39:58 -0800 (PST) Received: by mail-qk1-x733.google.com with SMTP id af79cd13be357-77d645c0e06so66523885a.3 for ; Thu, 30 Nov 2023 11:39:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20230601.gappssmtp.com; s=20230601; t=1701373198; x=1701977998; 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=kWhHBtnSLbzDgabGaZdMiHsx1XbL7QU05xk19LHaQ6U=; b=WNjVE1Y3/9xHKbrGPdiUpJMEHJvhooqIewU+40DWXhbwoJlNTIIT+m2sP5V39vLYyx +CaayDnMIsuLh2XWc1RroIhgpC2WJTaEzlAvZqmTKbjng5WojXCIJh8EN7lRhNcBpNWY mq5Etk82VDtqM6Dhw3MkA9PlESxNSNGdkYX17nlN+ukWwQ1gHZ4fNICLtgQ0g5xIJg6x nHaWmZ0zxS6cqeABJjOhf7i4C1sgKjdK2Na2lML25ENa/uH1bJedY11bNB103zHdoq+D lAGJ3VYgHCdb4ulZtQZRJBXVMto8q088LoQ7KgltTkVpJyrBEEyWJW4Oc9W2GTn+ecGL +trA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701373198; x=1701977998; 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=kWhHBtnSLbzDgabGaZdMiHsx1XbL7QU05xk19LHaQ6U=; b=m63bq9TMCTEtWTx+mAuvBKeLfkmuBKkzoSHzgE1MutnfFUn3HeV0oTUN3kZKQrr+zW /Kon+nhhvtZlqEhshu4I8G6dSoFueT43bJf7X0gcM/pguqaRo8j0aOE6pZpPLqLxDDgt xMOG+9o4nJ16klkOmOHofjf4YISWMti3/EtIUubbnROdNNmTkTBfmcmrEO6H8eLSHrpT 0ntx/PCNu6oFrZaebbW2z5eAZ7jRY56tgXjH1tGXkqTrW6oCpJV2irqv2ZdxEntTvAXr H/iMlzynJ4TUVhAZcWfXsibmS52bRRZRV8WtX4sS1NLZlxPzIUxyaORVXFB5PoZvh4L9 KPJA== X-Gm-Message-State: AOJu0Yz0CtaUUVUxYHXofs6OyCZU+gXL8UHzFKhTQUVASeqwNQ849BuQ 1Qwkf4+56LiEdFTC13VwPDPH7Q== X-Received: by 2002:a05:620a:40ca:b0:77d:8515:a5af with SMTP id g10-20020a05620a40ca00b0077d8515a5afmr22851289qko.31.1701373197785; Thu, 30 Nov 2023 11:39:57 -0800 (PST) Received: from localhost (2603-7000-0c01-2716-da5e-d3ff-fee7-26e7.res6.spectrum.com. [2603:7000:c01:2716:da5e:d3ff:fee7:26e7]) by smtp.gmail.com with ESMTPSA id vy13-20020a05620a490d00b0077da601f06csm775056qkn.10.2023.11.30.11.39.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 11:39:57 -0800 (PST) Date: Thu, 30 Nov 2023 14:39:56 -0500 From: Johannes Weiner To: Matthew Wilcox Cc: Shakeel Butt , Dan Schatzberg , Roman Gushchin , Yosry Ahmed , Huan Yang , linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, linux-mm@kvack.org, Michal Hocko , Muchun Song , Andrew Morton , David Hildenbrand , 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: <20231130193956.GA543908@cmpxchg.org> References: <20231130153658.527556-1-schatzberg.dan@gmail.com> <20231130184424.7sbez2ukaylerhy6@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, 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 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 11:40:18 -0800 (PST) On Thu, Nov 30, 2023 at 06:54:37PM +0000, Matthew Wilcox wrote: > On Thu, Nov 30, 2023 at 06:44:24PM +0000, Shakeel Butt wrote: > > On Thu, Nov 30, 2023 at 07:36:53AM -0800, Dan Schatzberg wrote: > > > * Swapout should be limited to manage SSD write endurance. In near-OOM > > > > Is this about swapout to SSD only? > > If you're using spinning rust with its limit of, what, 200 seeks per > second, I'd suggest that swapout should also be limited but for > different reasons. We can set you up with a laptop with insufficient > RAM and a 5400rpm drive if you'd like to be convinced ... ^_^ Yeah, we don't enable disk swap on the hard drive hosts that are left. This aspect is only about write endurance management on SSD during proactive reclaim.