Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5438725rdb; Wed, 13 Dec 2023 08:38:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IFmFaMllyg5OkECYUuz0HnFLnuWy5n0J/tD3wREWiEgV18QyanPXXkZps0B7uESpGK3uddf X-Received: by 2002:a05:6a20:e110:b0:190:917:4e3 with SMTP id kr16-20020a056a20e11000b00190091704e3mr13003124pzb.49.1702485532954; Wed, 13 Dec 2023 08:38:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702485532; cv=none; d=google.com; s=arc-20160816; b=Q5ciJJL7RSu2s2j9HC7POwbbo5qIgyPWKMtGaAejsqX0qx37nU+YvAWXiVZSOZ1vxg yFEYeW/r7zen7SxFJnpLx/RGW5RC9t0igzECJsGpT2tqAzl1M5xBi66D5OBL8cJn2SYb dB5Jemeiw9FZ5PyQnLg8wwvabpEmz8k5obQx+UgPkfBtkYVBfAe7KpJzL/6uUL+T+Am1 h48TCRXrQi4Slji8aMGAz+YS6uX9OQtx+/C2Kd4kWaVsqD4hs7AMINdGRKHXEWp9c7pg um4cAPtpjfC58b8S9zGX0nB7YRewsLQPYcVFbV8uLlCLO9okkJgR5ENfQZjj2+JAf2bb /6bA== 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=WngvNIIdUAOImz6VKCR6KlDDLoKgFI0GBra4+hjHdaY=; fh=FZLxXQ0a3dOi3VGE7Jpit5In2LxnDfvCyof3kYp9JtE=; b=YLV4emw7kJrTH0dsr++jXcrpD/R077kegBFYweT/TDs4LcDJxop2HLYOwfoQONiS+n g7VK2Hgqqa/hrUwKtlO7sWqJ3KwHDZ7WpBxENURcflx/Rc4cl446O0cmQhveRzkA4Ylj oGdESOpHPaBTLz0RgbN8diyVODY1U+J2/TxcxmKA0DZqy0aNR6jcUcxPaBsLcVyXjDTa qwXkjpC1ChZuSpx7+RTGxyI3t4/cKaNP/7V+rmF5UlL7Z6H2iZQ60OueeZhh+oP9hViY JSpYEzDpGet8afaZ6XYtkfkdggqnz/onx5cSBZjgfObL/UK+A+GEh63ndo6riVAGGWDL 6yUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NzLYDsBP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id i1-20020a6551c1000000b005c279da45f1si9869643pgq.566.2023.12.13.08.38.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 08:38:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NzLYDsBP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id ACE9E8032A3E; Wed, 13 Dec 2023 08:38:50 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232628AbjLMQid (ORCPT + 99 others); Wed, 13 Dec 2023 11:38:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229671AbjLMQic (ORCPT ); Wed, 13 Dec 2023 11:38:32 -0500 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F18688E; Wed, 13 Dec 2023 08:38:38 -0800 (PST) Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-1d348653591so11433665ad.1; Wed, 13 Dec 2023 08:38:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702485518; x=1703090318; 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=WngvNIIdUAOImz6VKCR6KlDDLoKgFI0GBra4+hjHdaY=; b=NzLYDsBPHGzS50irHggm2iGtEK3B4zIDR0Bq+Uc0Yv6/W5Tpp4LCsJn1MxEErCUNJ+ MTgsiDSJzhWpDuEQPfpN2GWEl0GbqzqKUrm7WEpPbByTIXYH5dbReQAi3GXZn0yroXMI x2vKWxSDFr0t3xs2AoAdC/odWnsiqbLQvCB5jcBeOoymtfTRgFJF2KXDdvtC8QCasbnN NY5Weu5dmhKIhyjxJ165kthOjz3+zoo53I8NB4/vKWfqr8HVE3eq1MczJ4jnhG2TJcan BpltIBFY0BsCnL8qP0m+j0GpL4Xr2BQZxQXZ742USicR3YvBQDm7fqhTkE4mvhFSqaXk aoyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702485518; x=1703090318; 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=WngvNIIdUAOImz6VKCR6KlDDLoKgFI0GBra4+hjHdaY=; b=K800IrK64mE0Ew6GYDR2t02M0fDrBFg9l3YhTgbY4u5ZoDpuXO3hSCVr5qBSrkfPtK 2S+ZD2A390ebOWPXzLgfso2TmG/BDvarbPXALl4QsfATc5r0dAqtb/AA0mehgFwpz5Q6 JGBY7M6gNNxxlf3Zrg9Zyxz8xEjHdcbcDpn6QrZtA78RxQY0jQ5UlRdqIGPGsr4vwJBU n+e6QLwICRFy5t3jiHO52WORTwCXIU4HU8zJNTlD+dW0jlAU65GHoRun65VqRU1WkXYX BJ2l6vMSxFNkuTLJqyKP2HEzFO85LGNvpnBAPQIhsUElAcD7EMmZ+VvdHE1MW7xyE3BV F2Sg== X-Gm-Message-State: AOJu0Yz/8cQzqNhlXt+njLRzfxGYzsHpxKNtOgWSIXOm+C7NwRklS6TZ 2QjMegyb6etjzrs82fS6XNw= X-Received: by 2002:a17:902:e887:b0:1d3:3768:90a0 with SMTP id w7-20020a170902e88700b001d3376890a0mr3641678plg.40.1702485518164; Wed, 13 Dec 2023 08:38:38 -0800 (PST) Received: from dschatzberg-fedora-PF3DHTBV ([2620:10d:c090:500::5:4500]) by smtp.gmail.com with ESMTPSA id az4-20020a170902a58400b001c71ec1866fsm10810814plb.258.2023.12.13.08.38.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 08:38:37 -0800 (PST) Date: Wed, 13 Dec 2023 11:38:33 -0500 From: Dan Schatzberg To: Yu Zhao 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 Subject: Re: [PATCH V4 2/2] mm: add swapiness= arg to memory.reclaim Message-ID: References: <20231213013807.897742-1-schatzberg.dan@gmail.com> <20231213013807.897742-3-schatzberg.dan@gmail.com> 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Wed, 13 Dec 2023 08:38:50 -0800 (PST) On Tue, Dec 12, 2023 at 07:05:36PM -0700, Yu Zhao wrote: > On Tue, Dec 12, 2023 at 6:39 PM Dan Schatzberg wrote: > > > > Allow proactive reclaimers to submit an additional swappiness= > > argument to memory.reclaim. This overrides the global or per-memcg > > swappiness setting for that reclaim attempt. > > > > For example: > > > > echo "2M swappiness=0" > /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. Could you be a bit more specific? The patch is compiling and working locally but perhaps there's some configuration or behavior that I haven't been testing.