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 D92C2C43219 for ; Tue, 15 Nov 2022 03:40:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232646AbiKODkH (ORCPT ); Mon, 14 Nov 2022 22:40:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232482AbiKODkG (ORCPT ); Mon, 14 Nov 2022 22:40:06 -0500 Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05D5D1144E for ; Mon, 14 Nov 2022 19:40:05 -0800 (PST) Received: by mail-pg1-x534.google.com with SMTP id q1so12097048pgl.11 for ; Mon, 14 Nov 2022 19:40:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=IzdlQonh9ksiWRR0k5Cq1A47+kjhq4OFBIwy1qdcCmg=; b=ZLDkTjJFwaTtzx3Ef09Onguq8cMTLUu9IEYjbLoRUGzk6ulTDfFw+ni0uy1n1Utjjj HJHHJjd4XNpN6yIrAbr8fMM5mGQ3ERZuduvwoNToYgXUJ2F7mhGkSD7hHYG95gvFtaRj Ih510ouJY4TlIBwaj4F63HFxqAFxe92iA/vGZVp/00tgZd56F9LOzQXyeQBXyWrqvqD5 +tJjfQsDPmI3BgrCZQk1RIArWN9leJGs4MsqSi5cWwsFimv+oMiMsBgpB/+PsX90xuAk jrLGuydsKvTIVXVNpOkKN2TRoeLGpP+WzLG1DhDTmHV9R3Wu/FefvswkfajppVg6jenm eOjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=IzdlQonh9ksiWRR0k5Cq1A47+kjhq4OFBIwy1qdcCmg=; b=x3otAzIs2ut1JcR5rleXyVs3sD9KaHPR22NelfH0cOsBNUOHqjC6ZiCTb049uT/KPY oZJgAJaPRqaghomj9srBVTLcd7qbqqn9X+UiiMmVUU6HY1h9XKGm3roTPWyGbi0dsTpv w9x/Kk34U58LXIkLItS91DfgLBV1DK4lHD7TzlJg4FDw6wk9HBBKKkISJJvpBKDPIEe0 DOD7KWLMcT3yZKwKa++OwtRQcmC3t/Rl70DVrEQ4HAIyYMy3krvRkQsQ8WigbSjeBbvb j2hyNqyOuEGmh7LjCC6fbOdl0cRziTt5+gZjdPruypeqtSliqMc3M6hfcCZB6wy5rke2 7P1w== X-Gm-Message-State: ANoB5pnD1iU/ZACwqJrNzhbNEUGlYzl3CHsh+4k0z3GUzBCuYPfNeKi9 HQQikqlDjLV5iHHvADZ15P4q+Q== X-Google-Smtp-Source: AA0mqf6btc+EJX1sgkPBLfYXPRpcR1cqU2L9+Cbc/TvjhYzVhQRiZmUsPGAYH2NmA3RNvpVLWxaQYg== X-Received: by 2002:aa7:8396:0:b0:56b:f3b2:5543 with SMTP id u22-20020aa78396000000b0056bf3b25543mr16810448pfm.65.1668483604557; Mon, 14 Nov 2022 19:40:04 -0800 (PST) Received: from [10.255.4.35] ([139.177.225.229]) by smtp.gmail.com with ESMTPSA id x13-20020a63f70d000000b0046f469a2661sm6586284pgh.27.2022.11.14.19.39.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 14 Nov 2022 19:40:04 -0800 (PST) Message-ID: Date: Tue, 15 Nov 2022 11:39:55 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [RFC PATCH] getting misc stats/attributes via xattr API To: Miklos Szeredi Cc: linux-fsdevel@vger.kernel.org, Dave Chinner , Theodore Ts'o , Karel Zak , Greg KH , Christian Brauner , linux-kernel@vger.kernel.org, Linux API , linux-man , LSM , Ian Kent , David Howells , Linus Torvalds , Al Viro , Christian Brauner , Amir Goldstein , James Bottomley , chenying.kernel@bytedance.com References: Content-Language: en-US From: Abel Wu In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-api@vger.kernel.org On 11/14/22 8:35 PM, Miklos Szeredi wrote: > On Mon, 14 Nov 2022 at 10:00, Abel Wu wrote: >> >> Hi Miklos and anyone interested in this proposal, is there any update on >> this? Sorry that I didn't find any.. > > No update. > > Which part are you interested in? We noticed that atop(1) can introduce a burst cpu usage once number of processes becoming large. It is mostly due to the overhead of massive syscalls. There are similar cases like monitor agents recording system status and consuming resources in modern data centers. So it would be nice to get a bunch of info in one syscall. > > Getting mount attributes? Or a generic key-value retrieval and > storage interface? The latter. > > For the first one there are multiple proposals, one of them is adding > a new system call using binary structs. The fsinfo(2) syscall was > deemed overdesigned and rejected. Something simpler would probably be > fairly uncontroversial. > > As for the other proposal it seems like some people would prefer a set > of new syscalls, while some others would like to reuse the xattr > syscalls. No agreement seems to have been reached. So the divergence comes from 'how' rather than 'why', right? Thanks & Best, Abel > > Also I think a notification system for mount related events is also a > much needed component. I've tried to explore using the fsnotify > framework for this, but the code is pretty convoluted and I couldn't > get prototype working. > > Thanks, > Miklos