From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E441DC433F5 for ; Tue, 26 Apr 2022 21:31:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Mime-Version:References:In-Reply-To: Message-Id:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ZyX2jC9CbVDSeq1l1w21SA+3fI7wUsDsdS3NBC1QP8M=; b=3YS4EzdZY3TLYR PBXfCO4WOlmOfJEuRomN2FEdizEQqsZlU0WdVGqsDvHT6nw75ZqqoccjHWoWguUmba6ygVHIHt+Jo GTYnwpvnbMQb1B80+pEiFRk5RwheMqEEfGT+6iMxb7fcIak37JO3UfPccYUeDKsF4fSOl7aUn4ZmI GDZS0NZpneswi/6cSlMTerWCGHnqH6nH1FZYsax9m2DTWCaWucVKwxycgatB26tVV2UmKufhh+7iR 4Sdryn5USwMgMEI8cdy6TLX4tNIqYrq3X/eN+DjUcjzC1PRazRMCHntCcwoHyXTIItikaXuCFEMTK IyKvL9ZEfR4T0YBYrV8w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1njSlc-00GL3t-Tq; Tue, 26 Apr 2022 21:30:41 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1njSlZ-00GL31-LX for linux-arm-kernel@lists.infradead.org; Tue, 26 Apr 2022 21:30:39 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id EC7A56173B; Tue, 26 Apr 2022 21:30:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0B698C385A0; Tue, 26 Apr 2022 21:30:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1651008636; bh=hRBN2iGUWntk6rFDQClPrjJSN1u3Plq5R5MkMdlntzA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=2AgeVAJdYeuPtwz5M/eqMKQsJKokdP1kIZVf0URVWM3SGYun4iiEJslJB0++i7lv+ G29Uwsy2kwANU1AUg4BAnaWWNz9Q1s5uGgVhQoLMY6hwbuitH9tHnUinZbWz/b/lia ThO4ZAVemknNsB+RzsmXUH8bOCELau56862WiyuQ= Date: Tue, 26 Apr 2022 14:30:34 -0700 From: Andrew Morton To: Yu Zhao Cc: Stephen Rothwell , Linux-MM , Andi Kleen , Aneesh Kumar , Barry Song <21cnbao@gmail.com>, Catalin Marinas , Dave Hansen , Hillf Danton , Jens Axboe , Jesse Barnes , Johannes Weiner , Jonathan Corbet , Linus Torvalds , Matthew Wilcox , Mel Gorman , Michael Larabel , Michal Hocko , Mike Rapoport , Rik van Riel , Vlastimil Babka , Will Deacon , Ying Huang , Linux ARM , "open list:DOCUMENTATION" , linux-kernel , Kernel Page Reclaim v2 , "the arch/x86 maintainers" , Brian Geffon , Jan Alexander Steffens , Oleksandr Natalenko , Steven Barrett , Suleiman Souhlal , Daniel Byrne , Donald Carr , Holger =?ISO-8859-1?Q?Hoffst=E4tte?= , Konstantin Kharlamov , Shuang Zhai , Sofia Trinh , Vaibhav Jain Subject: Re: [PATCH v10 12/14] mm: multi-gen LRU: debugfs interface Message-Id: <20220426143034.f520c062830f9e3405c890d0@linux-foundation.org> In-Reply-To: References: <20220407031525.2368067-1-yuzhao@google.com> <20220407031525.2368067-13-yuzhao@google.com> <20220411191634.674554d3de2ba37b3db40ca2@linux-foundation.org> <20220415212024.c682ac000e3e91572d8d6d2b@linux-foundation.org> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) Mime-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220426_143037_862277_93322468 X-CRM114-Status: GOOD ( 32.31 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, 26 Apr 2022 00:59:37 -0600 Yu Zhao wrote: > On Fri, Apr 15, 2022 at 10:20 PM Andrew Morton > wrote: > > > > On Fri, 15 Apr 2022 18:03:16 -0600 Yu Zhao wrote: > > > > > > Presumably sysfs is the place. Fully documented and with usage > > > > examples in the changelog so we can carefully review the proposed > > > > extensions to Linux's ABI. Extensions which must be maintained > > > > unchanged for all time. > > > > > > Eventually, yes. There still is a long way to go. Rest assured, this > > > is something Google will keep investing resources on. > > > > So. The plan is to put these interfaces in debugfs for now, with a > > view to migrating stabilized interfaces into sysfs (or procfs or > > whatever) once end-user requirements and use cases are better > > understood? > > The requirements are well understood and the use cases are proven, > e.g., Google [1], Meta [2] and Alibaba [3]. > > [1] https://dl.acm.org/doi/10.1145/3297858.3304053 > [2] https://dl.acm.org/doi/10.1145/3503222.3507731 > [3] https://gitee.com/anolis/cloud-kernel/blob/release-5.10/mm/kidled.c So will these interfaces be moved into sysfs? > > If so, that sounds totally great to me. But it should have been in > > the darn changelog! This is the sort of thing which we care about most > > keenly. > > > > It would be helpful for reviewers to understand the proposed timeline > > for this process, because the entire feature isn't really real until > > this is completed, is it? I do think we should get this nailed down > > relatively rapidly, otherwise people will be reluctant to invest much > > into a moving target. > > > > And I must say, I see dissonance between the overall maturity of the > > feature as described in these emails versus the immaturity of these > > userspace control interfaces. What's happening there? > > Very observant. To answer both of the questions above: each iteration > of the entire stack is a multi-year effort. > > Given its ROI, companies I know of constantly pour money into this > area. Given its scale, this debugfs is the least of their concerns. A > good example is the proactive reclaim sysfs interface [4]. It's been > used at Google for many years and at Meta for a few years. We only > started finalizing it recently. > > [4] https://lore.kernel.org/r/20220425190040.2475377-1-yosryahmed@google.com/ Sure, if one organization is involved in both the userspace code and the kernel interfaces then the alteration of kernel interfaces can be handled in a coordinated fashion. But releasing interfaces to the whole world is a different deal. It's acceptable to say "this is in debugfs for now because it's a work in progress" but it sounds like mglru's interfaces are beyond that stage? _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel