From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Brewer, Edward" Newsgroups: gmane.os.tru64.managers Subject: Advice on structuring large numbers of files Date: Thu, 22 Aug 2002 17:03:48 -0400 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <7B386924C5CAD0428322085D0F0F766F0163B5C7@ODEXC4> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Trace: main.gmane.org 1030050187 9503 127.0.0.1 (22 Aug 2002 21:03:07 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 22 Aug 2002 21:03:07 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 17hz6e-0002Ss-00 for ; Thu, 22 Aug 2002 23:03:04 +0200 Original-Received: (qmail 2515 invoked by uid 5); 22 Aug 2002 21:04:12 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 2506 invoked by uid 49493); 22 Aug 2002 21:04:12 -0000 Original-Received: from BREWERE@OD.NIH.GOV by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.23. Clear:. Processed in 0.414634 secs); 22 Aug 2002 21:04:12 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 22 Aug 2002 21:04:12 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H1900BNWJUZQB@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 22 Aug 2002 17:04:11 -0400 (EDT) Original-Received: from ims2.hub.nih.gov (ims2.hub.nih.gov [128.231.90.112]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H1900L9TJUGMN@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 22 Aug 2002 17:03:53 -0400 (EDT) Original-Received: by ims2.hub.nih.gov with Internet Mail Service (5.5.2656.59) id ; Thu, 22 Aug 2002 17:03:46 -0400 Content-return: allowed Original-To: "'Tru64-Unix-Managers \(E-mail\)" X-Mailer: Internet Mail Service (5.5.2656.59) Xref: main.gmane.org gmane.os.tru64.managers:1450 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:1450 Admins and Guru's; The question was posed as to the best way to handle around 300,000-1,000,000 files in an ADVFS filesystem. Currently we have around 300,000 files in one directory. We expect growth to be steady and in the future we may push 1,000,000. Our current performance seems adequate, I have collect data on the disks for that domain and by all indication it seems fine ( I can give numbers or graphs if needed). The directory is rarely touched by users directly, instead an oracle B-file points to the files in this directory when users need the information. The files are not very large, around 10-250 MB in size and are accessed infrequently. Performing an ls or directory scan is a bit slow, but this is not usually done by a user. I was thinking that if we created 20 directories that where further divided into 12 more directories ( 20 years by 12 months) this would give enough depth to allow for efficient growth. 20x 12 = 240 directories, with an even distribution then around 1000-2000 per directory. Any future growth would mean 12 more directories a year. Any suggestions, or experience would be greatly experienced. Lee Brewer