I use a ramdisk to speed up a git repository with a lot (> 60k) of small (~200 bytes) files.
Is there a way to create a ramdisk with a smaller block size?
Executive summary: I don't believe this is possible, at least not for volumes formatted as HFS+.
My current understanding is that HFS+ chooses its file system block size (separate from the physical device block size) according to a fixed default allocation block size that cannot be manually overruled.
Discussions in other forums spanning from 2002 to 2011 ( CompGroups, MacRumors among others) suggest using newfs_hfs(8), which has a
I tried using
But when I examine the test volumes with
Noting that the end of the
It would appear that OS X 10.8 (and probably 10.7, and perhaps earlier versions) overrides whatever block size
One article I came across suggested using OS X's software-RAID utility to create a RAID mirror. Software RAID allows one to specify a RAID stripe size, but as this is generally geared towards improving throughput for large files rather than tiny ones, I believe the minimum RAID stripe size is 4KB - not useful for your purposes.