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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7F5C1C433EF for ; Sat, 16 Apr 2022 00:04:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356694AbiDPAG1 (ORCPT ); Fri, 15 Apr 2022 20:06:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356686AbiDPAGX (ORCPT ); Fri, 15 Apr 2022 20:06:23 -0400 Received: from mail-vs1-xe32.google.com (mail-vs1-xe32.google.com [IPv6:2607:f8b0:4864:20::e32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16EF343391 for ; Fri, 15 Apr 2022 17:03:54 -0700 (PDT) Received: by mail-vs1-xe32.google.com with SMTP id r1so8146217vsi.12 for ; Fri, 15 Apr 2022 17:03:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ztOn9qTNjZOdib9wu9VtT2ux2AzPcxh/m+7PKVCw6iQ=; b=R5JSg0OZdet4qAUAD70eGrmGlbnfq6SE/UKMx9mVP3XjOuHnA4bSF78m1q8xItuGE9 vjqnxSxQ4spxqIw4T67UAoX/WAcpVdYRh0Do8X6bcppYXWpUgrN8T6JkIEu/GY1wQYyh A68dT7GLg+KlcZh58eo3TpGvYK6OsZzyfMZQDrLE0MQ6uR9X86jvNVceMpuK6ksQ1AGF vNgu+/XSqK9byqpg3ekX51zXiD0AKThWb3YM076hxyjIsBkx1tLG5G2nPZKahaiU1EQ/ FUnVlc5HTy63gEsQMroqaIki707KQUKD83kXincChwkr/HdyaaFWnemn3Dfdf9e2bpd8 6Bgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ztOn9qTNjZOdib9wu9VtT2ux2AzPcxh/m+7PKVCw6iQ=; b=lp0q3JYHByeNNn0NTHEqFwUhgVOwDUKrG1FsI8d9OFuVxp2ktuYSRZbBOPwmfltxfF te7x8f+wOh+SU4is1RTnC0HbS5DcuN7M3QXmh7evWvLoInj6LLTfsGiQaI7r+2oXgpDz /XEHtyw3m3oBD5VoZxfqsBbxiP2yqKyJTiBW4fignJBF+BznateL1wHyc3n2w4NC/94c TrvVszDtNe891LjMTA00A7fiMC+PVuozYHzV/Lgf8onVURD3KA2aswU7vEX27hunvjTg yaxK1s+m4eBw/RmZEdaxsU+uyK2cnC7OfKaiO3AXnMVg4sDapHRJIPTq9LZgIdhr2WDb p5ig== X-Gm-Message-State: AOAM531vX+tKikTAOKagjOzADSP/aG38QV64wP4kzTznqCRxOHtVWe1C 6DK1j+KDNEvMarky62rShcEqzdwjPVLLbZGfDTLxQA== X-Google-Smtp-Source: ABdhPJw2ERJ54VhqBYtjNfKf1yIUSVFp1Wz9yRWf2I17eE6bxYiU0nBVH1Y+brrNjKX5bhrMgcp/2etChjEHOe5V/60= X-Received: by 2002:a05:6102:3753:b0:325:c20e:4b1c with SMTP id u19-20020a056102375300b00325c20e4b1cmr371331vst.84.1650067433140; Fri, 15 Apr 2022 17:03:53 -0700 (PDT) MIME-Version: 1.0 References: <20220407031525.2368067-1-yuzhao@google.com> <20220407031525.2368067-13-yuzhao@google.com> <20220411191634.674554d3de2ba37b3db40ca2@linux-foundation.org> In-Reply-To: <20220411191634.674554d3de2ba37b3db40ca2@linux-foundation.org> From: Yu Zhao Date: Fri, 15 Apr 2022 18:03:16 -0600 Message-ID: Subject: Re: [PATCH v10 12/14] mm: multi-gen LRU: debugfs interface To: Andrew Morton 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 , =?UTF-8?Q?Holger_Hoffst=C3=A4tte?= , Konstantin Kharlamov , Shuang Zhai , Sofia Trinh , Vaibhav Jain Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 11, 2022 at 8:16 PM Andrew Morton wrote: > > On Wed, 6 Apr 2022 21:15:24 -0600 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]. > > debugfs is for ephemeral temp stuf which can and will change or > disappear at any time. Anything which is "required" by userspace > should not be in debufgs. Right. "required" is probably a poor choice of words. "These techniques are commonly used to optimize job scheduling" would sound better. > 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. 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 B685CC433EF for ; Sat, 16 Apr 2022 00:05:11 +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:Cc:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=AjRjkmZm/hMstjcLXCA9cnYirHZH4Tzu7SwC2c7cYFg=; b=t8RRN8ewu7Pd3a SFQ7TuZpmzEvWuOd9rI5ECVABdY8ThG/U2NkrURCsIrkHQ2Qn2OTgAAK9qQQRq46O98L7aTW7FN6i Y14FFeFPOhtW09qr0QXqCoturdWLdhtVjzydalgK4QbT/KXFgLl5yPE9N6xPjmgZpL2lkMEkfhw4W 7PAlmrXPwm3FWCW2lSvci3gQRsdCBJQNj6vGG7O986LFKzxpOBf4ZdoCIYGSFDASWeEiJBicJAEms 8N7gMJzxu8arW4xD5KsbnnsIPIxH/5wwSOhHN+HpQx4NKHHdojjLA/oCBtWNwmXUWkpWR1fvi5UnV ei9n+Sw7EMVgIKRLQ0+g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nfVuw-00BlNm-7p; Sat, 16 Apr 2022 00:03:58 +0000 Received: from mail-vs1-xe32.google.com ([2607:f8b0:4864:20::e32]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nfVut-00BlMd-3u for linux-arm-kernel@lists.infradead.org; Sat, 16 Apr 2022 00:03:56 +0000 Received: by mail-vs1-xe32.google.com with SMTP id 190so2287546vse.8 for ; Fri, 15 Apr 2022 17:03:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ztOn9qTNjZOdib9wu9VtT2ux2AzPcxh/m+7PKVCw6iQ=; b=R5JSg0OZdet4qAUAD70eGrmGlbnfq6SE/UKMx9mVP3XjOuHnA4bSF78m1q8xItuGE9 vjqnxSxQ4spxqIw4T67UAoX/WAcpVdYRh0Do8X6bcppYXWpUgrN8T6JkIEu/GY1wQYyh A68dT7GLg+KlcZh58eo3TpGvYK6OsZzyfMZQDrLE0MQ6uR9X86jvNVceMpuK6ksQ1AGF vNgu+/XSqK9byqpg3ekX51zXiD0AKThWb3YM076hxyjIsBkx1tLG5G2nPZKahaiU1EQ/ FUnVlc5HTy63gEsQMroqaIki707KQUKD83kXincChwkr/HdyaaFWnemn3Dfdf9e2bpd8 6Bgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ztOn9qTNjZOdib9wu9VtT2ux2AzPcxh/m+7PKVCw6iQ=; b=SRfXG19YGfWqfT+oIz8XuD3eDcjRqvj2JCHvqNFE1+PlZPa87Ichg/PoRXF8YxheIj Zh391Eeu64QdWbTIWV4tXRdeXbYuNHdBnmUlRPM+MaVfWLKsMKmzDUf2wJK5n4uErWAe bb5mTCvZLhfv9y53sww3q7OHeX/GZYdU30eSoK83W2FCnLV39MFZJb+TnXC0iufuJ6yO 5pLB8BrtiZfM9rzr6uLyL4tqY3arwP8f/f++5QqiiHdtwrsH9b/SB+7dXhH7YKXF/8RE 9Gw9z+i+PJJkRQoO5c2gUkOVS4qgxvMgat1amKAraUy3sBGEaZmqwMzBmjUkS2GSGM5U tBIw== X-Gm-Message-State: AOAM532HKsfFmyOAG23ghk/WoMnbL4Fr8Ghc7JtxUGWdrjGw4HwBOrNr zC78xJV/lhiA3aY4uFGIMjr/VribMovYvED3GoDZnA== X-Google-Smtp-Source: ABdhPJw2ERJ54VhqBYtjNfKf1yIUSVFp1Wz9yRWf2I17eE6bxYiU0nBVH1Y+brrNjKX5bhrMgcp/2etChjEHOe5V/60= X-Received: by 2002:a05:6102:3753:b0:325:c20e:4b1c with SMTP id u19-20020a056102375300b00325c20e4b1cmr371331vst.84.1650067433140; Fri, 15 Apr 2022 17:03:53 -0700 (PDT) MIME-Version: 1.0 References: <20220407031525.2368067-1-yuzhao@google.com> <20220407031525.2368067-13-yuzhao@google.com> <20220411191634.674554d3de2ba37b3db40ca2@linux-foundation.org> In-Reply-To: <20220411191634.674554d3de2ba37b3db40ca2@linux-foundation.org> From: Yu Zhao Date: Fri, 15 Apr 2022 18:03:16 -0600 Message-ID: Subject: Re: [PATCH v10 12/14] mm: multi-gen LRU: debugfs interface To: Andrew Morton 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 , =?UTF-8?Q?Holger_Hoffst=C3=A4tte?= , Konstantin Kharlamov , Shuang Zhai , Sofia Trinh , Vaibhav Jain X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220415_170355_264731_5DC8F188 X-CRM114-Status: GOOD ( 13.86 ) 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 Mon, Apr 11, 2022 at 8:16 PM Andrew Morton wrote: > > On Wed, 6 Apr 2022 21:15:24 -0600 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]. > > debugfs is for ephemeral temp stuf which can and will change or > disappear at any time. Anything which is "required" by userspace > should not be in debufgs. Right. "required" is probably a poor choice of words. "These techniques are commonly used to optimize job scheduling" would sound better. > 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. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel