From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joe Evans Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: too many files Date: Tue, 09 May 2006 16:14:33 +0100 Message-ID: <4460B1D9.2070207@kcl.ac.uk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1147187869 9513 80.91.229.2 (9 May 2006 15:17:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 9 May 2006 15:17:49 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Tue May 09 17:17:45 2006 Return-path: Envelope-to: gotm-tru64-unix-managers@gmane.org Original-Received: from sws1.ornl.gov ([160.91.1.101]) by ciao.gmane.org with smtp (Exim 4.43) id 1FdTwE-0005xP-P6 for gotm-tru64-unix-managers@gmane.org; Tue, 09 May 2006 17:15:53 +0200 Original-Received: (qmail 20285 invoked by uid 49509); 9 May 2006 15:15:29 -0000 Original-Sender: tru64-unix-managers-owner@ornl.gov Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 20275 invoked by uid 49501); 9 May 2006 15:15:28 -0000 Original-Received: from 160.91.4.119 by sws1 (envelope-from , uid 49491) with qmail-scanner-1.25 (clamdscan: 0.83/743. spamassassin: 3.0.2. Clear:RC:0(160.91.4.119):SA:0(-2.6/5.0):. Processed in 0.88492 secs); 09 May 2006 15:15:28 -0000 X-Spam-Status: No, hits=-2.6 required=5.0 Original-Received: from emroute1.ornl.gov (160.91.4.119) by sws1.ornl.gov with SMTP; 9 May 2006 15:15:27 -0000 Original-Received: from emroute1.ornl.gov (localhost [127.0.0.1]) by emroute1.ornl.gov (PMDF V6.2-1x9 #31038) with ESMTP id <0IZ000CIW7PRIF@emroute1.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 09 May 2006 11:15:27 -0400 (EDT) Original-Received: from VIRUSCAN-DAEMON.emroute1.ornl.gov by emroute1.ornl.gov (PMDF V6.2-1x9 #31038) id <0IZ000J027PEJ2@emroute1.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 09 May 2006 11:15:26 -0400 (EDT) Original-Received: from mail82.messagelabs.com (mail82.messagelabs.com [195.245.231.67]) by emroute1.ornl.gov (PMDF V6.2-1x9 #31038) with SMTP id <0IZ000H4C7P4BK@emroute1.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 09 May 2006 11:15:14 -0400 (EDT) Original-Received: (qmail 9870 invoked from network); Tue, 09 May 2006 15:15:01 +0000 Original-Received: from outbound.kcl.ac.uk (HELO outbound.kcl.ac.uk) (137.73.2.214) by server-7.tower-82.messagelabs.com with AES256-SHA encrypted SMTP; Tue, 09 May 2006 15:15:01 +0000 Original-Received: from relay2.kcl.ac.uk ([137.73.2.210] helo=elder) by outbound.kcl.ac.uk outbound with esmtp (TLSv1:DHE-RSA-AES256-SHA:256) id 1FdTv3-0004gB-UY for tru64-unix-managers@ornl.gov; Tue, 09 May 2006 16:14:37 +0100 Original-Received: from amalthea.adm.kcl.ac.uk ([137.73.41.195]) by elder smtp with esmtp id 1FdTuw-0003th-D8; Tue, 09 May 2006 16:14:31 +0100 X-Originating-IP: [137.73.2.214] Original-To: "tru64-unix-managers@ornl. gov" X-Envelope-from: joe.evans@kcl.ac.uk User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on spam2.ornl.gov X-Spam-Level: X-Qmail-Scanner-MOVED-X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00 autolearn=ham version=3.1.1 X-VirusChecked: Checked X-Env-Sender: joe.evans@kcl.ac.uk X-Msg-Ref: server-7.tower-82.messagelabs.com!1147187700!48574185!1 X-StarScan-Version: 5.5.9.1; banners=-,-,- X-KCLSpamScore: 0 X-KCLRealSpamScore: 0.0 X-KCLZStatus: 0 X-KCLSpamReport: X-KCL-MailScanner: Found to be clean X-MailScanner-From: joe.evans@kcl.ac.uk Xref: news.gmane.org gmane.os.tru64.managers:8906 Archived-At: This one is difficult to summarise so I have put all the responses below for you to look at. Thanks to everyone that responded. Joe Evans ***************************************************************** Dear Managers, Does anyone know if you can expect performance degradation on a system if there are folders with a large number of files in them? In this case I am talking about 32,000 files. Tru64 5.1b Thanks, ********************************************** Ufs or advfs filessytem?? Advfs should be ok .. Ufs, not sure .. K ****************************************** Depends on the files and how they've been created. If you've got the frag file enabled in the domain and your files are relatively small in nature (or if they're larger but they *all* aren't on even 8Kb size boundaries, the frag file may cause you to see a performance degradation when you're accessing (for read/write operations) the files. "Fastest" way to fix this is to "backup" the data, create a new fileset with the frag file disabled (see the man page for the mkfset/chfset commands, believe it's "-o nofrag") and restore into this fileset. Also, could be you're running into file fragmentation issues (i.e. the files in the fileset as well as the frag file itself is fragmented and needs to be defragmented) which would compound the performance issues. "addvol/rmvol operation would most likely address this problem in the most expedient manner (and with the least impact to your production environment). Hth, // Thomas ********************************************************************** Hi, I'm pretty sure that On our old 5.1a machines we routinely had folders with over 100,000 files in them. I don't think we had any significant problems except 'ls' kinda hung up, but it'd come back after a while. :) Thanks, Rich. Rich Fox ************************************************************************** As is often the case, "It depends." If you're doing things like file name completion or file "globbing" (which require reading the whole directory), that will take a lot more time than it would in a small directory. If you're looking up a particular file, then AdvFS's directory structure makes that much quicker than UFS's linear scan, though once looked up, the file will be in the kernel's name cache and lookups will be faster while it remains cached. If the directories are mounted on other clients via NFS, you can bog down your whole network reading big directories so the impact can extend beyond the system with the big directories. -Ric Werme ******************************************************************************* I advise users not to put more than 1000 files in a single directory, although they rarely listen to me. :-) Once the number of files in a directory gets large, the main problem is that metadata operations on the directory entry itself can become slower, especially if the directory is served out over NFS, and multiple clients are trying to access it simultaneously. If the entire filesystem has very large numbers of files, you will find that backups are extremely slow, on the basis of the sheer number of inodes which need be backed up, especially if the files are small. If the files are very small (less than 8k) then performance will vary enormously dependent on whether the AdvFS fileset has the frag file turned on. If the frag file is on, performance will be slow for small files, but disk-efficient. If the frag file is off, performance will be faster, but it'll waste a lot of disk space, so you pays yer money and takes yer choice. The main disadvantage to the user of course, is that filename globbing stops working and you get things like "arg list too long" messages. Tim ******************************************************************************** Hi Joe, I've found that users with huge numbers of files in their accounts do experience a degradation when doing things like listing files and editing files. I think it is simply because they have so many files and the directory folders hit some kind of size limitation and become difficult to update or process quickly. Chris *********************************************************************************** Joe Evans, Technical Services Manager, Management Information Systems, King's College London, 57 Waterloo Road, London SE1 8WA Telephone:020 7848 3774