* Limit on Number of Files in ADVFS? @ 1999-08-25 4:00 Eric Frey 1999-08-25 4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes. 1999-08-26 4:00 ` Bob Harris 0 siblings, 2 replies; 5+ messages in thread From: Eric Frey @ 1999-08-25 4:00 UTC (permalink / raw) I have a 50 gb disk with a single advfs fileset on it and am storing lots of relatively small files on it. I have not file or disk size quotes set. However, I have found that when I get ~404000 files on it, I can create no more files despite the fact that I have some diskpace (~5 gb) left. I can find no place where this mentioned or can be set or changed. Is this correct? Would it work to create another fset on the same fdmn? Thanks in advance. ======================================================================= Eric C. Frey Assistant Professor Department of Biomedical Engineering and Department of Radiology The University of North Carolina ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Limit on Number of Files in ADVFS? 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 1 sibling, 0 replies; 5+ messages in thread From: Alan Rollow - Dr. File System's Home for Wayward Inodes. @ 1999-08-25 4:00 UTC (permalink / raw) In article <7q1a1r$32c$1@fddinewz.oit.unc.edu>, frey@dove.bme.unc.edu (Eric Frey) writes: >I have a 50 gb disk with a single advfs fileset on it and am storing lots >of relatively small files on it. I have not file or disk size quotes set. >However, I have found that when I get ~404000 files on it, I can create no >more files despite the fact that I have some diskpace (~5 gb) left. I can >find no place where this mentioned or can be set or changed. Is this correct? I think the two most likely limits on the number of files that AdvFS can create are space needed for file meta-data and the size of the tag value/index. Since AdvFS has to pretend that it uses inodes for the stat(2) system call, this last is probably a 32 bit value and limited to 2,147,483,647 or 4,294,967,296 (with some values reserved probably). If AdvFS could use any old page for metadata, the number of files would be limited by the leftover space and the amount of space needed for each file. However, it isn't quite that simple. AdvFS allocates file meta-data space dynamically. One of classic problems for people running news servers is that when it extends this space for new files, the space has to be contiguous. Since News quickly fragments the free space, a common problem is the extension for new files fails because there isn't enough contiguous space. The other common problem related to this is that the particular data structure apparently has a limited number of extents available. When all the extents are used, it isn't possible to allocate more space for file meta-data. If you were creating the files all at once or files don't tend to be deleted, I'd guess that the limited number of extents might be the problem. If the file creations have happened over time and files have been deleted as other files have been created, then there might simply not be enough contiguous space. You can use defragment for the fragmented free space side of the problem. I don't know whether it conbines extents for the other part of the problem. Some time in the V4 version stream, defragment was included in the base system without the need for a license. >Would it work to create another fset on the same fdmn? Thanks in advance. I don't know whether the particular data structure are per-domain or per-fileset. If per-domain a new file set probably wouldn't help. A new volume might, but defragmentation is probably the best choice. > > > >======================================================================= >Eric C. Frey >Assistant Professor >Department of Biomedical Engineering and Department of Radiology >The University of North Carolina > -- Alan Rollow alan@nabeth.cxo.dec.com ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Limit on Number of Files in ADVFS? 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> 1 sibling, 1 reply; 5+ messages in thread From: Bob Harris @ 1999-08-26 4:00 UTC (permalink / raw) To: Eric Frey [[ This message was both posted and mailed: see the "To," "Cc," and "Newsgroups" headers for details. ]] In article <7q1a1r$32c$1@fddinewz.oit.unc.edu>, Eric Frey <frey@dove.bme.unc.edu> wrote: >I have a 50 gb disk with a single advfs fileset on it and am storing lots >of relatively small files on it. I have not file or disk size quotes set. >However, I have found that when I get ~404000 files on it, I can create no >more files despite the fact that I have some diskpace (~5 gb) left. I can >find no place where this mentioned or can be set or changed. Is this correct? >Would it work to create another fset on the same fdmn? Thanks in advance. I suspect that your AdvFS domain was created before Tru64 UNIX v4.0d. The most likely problem is that the BMT has become so fragmented that it can no longer be extended. The BMT is the only AdvFS data structure that has a limit on the number of extents it can have. The BMT is also where all the metadata for files is stored. If you can not grow the BMT then you can not create new files. In v4.0d changes were made to the way storage was allocated on newly created domains or on new volumes added to existing domains. This change helps keep the BMT from becoming fragmented so that it does not run out of extend map entries. In the next major release (v5.0) the BMT expansion limit was totally eliminated. What can you do today to get around the problem. The answer depends on how your system is configured. Since I do not know that I will have to throw out some general ideas. First I would suggest running the sys_check utility which will be able to verify that a full BMT is the problem. <ftp://ftp.digital.com/pub/DEC/IAS/sys_check/sys_check.html> First before doing anything, I would _STRONGLY_ suggest that if your data is valuable to you, that you make sure you have a good backup before messing around with your domain. Havng once been a System Administrator, I know that Murphy's Laws are real, and things happen that no one ever expects. If you can upgrade to v4.0d or a later version, it would help minimize the problem in the future. You will still have to perform the following work arounds, but at least it should not happen again using v4.0d or newer (famous last words :-) If your AdvFS domain consists of a single 50GB volume, then unless you have a spare 50GB the best solution would be to backup the data, create new domain using the mkfdmn -p and -x options, and then restore your data to the new domain. The -p option is the most important. The best way to figure out what value you should use is to look at the sys_check output and use the -p option to pre-allocate at least as much BMT storage as you are already using, plus some additional pages to account for the additional files you expect to create. You should be able to find out more about the -p and -x options in the mkfdmn and addvol man pages. There is also information about using the -p and -x options in the release notes. You should be able to find a copy of this documenation at the following URL: <http://www.unix.digital.com/faqs/publications/pub_page/doc_list.html> If your 50GB domain is composed of a bunch of smaller volumes, then you could use addvol -p to add a spare empty volume. Then use rmvol to remove an existing older volume. This will force the system to migrate the data of the removed volume to the other volumes which mostly means it will go to the new volume. Since this new volume was added with a -p option calculated to handle the storage needs of your domain it should not have a BMT problem. Now you can add the just removed volume back into the domain with a -p option and remove another of the older volumes. Repeat the addvol/rmvol sequence until all the old volumes have been cycled out and put back in with newer -p options calculated to handle your needs. This sequence works because each volume of a domain has its own BMT. Note: It maybe necessary to delete a few files in order to free up a few BMT Mcells so that the rmvol has some wiggle room to do its job. Good luck. ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <ericb-2708990307470001@x3066.resnet.cornell.edu>]
* Re: Limit on Number of Files in ADVFS? [not found] ` <ericb-2708990307470001@x3066.resnet.cornell.edu> @ 1999-08-27 4:00 ` Bob Harris 1999-08-27 4:00 ` Serguei Patchkovskii 1 sibling, 0 replies; 5+ messages in thread From: Bob Harris @ 1999-08-27 4:00 UTC (permalink / raw) To: Eric Bennett [[ 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). ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Limit on Number of Files in ADVFS? [not found] ` <ericb-2708990307470001@x3066.resnet.cornell.edu> 1999-08-27 4:00 ` Bob Harris @ 1999-08-27 4:00 ` Serguei Patchkovskii 1 sibling, 0 replies; 5+ messages in thread From: Serguei Patchkovskii @ 1999-08-27 4:00 UTC (permalink / raw) Eric Bennett (ericb@pobox.com) wrote: : ===== : 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. Of course, the addvol manual page flatly contradicts this by making the prescription from the mkfdmn manual page a *tuning guideline* rather than a rigid rule: ... To get the maximum benefit from increasing the number of metadata table extent pages, use the same number of pages when adding a volume with the addvol command as was assigned when the domain was created with the mkfdmn command. ... Regards, /Serge.P -- home page: http://www.cobalt.chem.ucalgary.ca/ps/ ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1999-08-27 4:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
1999-08-27 4:00 ` Serguei Patchkovskii
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox