Hi,
I've been investigating this since I discovered abysmal performance on a samba share. The disk is a 1G WD10EARX with a ZFS dataset on it. I wiped the disk and tried the gnop trick to attempt to fool ZFS on the unpartitioned device into using 4k sectors but it would not stick (the ashift value remains at 9). So I gave up with trying to get ashift 12 and partitioned the disk with a gpt scheme and added a partition with:
Resulting in:
Does this ensure better performance? Does it eliminate or reduce crossing the boundaries on the 4k sectors? Performance has certainly improved but how much is not due to having reduced the amount of data and freshly restored it?
-Ian
I've been investigating this since I discovered abysmal performance on a samba share. The disk is a 1G WD10EARX with a ZFS dataset on it. I wiped the disk and tried the gnop trick to attempt to fool ZFS on the unpartitioned device into using 4k sectors but it would not stick (the ashift value remains at 9). So I gave up with trying to get ashift 12 and partitioned the disk with a gpt scheme and added a partition with:
# gpart add -t freebsd-zfs -a 4096 ada2
Resulting in:
Code:
[ian@serenity:~] gpart show ada2
=> 34 1953525101 ada2 GPT (931G)
34 6 - free - (3.0k)
40 1953525088 1 freebsd-zfs (931G)
1953525128 7 - free - (3.5k)
Does this ensure better performance? Does it eliminate or reduce crossing the boundaries on the 4k sectors? Performance has certainly improved but how much is not due to having reduced the amount of data and freshly restored it?
-Ian