Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Formatting and Block Allocation Sizes

Formatting and Block Allocation Sizes
Thread Tools
Fresh-Faced Recruit
Join Date: Dec 2002
Location: The far northern expanses... Canada
Status: Offline
Reply With Quote
Jun 6, 2003, 08:56 AM
 
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
Reply With Quote
Jun 6, 2003, 09:01 AM
 
I'm pretty sure that pdisk will let you use 512 KB blocks.
     
Dedicated MacNNer
Join Date: Dec 2001
Location: Promised Land
Status: Offline
Reply With Quote
Jun 6, 2003, 05:36 PM
 
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
Reply With Quote
Jun 8, 2003, 06:36 AM
 
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
Reply With Quote
Jun 8, 2003, 11:03 AM
 
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
Reply With Quote
Jun 8, 2003, 01:25 PM
 
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
Reply With Quote
Jun 8, 2003, 02:52 PM
 
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
Reply With Quote
Jun 8, 2003, 05:00 PM
 

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
Reply With Quote
Jun 8, 2003, 08:22 PM
 
Depends. Why is it that you want to do this in the first place?
[vash:~] banana% killall killall
Terminated
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 11:28 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2