Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6396729rwb; Mon, 14 Nov 2022 20:05:33 -0800 (PST) X-Google-Smtp-Source: AA0mqf4YQ9pI0QiBfqxxuqc4XB/oZPU4WrX3ONRz5njVSHZJoW7rRFxpiiWw3ijf+YYtgDeDOIeG X-Received: by 2002:a17:90a:29c4:b0:212:a14e:b8b0 with SMTP id h62-20020a17090a29c400b00212a14eb8b0mr328401pjd.39.1668485133390; Mon, 14 Nov 2022 20:05:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668485133; cv=none; d=google.com; s=arc-20160816; b=PCOs7vnYUUSKFPoDrPrloA2O+drE9VWZHD1pI0kD7zCw1SNtdL8ZS3vryMem2IRR/r Ef3BwqArpW/WN7GNhXzCesLSX0H/7QKeJ/TjXOGIUzFa0AGzEXJ8xI/Qxn1RoEwLJ5ve xU0+h1Ct2UtJXclLt2AwF/ePMtY2WSuGw1YvSv1NPNDEQVlRx6Y2NXsPlJTp2cjVjRxY QsmFPswjXXrn2FypWSqTppVOi+Aj8s4JNq+GlBz3LgZ197f+EJ0MJm3rfMVwG/nbt+Vc Me2ovIX045VYrYaTHB4y2v+wMnZ9ZWVxhlo6HlFBrFAmrOejEkt6JdFXIxkPEnTQs7sr 0leg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=IzdlQonh9ksiWRR0k5Cq1A47+kjhq4OFBIwy1qdcCmg=; b=cQXI0uWD4en/4c7rREIYaSHUdKp99aOkFviVP2VXFRmcZqPJnaWM6hwOQeGG0EuYIO kEcFCXFahthFuR2Nza8Qilj48KOmbnmdYcFIWrU/HLzIJj3XQowktHj8E21SlFYAvHHU apFEA1nLfuQ0AWdK3jhiKxLZHQixaJIbYOaMQ1PW+PY00BfOeO2JI1zm7pQutZeb3eyi TapVURdqsZ2OQaLH1WelyYr7AuHmVadS1tZOUDB6w8wBBzCEoynSwpKCwBBkkVN509ue cxvmgF5sr3SVfnQOo3Y8QXIeXgXQqhbXfeGsEKVHBF2jS7WwCKpswZ29sT/hiFV5vBKZ 3Mpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=ZLDkTjJF; 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=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s207-20020a632cd8000000b0044d72a10aafsi10886377pgs.34.2022.11.14.20.05.21; Mon, 14 Nov 2022 20:05:33 -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=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=ZLDkTjJF; 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=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232454AbiKODkI (ORCPT + 88 others); Mon, 14 Nov 2022 22:40:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232033AbiKODkG (ORCPT ); Mon, 14 Nov 2022 22:40:06 -0500 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0506210FC7 for ; Mon, 14 Nov 2022 19:40:05 -0800 (PST) Received: by mail-pf1-x42a.google.com with SMTP id k15so12960624pfg.2 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=HVCmj1oErPEc4d+z57FTUQWLO9qcgEoESl5UKPqFp9TaYWmyN2jH4m1MCO7LFG585J o0rTtvWoLH+6CXIoU/80oWZ7gcwhQSb9IxVuycyHmM9fReEwgmCkl/cmA20sEx6fyun5 VQr17+QznvrRgdf4oBZouL0l6XJC1QBVMIVLp9clu497kDgNDJwHhTZI/gxU2gSQ1k/l sA67yuxiEwt/3h8MrDTYOnIBWON1+qhME67XT8OciPog65Pczg8XGqYy3RZP0zmqDpCP apw55cPB94UX7Vdp7cyYoqniCxdVYvKue2g0UVmA7pnB2lqUpJIp7X77XRizCktaT31K zRww== X-Gm-Message-State: ANoB5plmVreW/J5DiovRWHov5k6m2DUmrBXnqTXakHG04RRU7WC8eMJX y8Z/FWd/VtxL7qzL2zvWD2zsIA== 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 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 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