From: Bob Harris <harris@zk3.dec.com>
To: ericb@pobox.com (Eric Bennett)
Subject: Re: Limit on Number of Files in ADVFS?
Date: 1999/08/27 [thread overview]
Message-ID: <270819991028273393%harris@zk3.dec.com> (raw)
In-Reply-To: ericb-2708990307470001@x3066.resnet.cornell.edu
[[ This message was both posted and mailed: see
the "To," "Cc," and "Newsgroups" headers for details. ]]
In article <ericb-2708990307470001@x3066.resnet.cornell.edu>, Eric
Bennett <ericb@pobox.com> 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).
next prev parent reply other threads:[~1999-08-27 4:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-08-25 4:00 Limit on Number of Files in ADVFS? Eric Frey
1999-08-25 4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
1999-08-26 4:00 ` Bob Harris
[not found] ` <ericb-2708990307470001@x3066.resnet.cornell.edu>
1999-08-27 4:00 ` Bob Harris [this message]
1999-08-27 4:00 ` Serguei Patchkovskii
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox