Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5044156rdb; Tue, 12 Dec 2023 18:06:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IFWdc+oL2jpi77LDaPKF49+9/ua2bc992+frTtWmhFOwde91LXqGKLX2Dvwi2bnVa6+BfSI X-Received: by 2002:a62:ab02:0:b0:6ce:7bf4:2907 with SMTP id p2-20020a62ab02000000b006ce7bf42907mr7085580pff.61.1702433185685; Tue, 12 Dec 2023 18:06:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702433185; cv=none; d=google.com; s=arc-20160816; b=vSwSj0/Q9W44cA30olz63VBGWVipLaJ+FRKKrGsNF2Kp6mS0ybrwTUk7ABP+3PqGLJ ymTbaqx15TIfPO2fWSMxxeeAxdUqlBgfWS/j0c2jN+lcRr56ihKyh8y9FYf/SqBgZGo3 jZCgHVgE2MhnQxf3q/674U32VIw4e9Ki9GYafJAbwCQ2iNarWbk3eZyO6PBO4nieMQTG wMbIPQTsQvemYxnCYrteEdgBcKbYn5gyesB/PkUMA4ZpnE1cd3VHiDLtCZ1SsbwVlaBL aKtGTEAmefOWZYsyCDmMdV1/zLYD/z6mjAvIxj/Ki+yU4WfE1wcyEBb3PyZoe0EzXo5/ oCrw== 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=8w1+yfAr2SPzVB4dpYvx6YaKAjN+fhfuOqchPg5V3ac=; fh=H2LMQ+QD3tZqelqjtlyynV8kngt3FJA/gBLlBDjgI/o=; b=GN/0Th1AutymFri2shASMjTqzYorO6tE7VUlrnDAz4NkIROlQ4KSOLsZoWUeKhGP6n slWGwN/Fex42OXmJkh9qTMhpfH/Gfjlqn4PxOTrDj4a8By3K+EwIeBqESkGpvxlGviw+ yTS45a+XUTqRWgN/Uw15DKWfRo4Bukc+eHGz9julhiFcHy1hselXe1DpzzrlbhLq8LUE Ecbe6IiitaFAF3wO67ZMMHE4Aq1LNWvS6RC4yd7knTE8A+BVdUATUI2erbdzVZhdjoqD FjuuPVaEjxJ1/k9GicnFYkjE56b8dExv+3+omq5o7xltmgNRQdK/TjP+AL31RAkQ72C0 43ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="G/PYG8LC"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id s3-20020a62e703000000b006cdd595606asi8418990pfh.392.2023.12.12.18.06.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 18:06:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="G/PYG8LC"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id 55E3B80ACCD2; Tue, 12 Dec 2023 18:06:23 -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 S1378244AbjLMCGJ (ORCPT + 99 others); Tue, 12 Dec 2023 21:06:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235189AbjLMCGI (ORCPT ); Tue, 12 Dec 2023 21:06:08 -0500 Received: from mail-qt1-x82a.google.com (mail-qt1-x82a.google.com [IPv6:2607:f8b0:4864:20::82a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C4B7CE for ; Tue, 12 Dec 2023 18:06:14 -0800 (PST) Received: by mail-qt1-x82a.google.com with SMTP id d75a77b69052e-42598c2b0b7so93731cf.1 for ; Tue, 12 Dec 2023 18:06:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1702433173; x=1703037973; 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=8w1+yfAr2SPzVB4dpYvx6YaKAjN+fhfuOqchPg5V3ac=; b=G/PYG8LCOvc9QQHCceMnLZDqLs9MpWjTZ0PC84E1dM01lSAK2XCB/tQ1lj8oyXfVjv 60R42JaFPPlFKDwwS3Y2DrfxHgE651pHMIyFTSonTgfXjdp9MRgIpIzq8HIGru3Hohv6 OgiTzefahr7uAlaUARWiOYJx/IxtibKhg9C1CsSV2QzMVCVU+KtW9EAjKfJWDyjI5CFU 5DzUxwTluj3PHQsCuisrfyD71XFgdKSUq9gaFmNi0V4ZwBan5HIburBCx7VkdjnZ/TnA 5fQQd8F2lwOAZLPAMWi5nqst9wT8SLlPzhAV14Jga3v0rUVqKG62yHnGjMxhM63QX4Yl dXHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702433173; x=1703037973; 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=8w1+yfAr2SPzVB4dpYvx6YaKAjN+fhfuOqchPg5V3ac=; b=WuPJfeKw4FRIAEWP8KOU0oHS/DJEIft0BPM3Kl2rCbzF06BuUORbhvsSBgDZNkRLaZ dfFN/hHEPMPPBjylnXVBMI3D6UzWUTDYzyRa1wrx7QgDFevh72HXNmyu1jUqnD/Ig9ZE QI/s2QMCjVdqUXt8BDwHQFq0ct5DjfVh5zj4Eb93M66DMzPeg5PYre5FCqUfPH3CrN8b mSzcsj+YdSFEKxXywrB1wKOkLlMJgEbf+D+jLnFsN9hf1nxL1l3HiYckXjV4K0kmawjQ ztOuyziWCq82bjBjYCUissqjQipZXMyyhi0Sy1ztjq8/j0Si29+XPFGK847v8SWdJboo vsKg== X-Gm-Message-State: AOJu0YzBoOtIJ61yZ5QDGV+mbbZr0XHnAD/HTDYy02pBRWbdzPHZkWxF 8xmsMJ0uCzXgFgpO9WbHfti3nlTVTGzENJ4+Pgbutg== X-Received: by 2002:a05:622a:303:b0:41e:36cd:4284 with SMTP id q3-20020a05622a030300b0041e36cd4284mr1355674qtw.6.1702433173482; Tue, 12 Dec 2023 18:06:13 -0800 (PST) MIME-Version: 1.0 References: <20231213013807.897742-1-schatzberg.dan@gmail.com> <20231213013807.897742-3-schatzberg.dan@gmail.com> In-Reply-To: <20231213013807.897742-3-schatzberg.dan@gmail.com> From: Yu Zhao Date: Tue, 12 Dec 2023 19:05:36 -0700 Message-ID: Subject: Re: [PATCH V4 2/2] mm: add swapiness= arg to memory.reclaim To: Dan Schatzberg Cc: Johannes Weiner , Roman Gushchin , Yosry Ahmed , Huan Yang , linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, linux-mm@kvack.org, Tejun Heo , Zefan Li , Jonathan Corbet , Michal Hocko , Shakeel Butt , Muchun Song , Andrew Morton , David Hildenbrand , Matthew Wilcox , Kefeng Wang , 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 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]); Tue, 12 Dec 2023 18:06:23 -0800 (PST) On Tue, Dec 12, 2023 at 6:39=E2=80=AFPM Dan Schatzberg wrote: > > Allow proactive reclaimers to submit an additional swappiness=3D > argument to memory.reclaim. This overrides the global or per-memcg > swappiness setting for that reclaim attempt. > > For example: > > echo "2M swappiness=3D0" > /sys/fs/cgroup/memory.reclaim > > will perform reclaim on the rootcg with a swappiness setting of 0 (no > swap) regardless of the vm.swappiness sysctl setting. > > Signed-off-by: Dan Schatzberg NAK. Please initialize new variables properly and test code changes thoroughly before submission.