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 27C59CE7A94 for ; Mon, 25 Sep 2023 11:29:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231215AbjIYL3y (ORCPT ); Mon, 25 Sep 2023 07:29:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229595AbjIYL3w (ORCPT ); Mon, 25 Sep 2023 07:29:52 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF22AC6; Mon, 25 Sep 2023 04:29:45 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B4144C433C7; Mon, 25 Sep 2023 11:29:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695641385; bh=2MbEYpOL+kd6uNyBjo39tKu41KpsEJTkTcuCbFCeUq0=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=OJ/NxX7VJvEsz87o5ht+Ojr5ufUFRCLMBwIy+Zn13UfOrKeKaPB+aVXcYi21Y0lvy bXo3e6n8bLYckQRqGdCFepp+fLSC7444BSdphs37MNFAIqLQ7hY2qwF7e7OWtFOdtZ mwi4r8UvKqaZTdl+xVogqFYZT+agL/hQN4dmUcMMrvrzTqs5E+Uis1L9IiryKn6Ma/ Kr5u3K3Tny8npDHJlyhyBKEOSCjs2iamv9mTMK3QXoXOhx6y4zIj0eJbDFKkmTGC/Y aaODfwRzkNwxRUxAl64k2XHJKp4aFI0bh/jRjCEnPkDrqY20hordyTKTvDdwXX9ZEP oAA5aO0qEN8CQ== Message-ID: Subject: Re: [PATCH 1/2] fs/ceph/debugfs: make all files world-readable From: Jeff Layton To: Ilya Dryomov , Max Kellermann Cc: Xiubo Li , ceph-devel@vger.kernel.org, linux-kernel@vger.kernel.org, Lorenzo Bianconi Date: Mon, 25 Sep 2023 07:29:43 -0400 In-Reply-To: References: <20230922062558.1739642-1-max.kellermann@ionos.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2023-09-25 at 12:41 +0200, Ilya Dryomov wrote: > On Fri, Sep 22, 2023 at 8:26=E2=80=AFAM Max Kellermann wrote: > >=20 > > I'd like to be able to run metrics collector processes without special > > privileges >=20 > Hi Max, >=20 > A word of caution about building metrics collectors based on debugfs > output: there are no stability guarantees. While the format won't be > changed just for the sake of change of course, expect zero effort to > preserve backwards compatibility. >=20 > The latency metrics in particular are sent to the MDS in binary form > and are intended to be consumed through commands like "ceph fs top". > debugfs stuff is there just for an occasional sneak peek (apart from > actual debugging). >=20 FWIW, I wish we had gone with netlink for this functionality instead of a seqfile. Lorenzo has been working with netlink for some similar functionality with nfsd[1], and it's much nicer for this sort of thing. [1]: https://lore.kernel.org/linux-nfs/ZQTM6l7NrsVHFoR5@lore-desk/T/#t --=20 Jeff Layton