Jan Engelhardt wrote:
I had something like that in the back of the head, but all of - xfs block sizes 512, 1024, 2048, 4096 - ext4 block sizes 1024, 2048, 4096 - btrfs block size 4096 ran your test program well.
----- The block size != the ideal I/O size. Block size is the *minimum* I/O size But using the stat -c "%o" call on my mounted partitions, I see:
mount|grep '^\s*/.*on /.*'|sed 's/^\s*// ;s/on //'|sort|uniq|while read dev mp rest do printf "%10d %40s %s\n" "$(sudo stat -c "%o" "$mp")" "$mp" "$dev" done|sort -n 1024 /net /etc/auto.net 1024 /smb /etc/auto.smb 1024 /misc /etc/auto.misc 1024 /homes /etc/auto.homes 4096 / /dev/sdc1 4096 /home/.snapdir/@GMT-2013.08.12-04.07.02 /dev/HnS/Home-2013.08.12-04.07.02 4096 /home/.snapdir/@GMT-2013.08.22-03.52.42 /dev/HnS/Home-2013.08.22-03.52.42 4096 /home/.snapdir/@GMT-2013.08.24-04.07.03 /dev/HnS/Home-2013.08.24-04.07.03 4096 /home/.snapdir/@GMT-2013.08.26-04.07.02 /dev/HnS/Home-2013.08.26-04.07.02 4096 /home/.snapdir/@GMT-2013.08.28-04.07.02 /dev/HnS/Home-2013.08.28-04.07.02 4096 /home/.snapdir/@GMT-2013.08.29-04.07.02 /dev/HnS/Home-2013.08.29-04.07.02 4096 /home/.snapdir/@GMT-2013.08.30-04.07.03 /dev/HnS/Home-2013.08.30-04.07.03 4096 /home/.snapdir/@GMT-2013.08.31-04.07.04 /dev/HnS/Home-2013.08.31-04.07.04 4096 /home/.snapdir/@GMT-2013.09.02-04.07.10 /dev/HnS/Home-2013.09.02-04.07.10 4096 /home/.snapdir/@GMT-2013.09.03-04.07.04 /dev/HnS/Home-2013.09.03-04.07.04 4096 /home/.snapdir/@GMT-2013.09.04-04.07.03 /dev/HnS/Home-2013.09.04-04.07.03 4096 /home/.snapdir/@GMT-2013.09.06-04.07.03 /dev/HnS/Home-2013.09.06-04.07.03 65536 /usr /dev/sdc6 131072 /tmp /dev/sdc2 131072 /var /dev/sdc2 131072 /Nroot /dev/sdc8 131072 /Nroot/var /dev/sdc9 ------non power of 2: 655360 /Media /dev/Media/Media 655360 /backups/Media /dev/HnS/Media_Back 655360 /var/cache/squid /dev/HnS/Squid_Cache 786432 /home /dev/HnS/Home 786432 /Share /dev/HnS/Share 786432 /root2 /dev/HnS/Sys 786432 /backups /dev/Backups/Backups 786432 /home/Win /dev/HnS/Win 786432 /home.diff /dev/HnS/Home.diff 786432 /root2/var /dev/HnS/Sysvar 786432 /usr/share /dev/HnS/Home 786432 /root2/boot /dev/HnS/Sysboot ----(power of 2) 2097152 /boot /dev/sdc3'
The above figures come from a combination of how the disk is formatted, as well as mount options (like for /boot my allocsize=2M so the images won't be as likely to fragment. So for xfs_info on my /home partition:
meta-data=/dev/mapper/HnS-Home isize=256 agcount=4, agsize=67108864 blks = sectsz=512 attr=2 data = bsize=4096 blocks=268435456, imaxpct=5 = sunit=16 swidth=192 blks ********************** naming =version 2 bsize=4096 ascii-ci=0 log =internal bsize=4096 blocks=32768, version=2 = sectsz=512 sunit=16 blks, lazy-count=1 realtime =none extsz=4096 blocks=0, rtextents=0 The ***** line is where it is getting the idea i/o size. When you created your RAID disks, I know XFS has params for you to specify the Sunit size and it's width -- so you can have the I/O's lined up with the HW. Did you specify a size & width? Do the other Filesystems also have the ability to specify the HW RAID sizes? -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org