Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp562506rdb; Thu, 30 Nov 2023 11:51:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IFhnFsU/kB81gnCNwVcbftAohLuZbIDgcSdZT4ZX6iJ4R6CmpmZKDCWEY3IpEKoN8tSlBH6 X-Received: by 2002:a17:903:234a:b0:1cf:e9b5:90ee with SMTP id c10-20020a170903234a00b001cfe9b590eemr17259552plh.24.1701373915354; Thu, 30 Nov 2023 11:51:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701373915; cv=none; d=google.com; s=arc-20160816; b=t8Ghe1BLblZ4pt+FHcY4UeDsxQqF0Gr6coCvMreIK3x1s5EUjOFrPuCQQzfhOUXX9S ad/S2N37DTdbzccQcjrbGRy/7hal47DHhIAOZZpo1QYb5pSfhcbDYwTo2u+3MMzrafDk bW5ad2iR/b+pQdIGcXDI7+791tX9kJ0Hd4CxnfNsSggxaZvHHMTcIB1zQ95Skj9OCkjj bnOYL902+2al6kGpgAeMml5kUQnnzWpbiCl2XpMtFP0WAAHH0AtRf5wlfjahm59M/n98 bcEghIBxZeXlqG14QCdsm3F4PMDzM8Hg/LHMwTAODfvilNF4mCdWz2fjIFGIgwPZXYIw ELzA== 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=cWW8Aq31tJ4AFADeDZ3NfoI4ZhRoXFCiCERKyyo7JHU=; fh=H+NTCaFTziFt50QdP62us67pMhRjaFfokEUzISb+q7g=; b=UIFsBEgaooWyFruWMVzevBmiuYvJPGN2qnM5PHJymTpENgmHmE86iLryxdh7zrvuSE bYy4NZkfUCqW+LJ5C+owxF6wW+j+jXLpclrmDYpKx/Rj6dS+KA22p0ktP0kHjG7sAj2V 0d9vzTAVox0lklmE8YGe47Z5X0lWF1i7KCbelhom12I2BME08wHTd3ziFXZLA5DdgcAt l3qy4XOFXziNYujjVSHLu8dsufjglYXhhqwDfVFdztwmOkA2Mb2TaYyP2RYCeGl5aveO xvFoPsQdYRP2Hj5zphHutRq+mJR4U+TBR4C/NPS7d2aJ1/3fxoUCIk/5s3mad3F8Efx8 E3vA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=XcOFj6sy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id u18-20020a170902e5d200b001cfe0284177si1213059plf.102.2023.11.30.11.51.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 11:51:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=XcOFj6sy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id 3BFF5808727C; Thu, 30 Nov 2023 11:51:08 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376487AbjK3Tuw (ORCPT + 99 others); Thu, 30 Nov 2023 14:50:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229697AbjK3Tuv (ORCPT ); Thu, 30 Nov 2023 14:50:51 -0500 Received: from mail-qv1-xf2f.google.com (mail-qv1-xf2f.google.com [IPv6:2607:f8b0:4864:20::f2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1035D5C; Thu, 30 Nov 2023 11:50:57 -0800 (PST) Received: by mail-qv1-xf2f.google.com with SMTP id 6a1803df08f44-677fba00a49so11248246d6.1; Thu, 30 Nov 2023 11:50:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701373857; x=1701978657; 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=cWW8Aq31tJ4AFADeDZ3NfoI4ZhRoXFCiCERKyyo7JHU=; b=XcOFj6sydu0OPBXqGycQGZ+Dj292poIQTlTprORAW1dhkdRV1uOdzo262w5+RK1lJz nw66dLgc4FUBNLsfMLIWG4vswROtA06h/7U+lB7bW8A3HfC+X4tOf5kwhzuHXWebcpwc In9mBmipAoqBG4/azcTjvqFX/5Dptr7KuTFAhuFUiokEvqyS7VJ9skhtqyFU1+4WyJf3 a+nbMzCGKe7UNXn/L52m8Z9PeW8zEK9caXL1mG2l1oNTNlGKE2uDcB9nVXqbuRiqD0pF WEPsKr/pGy4VZVt/IuKGxUnNFp2AO/1H4ugy27fcVEgf7rEyhCiVQyMf/ijQ4XBs3OfZ gVJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701373857; x=1701978657; 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=cWW8Aq31tJ4AFADeDZ3NfoI4ZhRoXFCiCERKyyo7JHU=; b=deMFESsoAB8IjKAdhU+QV8+70sXu9kXhK0KKwtwJUJnUvpq4U11zOP6givxnkZ0zn6 qpO+7DcDFbU8RK/ppLATeY/gwyqZ5HE7oy8azyKV4gd7HEnmbqAra3VimJisEuR7sllB BvYySJDs9IN0fx0+goiw739yqiFr4wnrunIyt1Md5OsBGC92ESKL1f4B5fpy3qxmiwjV HPHTMeVxzEZxRNtHE/v8oMiyi/jTwO7riXjwZztnKiG2C5RwZAfpMqZyGEx7YjU5lFZ3 WLBRLDF1xSor84DgDmANkufDk52zwBL4NPC7EYeVqSzBtg05aYnDSXZCZ/sfIa4Kv5cJ 2a4g== X-Gm-Message-State: AOJu0YzB58cjtyZA6ALhDvaFMqpYqG3KMQ2CqZ1RMR3JWIxHjtN7qxGO Uzscoyhvhg6gWYLVoP/TOL0= X-Received: by 2002:a05:6214:1c0b:b0:67a:4546:9895 with SMTP id u11-20020a0562141c0b00b0067a45469895mr25511391qvc.12.1701373856929; Thu, 30 Nov 2023 11:50:56 -0800 (PST) Received: from dschatzberg-fedora-PF3DHTBV ([2620:10d:c091:500::6:43ad]) by smtp.gmail.com with ESMTPSA id e24-20020a0caa58000000b0067a1e5ef6b1sm772545qvb.106.2023.11.30.11.50.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 11:50:56 -0800 (PST) Date: Thu, 30 Nov 2023 14:50:54 -0500 From: Dan Schatzberg To: Shakeel Butt Cc: Johannes Weiner , 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 , 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> <20231130184424.7sbez2ukaylerhy6@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231130184424.7sbez2ukaylerhy6@google.com> 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 howler.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 (howler.vger.email [0.0.0.0]); Thu, 30 Nov 2023 11:51:08 -0800 (PST) On Thu, Nov 30, 2023 at 06:44:24PM +0000, Shakeel Butt wrote: > [...] > > * Swapout should be limited to manage SSD write endurance. In near-OOM > > Is this about swapout to SSD only? Correct > > situations we are fine with lots of swap-out to avoid OOMs. As these are > > typically rare events, they have relatively little impact on write endurance. > > However, proactive reclaim runs continuously and so its impact on SSD write > > endurance is more significant. Therefore it is desireable to control swap-out > > for proactive reclaim separately from reactive reclaim > > This is understandable but swapout to zswap should be fine, right? > (Sorry I am not following the discussion on zswap patches from Nhat. Is > the answer there?) You're correct here as well - we're not concerned about swapout to zswap as that does not impact SSD write endurance. This is not related to Nhat's patches.