From: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.)
Subject: Re: query on optimizing OSF/1
Date: 11 Jun 1994 02:49:47 GMT [thread overview]
Message-ID: <2tb8ob$39h@nntpd.lkg.dec.com> (raw)
In-Reply-To: 2ta3on$c9o@taco.cc.ncsu.edu
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
prev parent reply other threads:[~1994-06-11 2:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-06-10 16:18 query on optimizing OSF/1 ANDUKURI S MURTHY
1994-06-10 22:59 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
1994-06-11 2:49 ` Alan Rollow - Dr. File System's Home for Wayward Inodes. [this message]
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