* query on optimizing OSF/1
@ 1994-06-10 16:18 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.
0 siblings, 2 replies; 3+ messages in thread
From: ANDUKURI S MURTHY @ 1994-06-10 16:18 UTC (permalink / raw)
hi, i am posting this for a frine of mine, who does not have access to internet.
-------------------------------------------------------------------------------
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!
------------------------------------------------------------------------------
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: query on optimizing OSF/1
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.
1 sibling, 0 replies; 3+ messages in thread
From: Alan Rollow - Dr. File System's Home for Wayward Inodes. @ 1994-06-10 22:59 UTC (permalink / raw)
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!
8 KB is the only block size supported by UFS. I think it is also the
only block size supported by the Advanced File System. ULTRIX supported
a 4 KB block, but would have wasted the same amount of space. I also
have wonder where you get the 10% number.
A 110 KB file will use 13 3/4 8 KB blocks. Since the file system will
want to allocate full 8 KB blocks at that point, an extra 2 KB per file
will be allocated. 2 KB out of 110 KB is 1.82% not 10%.
If you are thinking of the 10% reserved space, that has nothing to
do with the block size. You can also change that with tunefs(8).
If your data is read-mostly, then careful creation of the file
system will probably let you lower it to a smaller value.
>------------------------------------------------------------------------------
>
>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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: query on optimizing OSF/1
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.
1 sibling, 0 replies; 3+ messages in thread
From: Alan Rollow - Dr. File System's Home for Wayward Inodes. @ 1994-06-11 2:49 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1994-06-11 2:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox