Question about logbsize default value

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi list,
on both the mount man page and the doc here [1] I read that when the underlying RAID stripe unit is bigger than 256k, the log buffer size (logbsize) will be set at 32k by default.

As in my tests (on top of software RAID 10 with 512k chunks) it seems that using logbsize=256k helps in metadata-heavy workload, I wonder why the default is to set such a small log buffer size.

For example, given the following array:

md126 : active raid10 sda1[3] sdb1[1] sdc1[0] sdd1[2]
      268439552 blocks super 1.2 512K chunks 2 near-copies [4/4] [UUUU]
      bitmap: 1/3 pages [4KB], 65536KB chunk

running "fs_mark -n 1000000 -k -S 0 -D 1000 -N 1000 -s 16384 -d /mnt/xfs/" shows the following results:

32k  logbsize (default, due to 512k chunk size): 3027.4 files/sec
256k logbsize (manually specified during mount): 4768.4 files/sec

I would naively think that logbsize=256k would be a better default. Am I missing something?

[1] https://git.kernel.org/pub/scm/fs/xfs/xfs-documentation.git/tree/admin/XFS_Performance_Tuning/filesystem_tunables.asciidoc#n322

--
Danti Gionatan
Supporto Tecnico
Assyoma S.r.l. - www.assyoma.it
email: g.danti@xxxxxxxxxx - info@xxxxxxxxxx
GPG public key ID: FF5F32A8



[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux