 |
 |
Formatting and Block Allocation Sizes
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Dec 2002
Location: The far northern expanses... Canada
Status:
Offline
|
|
Hi,
I am looking to reformat my HDD (20GB) and want to drop my block allocation size from OS X's default of 4K to .5K; what I need to know is what is the best application to do this (I have FWB HDT and SpeedTools from Intech; but neither will allow me to reformat and also redefine the block allocation size). I have heard about Lacie's Silverlining application (used it under OS 9 a couple of years ago, but left it due to repeated problems with it's formatting and stability). Therefore does anyone have any suggestions?
Cheers,
BlackMacX
|
|
20" iMac (Intel)/2.1Ghz/1GB/250GB
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Jun 2000
Status:
Offline
|
|
I'm pretty sure that pdisk will let you use 512 KB blocks.
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Dec 2001
Location: Promised Land
Status:
Offline
|
|
Originally posted by blackmacx:
Hi,
I am looking to reformat my HDD (20GB) and want to drop my block allocation size from OS X's default of 4K to .5K; what I need to know is what is the best application to do this (I have FWB HDT and SpeedTools from Intech; but neither will allow me to reformat and also redefine the block allocation size). I have heard about Lacie's Silverlining application (used it under OS 9 a couple of years ago, but left it due to repeated problems with it's formatting and stability). Therefore does anyone have any suggestions?
Cheers,
BlackMacX
Don't do this unless you have a very good reason to. The best alloc. size is 4K because that matches the VM system page size of 4K. Since these match, disk txfr's are optimized. By lowering the block size, you will cause many more disk txfrs and may even cause the VM system to loose some performance.
|
|
G5 2.5 DP/2GB RAM/NVidia 6800 Ultra
PowerBook Al 1Ghz/768MB RAM
6gb Blue iPod Mini
|
| |
|
|
|
 |
|
 |
|
Admin Emeritus 
Join Date: Oct 1999
Location: Zurich, Switzerland
Status:
Offline
|
|
Reducing block size can significantly impact disk performance, increase fragmentation, and increase system memory usage (since the memory map for 0.5K blocks is 8 times as large as the map for 4K blocks).
Unless you have a very specific need to do this, don't. Just use the default.
tooki
|
|
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Jun 2001
Location: Northwest Ohio
Status:
Offline
|
|
Originally posted by bradoesch:
I'm pretty sure that pdisk will let you use 512 KB blocks.
No, it won't. I just looked at the man pages for both pdisk and fdisk, and neither one mentions allocation block size.
|
|
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: Jan 2002
Status:
Offline
|
|
Don't do this unless you have a very good reason to. The best alloc. size is 4K because that matches the VM system page size of 4K. Since these match, disk txfr's are optimized. By lowering the block size, you will cause many more disk txfrs and may even cause the VM system to loose some performance.
Reducing block size can significantly impact disk performance, increase fragmentation, and increase system memory usage (since the memory map for 0.5K blocks is 8 times as large as the map for 4K blocks).
So, does it mean that, say, an 8K alloc. size will double VM system page performance and produce half fragmentation and memory usage?
Vic 
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Mar 2000
Location: Ithaca, NY
Status:
Offline
|
|
Originally posted by Prijker:
So, does it mean that, say, an 8K alloc. size will double VM system page performance and produce half fragmentation and memory usage?
Hehe, unfortunately not. You get the best performance when the VM page size is equal to the block allocation size. If the blocks are smaller, that leads to more reads and potential fragmentation. If the blocks are too big, then you can often read more data than is needed and fill up memory, since you have to read at least 8K even if you only need 4K.
|
|
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: Jan 2002
Status:
Offline
|
|
So, does it mean that, say, an 8K alloc. size will double VM system page performance and produce half fragmentation and memory usage?
Hehe, unfortunately not. You get the best performance when the VM page size is equal to the block allocation size. If the blocks are smaller, that leads to more reads and potential fragmentation. If the blocks are too big, then you can often read more data than is needed and fill up memory, since you have to read at least 8K even if you only need 4K.
mmm, so, the best solution would be to increase the VM page size itself?
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: May 2002
Status:
Offline
|
|
Depends. Why is it that you want to do this in the first place?
|
|
[vash:~] banana% killall killall
Terminated
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|