From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,fc318da4fc43d986 X-Google-Attributes: gidfee84,public From: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) Subject: Re: Which file system Date: 1996/09/04 Message-ID: <50kefu$ds9@nntpd2.cxo.dec.com>#1/1 X-Deja-AN: 178471854 distribution: world references: <01bb96a6$f4a4d000$99f1acce@NONE.sympatico.ca> <322A1A4E.2465@cao.mts.dec.com> <50hmbu$f3n@decaxp.harvard.edu> organization: Digital Equipment Corporation reply-to: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) newsgroups: comp.unix.osf.osf1 In article <50hmbu$f3n@decaxp.harvard.edu>, ngeorge@scsun1.harvard.edu (Nikos George) writes: > >>>AdvFS is much more flexible than UFS, and doesn't need fscking [sic]. >> >>But if you're planning to use the file-sys as a news-server, use UFS. > >Can you tell me why not, or point me to a document that explains it??? I don't know of any place that reasonably documents then, but it somewhat widely known. The Advanced File System dynamically allocates per-file data structures expanding the space needed for these tables as necessary. But, there are two constraints on space for this table; 1. A new extent to the table must be contiguous. 2. There are a limited number of extents allowed. Fortunately, the extent size is variable. The -x option of addvol and mkfdmn should describe the feature in some detail and various versions of the release notes have minimally documented the problem. But, in order to support a very large number of files, a very large extent size must be used. As the extent size gets larger, it becomes harder to find the necessary amount of contiguous space. Under the file creation/deletion load caused by News, the free space is very quickly fragmented and large extents are harder than usual to find. Regular running of defragment may partly solve the problem. Even though a file system may appear to have a large amount of free space, an attempt to extend the table of per-file data structures could fail because there isn't enough contiguous space. Even if there is, it could also fail, because the last extent has been used. Another work-around to the problem is to pre-create a large number of empty files and then delete them. This will extend the table while it is easy to allocate the space. It also takes a long time and there may still be surprises left. A file system shouldn't have surprises. With UFS, you can tell in advance how many files can be stored and adjust the file system creation parameters to ensure you have enough. You know when you're going to run out and if you're willing to waste some space, you can arrange so that you can't run out of inodes. >/Nikos > -- Alan Rollow alan@nabeth.cxo.dec.com