public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] xfs: fix a couple of performance issues
@ 2020-05-12  2:59 Dave Chinner
  2020-05-12  2:59 ` [PATCH 1/2] xfs: separate read-only variables in struct xfs_mount Dave Chinner
  2020-05-12  2:59 ` [PATCH 2/2] xfs: convert m_active_trans counter to per-cpu Dave Chinner
  0 siblings, 2 replies; 11+ messages in thread
From: Dave Chinner @ 2020-05-12  2:59 UTC (permalink / raw)
  To: linux-xfs

Hi folks,

I was comparing profiles between two machines and realised there was
a big discrepancy between them on an unlink workload that was kinda
weird. I pulled the string, and realised the problem was cacheline
bouncing interfering with cache residency of read-only variables.
Hence the first patch.

The second patch came about from working out what variable was
causing the cacheline bouncing that wasn't showing up in the CPU
usage profiles as overhead in the code paths that were contending on
it. And for larger machines, converting the atomic variable to a
per-cpu counter provides a major performance win.

Thoughts, comments, etc all welcome.

-Dave.



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

end of thread, other threads:[~2020-05-13 17:18 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-12  2:59 [PATCH 0/2] xfs: fix a couple of performance issues Dave Chinner
2020-05-12  2:59 ` [PATCH 1/2] xfs: separate read-only variables in struct xfs_mount Dave Chinner
2020-05-12  8:14   ` Christoph Hellwig
2020-05-12  9:11     ` Dave Chinner
2020-05-12  2:59 ` [PATCH 2/2] xfs: convert m_active_trans counter to per-cpu Dave Chinner
2020-05-12  8:16   ` Christoph Hellwig
2020-05-12  9:06     ` Dave Chinner
2020-05-12 16:03   ` Darrick J. Wong
2020-05-12 21:39     ` Dave Chinner
2020-05-12 22:59       ` Darrick J. Wong
2020-05-13 17:17         ` Darrick J. Wong

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