Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp370599ybb; Wed, 1 Apr 2020 01:28:24 -0700 (PDT) X-Google-Smtp-Source: ADFU+vu8qWrFBJ6fFVBH79iSf7DbyCpxr/cChdO/J8+Ih6gI9gtr/w/uEoSX2ZQ2uuQwApy9aLWC X-Received: by 2002:a9d:5e0d:: with SMTP id d13mr12007754oti.162.1585729704001; Wed, 01 Apr 2020 01:28:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585729703; cv=none; d=google.com; s=arc-20160816; b=aLrX+En3vyHcTG5+YJCe0cg6/WRcl7iR1QLRnk/mr8f8IfsKZp0z+mJfMMFUgoH3Vy XRrDJ9p4BnQepkrG3psqqRr+SdUpyF8oI0AvAylXgJMQmiOoRZn26QPUNbGCCPmdYUqJ Jq2mgpXT1HyWfS6r1PvfCJNkT8nW7G2L1pQ+izbiGnAsbNbFTKlB0r4OpLy6jrjOwXd8 /aMHRGQtPhA1kNn5DEGiyxUTypcYp8wHlktt2tl63SU3oZNf8tByIP5hXFEwLidapXxf Z/2fBkMFLr4w2SJUh1g85X4li6zc2IrNK+xjQFOEeIKGJN//FJQ2t3GvAatvS5ZZig47 Ydow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:content-id:mime-version :subject:cc:to:references:in-reply-to:from:organization :dkim-signature; bh=A6T4NzJaYrpl8sbGk+/56cI+lPm3tJ8OvumXbnFWNJs=; b=bFPrk9NLuDhW9Le6uEgQPDtkgHXg5HGU1J/2yNvULoSTAopKTZZH8JRYExPZEcuiHz dBULkB8Jq0fqGf14WC1Cm3FTKJkAvB7cZDQejWbwyhradikZNWyKpMEDM+m4924NiEuy v0CIAX1ww8FQJVnJOrKgsnt/qIqW/3rBoQCxCjFiTFBo96XWhsFGvZoAxlVxMPS47onf VLo1xsqw5LbTrgM15MNzp3poundLGs+/gzQVxTngPM3yVaoZJO2xFwfXT6RP6Rgc1191 aKa10RGjjjwxoXzDxeLy8gbrPiIZaDtQ3obsiGfHMnEnrn+VP8o+A5h45ouKyZWQS+hV b5sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LDVal90o; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y124si656489oig.60.2020.04.01.01.28.09; Wed, 01 Apr 2020 01:28:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LDVal90o; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731999AbgDAI1m (ORCPT + 99 others); Wed, 1 Apr 2020 04:27:42 -0400 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:40640 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726406AbgDAI1m (ORCPT ); Wed, 1 Apr 2020 04:27:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585729660; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=A6T4NzJaYrpl8sbGk+/56cI+lPm3tJ8OvumXbnFWNJs=; b=LDVal90ozh0D3vX2vbyYlQsxKi/jTKZqK9S1nICiuWNr4GgMeuXHLkP+ieRftCxB6D7MzC xtB0U/e1dSE6QfloV1Y1pv/YniMJcJ9SWp6QWBhHrSOzUN3Hp9umB5723o+EdgFKOBll0C TPe/YgIgtjR3QeCmzAWBc1KZKovzRps= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-28-LPl4n2IlPVKc88TP8mowIg-1; Wed, 01 Apr 2020 04:27:37 -0400 X-MC-Unique: LPl4n2IlPVKc88TP8mowIg-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id AEE58800D53; Wed, 1 Apr 2020 08:27:34 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-114-243.ams2.redhat.com [10.36.114.243]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4BEC296B72; Wed, 1 Apr 2020 08:27:30 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: References: <158454408854.2864823.5910520544515668590.stgit@warthog.procyon.org.uk> <50caf93782ba1d66bd6acf098fb8dcb0ecc98610.camel@themaw.net> To: Miklos Szeredi Cc: dhowells@redhat.com, Ian Kent , Linus Torvalds , Al Viro , Linux NFS list , Andreas Dilger , Anna Schumaker , "Theodore Ts'o" , Linux API , linux-ext4@vger.kernel.org, Trond Myklebust , Miklos Szeredi , Christian Brauner , Jann Horn , "Darrick J. Wong" , Karel Zak , Jeff Layton , linux-fsdevel@vger.kernel.org, LSM , linux-kernel@vger.kernel.org Subject: Re: [PATCH 00/13] VFS: Filesystem information [ver #19] MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2465265.1585729649.1@warthog.procyon.org.uk> Date: Wed, 01 Apr 2020 09:27:29 +0100 Message-ID: <2465266.1585729649@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Miklos Szeredi wrote: > According to dhowell's measurements processing 100k mounts would take > about a few seconds of system time (that's the time spent by the > kernel to retrieve the data, But the inefficiency of mountfs - at least as currently implemented - scales up with the number of individual values you want to retrieve, both in terms of memory usage and time taken. With fsinfo(), I've tried to batch values together where it makes sense - and there's no lingering memory overhead - no extra inodes, dentries and files required. David