Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3657251pxb; Sun, 7 Feb 2021 18:03:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJxN8njcCRfJW5drKP4rOwJNHaMl4Wb0XTpcQZLYpwm9CIkinxNKmqmy3MWzqJ20zyPsn22N X-Received: by 2002:a17:907:2bef:: with SMTP id gv47mr9554692ejc.457.1612749827521; Sun, 07 Feb 2021 18:03:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612749827; cv=none; d=google.com; s=arc-20160816; b=BRlaL10LDsD0yv26VC1lev81SWe4WwDO+3rKEyokXxuAxpqSuLpm/4SnyVcAXjHyTf c8WwRPVDL1hBDoUmv4zKIq4aFGoDbT1x7bMaFlSFnCWepJ2L/qsRKwskhN9fKK6I8EJB ib5IVCGRbC+0VLDH4i3LtgWDSUtJKliZx/X8mOhN0b9gPxNlXx0TZWsXnd/Z2fb/KZ4b KqQFccfs7nw5A0mvX7NATmj4H6MqqgV91IEnB1lfJh28iOa9jAxhC+jO60StHCF4hDho 3+E52xqbjdATgbaaH9sHq/ag7Z0dvxBwza9C5+apvYeqWcUsU+QFNe1jmbTa5H09Y6+Y fHOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=rYmHW0zSucUt05x8Xh7E7o0vujWYv90Bo7v1zhvEXJw=; b=S7m7M6IxRWifEP0ahZC9DCYTAIl4w3tGyL3yJkhTrjVE9KYf4cDcoFfEpOcJrZbgyU pi2wt/mtQpSE2Gj3dsIVwmBLYVQls3XSTUBLrmuJm0PHuKHRKpbXJEmCC72x83GjfBLi tOUyJPeo3pt/tFZRDPvsI47VHN6UAO7cKV/0vdZX6wv/vO5Zt8arFz77pqb2NELRuWxY CkBDZhbiJvZkMPxVkY5hKarc/aGUIyNdVGX6AjCtU7PYgXQ2eDkdH+uN42LSOHRXJE7k smgsUG9y4le14Z4a1vC7EOZhDMkcHiWw1FHGFEFsmZHbbl/GmeSnktaaSabrrJ1hQye/ e8oA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i19si656444edv.451.2021.02.07.18.03.24; Sun, 07 Feb 2021 18:03:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229691AbhBHCBO (ORCPT + 99 others); Sun, 7 Feb 2021 21:01:14 -0500 Received: from mail109.syd.optusnet.com.au ([211.29.132.80]:54405 "EHLO mail109.syd.optusnet.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229537AbhBHCBN (ORCPT ); Sun, 7 Feb 2021 21:01:13 -0500 Received: from dread.disaster.area (pa49-181-52-82.pa.nsw.optusnet.com.au [49.181.52.82]) by mail109.syd.optusnet.com.au (Postfix) with ESMTPS id CDDAA1140C21; Mon, 8 Feb 2021 13:00:03 +1100 (AEDT) Received: from dave by dread.disaster.area with local (Exim 4.92.3) (envelope-from ) id 1l8vqM-00BtB6-3Z; Mon, 08 Feb 2021 13:00:02 +1100 Date: Mon, 8 Feb 2021 13:00:02 +1100 From: Dave Chinner To: Miklos Szeredi Cc: Matthew Wilcox , Miklos Szeredi , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Al Viro , Andreas Dilger , Andreas Gruenbacher , Christoph Hellwig , "Darrick J . Wong" , Dave Kleikamp , David Sterba , Jaegeuk Kim , Jan Kara , Joel Becker , Matthew Garrett , Mike Marshall , Richard Weinberger , Ryusuke Konishi , Theodore Ts'o , Tyler Hicks Subject: Re: [PATCH 00/18] new API for FS_IOC_[GS]ETFLAGS/FS_IOC_FS[GS]ETXATTR Message-ID: <20210208020002.GM4626@dread.disaster.area> References: <20210203124112.1182614-1-mszeredi@redhat.com> <20210203130501.GY308988@casper.infradead.org> <20210203135827.GZ308988@casper.infradead.org> <20210203142802.GA308988@casper.infradead.org> <20210203145620.GB308988@casper.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.3 cv=Ubgvt5aN c=1 sm=1 tr=0 cx=a_idp_d a=7pwokN52O8ERr2y46pWGmQ==:117 a=7pwokN52O8ERr2y46pWGmQ==:17 a=kj9zAlcOel0A:10 a=qa6Q16uM49sA:10 a=JfrnYn6hAAAA:8 a=7-415B0cAAAA:8 a=JXGzyL3g34njaGKGXqwA:9 a=CjuIK1q_8ugA:10 a=1CNFftbPRP8L7MoqJWF3:22 a=biEYGPWJfzWAr4FL6Ov7:22 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 03, 2021 at 04:03:06PM +0100, Miklos Szeredi wrote: > On Wed, Feb 3, 2021 at 3:56 PM Matthew Wilcox wrote: > > > But let's talk specifics. What does CIFS need to contact the server for? > > Could it be cached earlier? > > I don't understand what CIFS is doing, and I don't really care. This > is the sort of operation where adding a couple of network roundtrips > so that the client can obtain the credentials required to perform the > operation doesn't really matter. We won't have thousands of chattr(1) > calls per second. Incorrect. The xfs utilities can do recursive directory traversal to change things like the project ID across an entire directory tree. Or to change extent size hints. We also have 'xfs_io -c "lsattr -R" ...' and 'lsprog -R' which will do a recursive descent to list the requested attributes of all directories and files in the tree... So, yeah, we do indeed do thousands of these fsxattr based operations a second, sometimes tens of thousands a second or more, and sometimes they are issued in bulk in performance critical paths for container build/deployment operations.... Cheers, Dave. -- Dave Chinner david@fromorbit.com