Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp2097382pxb; Sat, 19 Feb 2022 02:06:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJw1Tr6WieHZ7kSoHwDDdKd+cWUOLWXl5VJ5wNmEZ9KhzXLgdBJKHbKFKScK8xi3w4udUUb8 X-Received: by 2002:aa7:d8cb:0:b0:406:3135:51c7 with SMTP id k11-20020aa7d8cb000000b00406313551c7mr11839911eds.233.1645265183624; Sat, 19 Feb 2022 02:06:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645265183; cv=none; d=google.com; s=arc-20160816; b=Ex8/fUw0Yiz1Yu9WjOmAmxfz0cVLS+ZLKOq9hjPNiDHaZ22GupyM82ToBoRgeBwTEI +SXBE7TIVaMTNkJ4lLErvpO98e67z85y1iqnzA40zsNfQxgRzdBXmIyJd0MeccpJyvDU 4GC1IsU6akhBcKlToQrkR9G4s0EyQKrb/N0dzpvnaSXz0XAzIl7kbtIqrvyWnZEdP3HR lOFUg886E51ouSy1K2I9h5/gM0PJoSHX7qN7vb+UY7s8lxXbDVoTtf3gAbYNmKioPdRT ehojquDm1xLm6yz/kSy8fv4YJQgIDB3qv/UBP+AdNTBtb1Sx4GT9xpksxKjS1vpRX6E3 JKDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=dbe5PmbOzu407KEsPvcN8zvRJM1P0pbKwetHq/iEzos=; b=zA6SVDuJy1iv7GuA5TgaIQzA0povZJEBl58JupIS5Rgvk9vdAPLqKe22GpVmSmBk+f SQAwmgYW/qSUr2zaC+/ESP22Xnmtjffd5/6YNY/qAIo0h+Div4MEfu+X3b/rwGXrgcH/ YCMwmE60AhQKaHKurDiIXunE4O79BaK8p1/C70kyQvJKKi4rAJ62utPX7b5Vj+JVnteg YJVE5HmUiCSP2NMTo049yG/62cJM/O2zy80ZYHEGfZRBU3xEeeaBXtrzScbLZquOUZ7Q YYbOWXN32Hzj+cic9euVAmAp+Gk1PDUMyzZdDLV/t4NVYAJpYDIlbt8t8nOtcf29fHkB Nq5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=lFy1wh6F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e14si3662234edy.630.2022.02.19.02.06.00; Sat, 19 Feb 2022 02:06:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=lFy1wh6F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236035AbiBRS5H (ORCPT + 99 others); Fri, 18 Feb 2022 13:57:07 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:51068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233815AbiBRS5D (ORCPT ); Fri, 18 Feb 2022 13:57:03 -0500 Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CFBC33363 for ; Fri, 18 Feb 2022 10:56:46 -0800 (PST) Received: by mail-pg1-x52b.google.com with SMTP id d16so8618341pgd.9 for ; Fri, 18 Feb 2022 10:56:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:from:to:cc:subject:in-reply-to:message-id:references :mime-version; bh=dbe5PmbOzu407KEsPvcN8zvRJM1P0pbKwetHq/iEzos=; b=lFy1wh6Fs5vAcbQolk5/ZuS0j8ngCp9l1Ec5UjYZCnmRC8oPrhCexnNr3sqTmnpC9I ar+eBAwyb3BGhb+qlCicc7nB6hWxdPwpNTFDQ/Y/TaQ+C1Wx7XCv6esI7uC/XQWIsCQl dB7j43NJaM0uQu3fNB5gj84GqiWGt/vXA1VCj7CmPwf95ZKiCsxgZ+0U/ktem0WBpHs4 Vdz/ZOxBCAiSahiBaoqYgZzfKrhsemQoRdK9LvWCveUyt7xsxkJ4nm+Lv5jP4lEQneb0 uN2nEkRPzhhXlNhlD9haNEYnSshl37Q9+W/L+7aCBzTtBPj4a+uzT1NNMsR8dhMXu7aH V9Xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:mime-version; bh=dbe5PmbOzu407KEsPvcN8zvRJM1P0pbKwetHq/iEzos=; b=Hh9FEpdM3iSHwprel1DrnvVl6bX4n6wYAbFDdQ31bII9dd6Ywd7io6UUb9ibycgw72 ExswFhN+hxS4VMp07jIoeQyrWMAa/Xilm/mfIQhIb3zFFursINwtYt1cPm3YEMnUCY2f +zU2HyZGYezqzW2c8kQNYZkyjDb+WIMv8zsuDVPFjKLQ0oSTDtjaiCBIGWUfuJVrMfGA tEMCwhy6dmrEJykx4uzSOqnB4M//By8PXx1IPlzPp59vPpycOLfAFlxkDtPPNEIl9SQR 1v/vGcRDAG7VLEbVvzxkTdo/DKyO2APUfJYohRCaUFHBEXkcFcerm0/FS+H6l28ZN1OO Xy9Q== X-Gm-Message-State: AOAM532TQ7L1Atm7NimsqHXykL7AaJqZorRQcP4gdUaRG/+hvm+2OQ67 yb6oVEZKXp9NngOdZhTRPTfMpw== X-Received: by 2002:a63:ff54:0:b0:373:520f:a01d with SMTP id s20-20020a63ff54000000b00373520fa01dmr7313446pgk.394.1645210605382; Fri, 18 Feb 2022 10:56:45 -0800 (PST) Received: from [2620:15c:29:204:701:472c:4005:6710] ([2620:15c:29:204:701:472c:4005:6710]) by smtp.gmail.com with ESMTPSA id a17sm136665pju.15.2022.02.18.10.56.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Feb 2022 10:56:44 -0800 (PST) Date: Fri, 18 Feb 2022 10:56:44 -0800 (PST) From: David Rientjes To: Yu Zhao , Johannes Weiner , Shakeel Butt cc: Andrew Morton , Johannes Weiner , Mel Gorman , Michal Hocko , Andi Kleen , Aneesh Kumar , Barry Song <21cnbao@gmail.com>, Catalin Marinas , Dave Hansen , Hillf Danton , Jens Axboe , Jesse Barnes , Jonathan Corbet , Linus Torvalds , Matthew Wilcox , Michael Larabel , Mike Rapoport , Rik van Riel , Vlastimil Babka , Will Deacon , Ying Huang , linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, page-reclaim@google.com, x86@kernel.org, Brian Geffon , Jan Alexander Steffens , Oleksandr Natalenko , Steven Barrett , Suleiman Souhlal , Daniel Byrne , Donald Carr , =?UTF-8?Q?Holger_Hoffst=C3=A4tte?= , Konstantin Kharlamov , Shuang Zhai , Sofia Trinh Subject: Re: [page-reclaim] [PATCH v7 11/12] mm: multigenerational LRU: debugfs interface In-Reply-To: <20220208081902.3550911-12-yuzhao@google.com> Message-ID: <5dcf93c7-7b75-507e-f896-d1bd8c7ceb37@google.com> References: <20220208081902.3550911-1-yuzhao@google.com> <20220208081902.3550911-12-yuzhao@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 8 Feb 2022, Yu Zhao wrote: > Add /sys/kernel/debug/lru_gen for working set estimation and proactive > reclaim. These features are required to optimize job scheduling (bin > packing) in data centers [1][2]. > Johannes, do you believe this interface is sufficient to induce memcg based reclaim or do you have plans to propose a memory.reclaim extension to memcg? I assume that lru_gen could be used even if memcg is disabled whereas memory.reclaim would only be available on systems where the controller is mounted through cgroups. Yet a question would probably arise about the stability of this interface since it lives in debugfs: can we plan on /sys/kernel/debug/lru_gen being long-term supported?