From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,68f41f9d7cd9df45 X-Google-Attributes: gidfee84,public From: Bob Harris Subject: Re: Limit on Number of Files in ADVFS? Date: 1999/08/27 Message-ID: <270819991028273393%harris@zk3.dec.com>#1/1 X-Deja-AN: 518049546 Content-Transfer-Encoding: 8bit References: <7q1a1r$32c$1@fddinewz.oit.unc.edu> <260819990946362558%harris@zk3.dec.com> To: ericb@pobox.com (Eric Bennett) Posted-And-Mailed: yes Content-Type: text/plain; charset=ISO-8859-1 Organization: Digital Equipment Corporation, Palo Alto, CA, USA Mime-Version: 1.0 User-Agent: YA-NewsWatcher/4.2.3 Newsgroups: comp.unix.osf.osf1 [[ This message was both posted and mailed: see the "To," "Cc," and "Newsgroups" headers for details. ]] In article , Eric Bennett wrote: >The mkfdmn man page for 4.0E (as taken from the above URL) includes the >following: > >http://www.unix.digital.com/faqs/publications/base_doc/DOCUMENTATION/V40E_HTML/ >MAN/MAN8/0197____.HTM >===== > If you make a file domain using the -p or -x flags to increase the BMT > extent allocations, you must use the same flag with the same number of > pages when you add a volume to the file domain with the addvol command. >===== > > >This implies that it's not safe to have multiple volumes in a domain with >different BMT extent allocation values. If that's true, is your above >suggestion likely to cause problems? The BMT on each volume is independent of the BMT on other volumes in the same domain. AdvFS doesn't care if one is larger or smaller than the others. For example, if you create a multi-volume domain without any -p or -x options (BMT starts out with about 2 pages on each volume), then create 1 file which is the size of one of the volume, AdvFS may place that file on one of the volumes and use just enough BMT space on that volume to map that file (BMT will most likely not grow beyond its initial 2 pages). Now create 1000's of smaller files and AdvFS will place them on the other volumes in the domain, and since more metadata will be needed to map those files the BMT's on those other volumes will grow accordingly. AdvFS doesn't care. Also consider the case of a domain with different sized disks. For example a 1GB RZ26 and a 4GB RZ29. If your file usage is a sane mix of small and medium sized files, you would expect that the RZ29 to have 4 times as many files on it as the RZ26, and would need a BMT that was 4 times larger than the RZ26. So it wouldn't make sense to size the BMT on the RZ26 to be the same size as the RZ29. That would either make the RZ29's BMT too small or waste space on the RZ26. My only guess about the man page is that when it was written the writer was thinking about a domain with equal sized disks that expected to get lots of small files, and if a -p option was good for the first volume, then it would be good for the next volume, _AND_ if you used a -p value too small on any added volumes, that volume may run out of BMT space and cause trouble for the entire volume. When the -p option was invented, domains with lots of small files (news servers for example) were what was running into this problem of BMTs becoming too fragmented, so it is possible that was the thinking at the time. I don't know, I wasn't there. The bottom line when it comes to using the -p option is that if you have a real file system you should use sys_check to get the sizes of the existing BMTs. Use the existing values of the BMTs on the volumes in the domain along with the number of current files in the to make an educated estimate of what the ultimate BMT size will be when you finish filling up the domain. Equal sized volumes make this easier. However, creating a new domain on a v4.0d or higher version of Tru64 UNIX should minimize the need to get -p exactly right (or even need it at all), and v5.0 will eliminate the need altogether (in fact the man page for mkfdmn in v5.0 says -p and -x are being retired in a future release, because they are no longer needed).