From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,4107a31c6355119f,start X-Google-Attributes: gidf678f,public From: engj@u.washington.edu (Jimmy Eng) Subject: Question on big drives & many little files Date: 1999/10/11 Message-ID: <7ttbu5$5ii$1@nntp6.u.washington.edu>#1/1 X-Deja-AN: 535494276 X-Trace: nntp6.u.washington.edu 939668229 5714 (None) 140.142.17.37 Organization: University of Washington NNTP-Posting-User: engj Newsgroups: comp.unix.osf.misc X-Complaints-To: help@cac.washington.edu I'm interested in adding a large (36-50GB) drive or two to my Alpha running 4.0B. The goal is to obviously add a ton of storage with the problem being that the stored files are small (averaging less than 1K per file). I was told to bump up the # of inodes and descrease the block size when formatting and mounting the drive to most effectively use a large disk to store many small files. Reading the man page on newfs shows a -b block-size option to specify the block size of the filesystem but there's a note saying that the block size is fixed at 8KB. Can this be lowered to 1KB (i.e. is the note referring to a default setting)? If not, does this imply that I'll be wasting ~7KB for each small file that's stored? There's also a -f frag-size option for newfs which refers to the fragment size of the file system in bytes. What is this used for and how does it relate to block size and my problem? The -i #bytes/inode option defaults to 4096 bytes of data per each inode. Not having a real clue as to it's effects (other than knowing that lowering of this number increases the # of files that can be created in a partition), can someone recommend a value that I should use here? An inode for each 1024 bytes? I'm using ufs file systems and they're being exported to Alpha-Linux boxes. (Any issues with the exporting/re-mounting that I need to consider?) Thanks a ton for your assistance. I'm looking for any insight whatsover as well as advice on issues that I've haven't thought about but may be pertinent. - Jimmy, Software Engineer, University of Washington