public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* Question about logbsize default value
@ 2019-10-23  9:40 Gionatan Danti
  2019-10-24 21:50 ` Dave Chinner
  0 siblings, 1 reply; 7+ messages in thread
From: Gionatan Danti @ 2019-10-23  9:40 UTC (permalink / raw)
  To: linux-xfs; +Cc: g.danti

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@assyoma.it - info@assyoma.it
GPG public key ID: FF5F32A8

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-10-27 18:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-23  9:40 Question about logbsize default value Gionatan Danti
2019-10-24 21:50 ` Dave Chinner
2019-10-25  7:10   ` Gionatan Danti
2019-10-25 23:39     ` Dave Chinner
2019-10-26  9:54       ` Gionatan Danti
2019-10-26 21:59         ` Dave Chinner
2019-10-27 18:09           ` Gionatan Danti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox