Re: allocation block size
Re: allocation block size
- Subject: Re: allocation block size
- From: Brendan Younger <email@hidden>
- Date: Wed, 14 Nov 2007 15:05:40 -0600
On Nov 14, 2007, at 2:06 PM, Paul Wasmund wrote:
What is a simple way to get the allocation block size of a volume?
Paul Wasmund
The stat(2) syscall will give you a st_blksize field. Also,
CoreServices's FSGetVolumeInfo returns an FSVolumeInfo struct with a
blockSize field. If you're trying to optimize I/O performance, bear
in mind that nowadays it's better to make it easy on the VM system to
map dirty pages to disk. This means sending page-aligned data in
multiples of 4K. See <http://developer.apple.com/documentation/Performance/Conceptual/FileSystem/index.html?http://developer.apple.com/documentation/Performance/Conceptual/FileSystem/Articles/FilePerformance.html
>.
Brendan Younger
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden