linux/fs/xfs/quota
Dave Chinner dcd79a1423 xfs: don't use vfs writeback for pure metadata modifications
Under heavy multi-way parallel create workloads, the VFS struggles
to write back all the inodes that have been changed in age order.
The bdi flusher thread becomes CPU bound, spending 85% of it's time
in the VFS code, mostly traversing the superblock dirty inode list
to separate dirty inodes old enough to flush.

We already keep an index of all metadata changes in age order - in
the AIL - and continued log pressure will do age ordered writeback
without any extra overhead at all. If there is no pressure on the
log, the xfssyncd will periodically write back metadata in ascending
disk address offset order so will be very efficient.

Hence we can stop marking VFS inodes dirty during transaction commit
or when changing timestamps during transactions. This will keep the
inodes in the superblock dirty list to those containing data or
unlogged metadata changes.

However, the timstamp changes are slightly more complex than this -
there are a couple of places that do unlogged updates of the
timestamps, and the VFS need to be informed of these. Hence add a
new function xfs_trans_ichgtime() for transactional changes,
and leave xfs_ichgtime() for the non-transactional changes.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Alex Elder <aelder@sgi.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
2010-10-18 15:07:45 -05:00
..
xfs_dquot.c xfs: stop using xfs_qm_dqtobp in xfs_qm_dqflush 2010-10-18 15:07:37 -05:00
xfs_dquot.h xfs: remove xfs_dqmarker 2010-05-19 09:58:11 -05:00
xfs_dquot_item.c xfs: fix the xfs_log_iovec i_addr type 2010-07-26 13:16:36 -05:00
xfs_dquot_item.h xfs: Don't issue buffer IO direct from AIL push V2 2010-02-02 10:13:42 +11:00
xfs_qm.c xfs: simplify xfs_qm_dqusage_adjust 2010-10-18 15:07:36 -05:00
xfs_qm.h xfs: convert the dquot free list to use list heads 2010-05-19 09:58:11 -05:00
xfs_qm_bhv.c xfs: remove unneeded #include statements 2010-07-26 13:16:33 -05:00
xfs_qm_stats.c xfs: remove unneeded #include statements 2010-07-26 13:16:33 -05:00
xfs_qm_stats.h [XFS] Replace __inline with inline 2008-04-18 11:51:15 +10:00
xfs_qm_syscalls.c xfs: don't use vfs writeback for pure metadata modifications 2010-10-18 15:07:45 -05:00
xfs_quota_priv.h xfs: remove a few macro indirections in the quota code 2010-05-19 09:58:15 -05:00
xfs_trans_dquot.c xfs: simplify log item descriptor tracking 2010-07-26 13:16:34 -05:00