From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,93de80f71a139b8f X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-06-10 19:51:06 PST Path: nntp.gmd.de!Germany.EU.net!EU.net!uunet!decwrl!pa.dec.com!nntpd.lkg.dec.com!nabeth.cxo.dec.com!alan From: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) Newsgroups: comp.unix.osf.osf1 Subject: Re: query on optimizing OSF/1 Date: 11 Jun 1994 02:49:47 GMT Organization: Digital Equipment Corporation Distribution: world Message-ID: <2tb8ob$39h@nntpd.lkg.dec.com> References: <2ta3on$c9o@taco.cc.ncsu.edu> Reply-To: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) NNTP-Posting-Host: nabeth.cxo.dec.com In article <2ta3on$c9o@taco.cc.ncsu.edu>, asmurthy@ds31.tx.ncsu.edu (ANDUKURI S MURTHY) writes: > >How can we optimize the OSF/1 (Rev 1.3) file system to store files that are on >average 110KB in size? Is there a way to change the 8K default block size? >Changing the block size in /etc/disktab or with newfs -b does not work. > >With 8K block size, 110 KBytes files are taking 10% additional disk space. For >applications that need large storage space(400GB), this is a high penalty to >pay! Some things you may want to look at... (assuming you're using UFS). Since you know the space used by each file you can estimate how many of them will fit on a disk of particular size. When creating the file system, adjust the bytes per inode accordingly. Without other impediments to the default, newfs will like to create space for over one million inodes on a 2 GB disk. You can fit only about 19,000 files of 110 KB on that same disk. Not allocating those million inodes can save you some space (around 100 MB). Allow for how UFS will want to allocate big files in cylinder groups. You may want to organize the files in a way that is compatible with how UFS is going to place the files. If the size of a file is larger or close to the amount of memory you have and you access the files sequentially, either: 1. Reduce maxubcpercent. 2. Use mmap(2) and company to read the files. Left to itself the OSF buffer cache likes to use all of free memory for cacheing a file. If you *know* the file won't fit or that keeping large parts of the file in memory isn't useful, you can reduce the amount of memory that the Unified Buffer Cache will try to use. This will leave enough for effective read-ahead by the file system, but not cache so much that it takes away memory may want for something else. >------------------------------------------------------------------------------ > >any suggestions, to me (asmurthy@tx.ncsu.edu) >or to my friend (srinivas@mcenroe.printrak.com) >or on the net, will be greately appreciated. > >thanks in advance >murthy > -- Alan Rollow alan@nabeth.cxo.dec.com