Skip to contentSkip to conversation

TAKE 972759 - Make xfs_ail_check check less by default

DISCUSSION David Chinner 1 participant 1 message Jan 18, 2008

lore
Share & tools
lore
#0 lore raw

Make xfs_ail_check check less by default

Checking the entire AIL on every insert and remove is prohibitively expensive - the sustained sequntial create rate on a single disk drops from about 1800/s to 60/s because of this checking resulting in the xfslogd becoming cpu bound.

By default on debug builds, only check the next and previous entries in the list to ensure they are ordered correctly. If you really want, define XFS_TRANS_DEBUG to use the old behaviour.

Date:  Fri Jan 18 17:59:29 AEDT 2008
Workarea:  chook.melbourne.sgi.com:/build/dgc/isms/2.6.x-xfs
Inspected by:  [email protected]

The following file(s) were checked into:
longdrop.melbourne.sgi.com:/isms/linux/2.6.x-xfs-melb

Modid: xfs-linux-melb:xfs-kern:30372a fs/xfs/xfs_trans_ail.c - 1.84 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_trans_ail.c.diff?r1=text&tr1=1.84&r2=text&tr2=1.83&f=h
- Make exhaustive AIL checking only occur when XFS_TRANS_DEBUG is defined to prevent excessive performance loss on normal debug kernels.