xfs/042: reduce runtime of the test
authorDave Chinner <dchinner@redhat.com>
Mon, 21 Sep 2015 01:04:59 +0000 (11:04 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 21 Sep 2015 01:04:59 +0000 (11:04 +1000)
commit86c1b5588cabfb372521361bd3057e306790014f
tree26db98f262a7479e153a59ed3341ed45da2e4482
parent1bea79d6c10b43440f3d3315adb7997e3f70419e
xfs/042: reduce runtime of the test

xfs/042 is really an xfs_fsr test, and it only writes about 60MB of
data. however, because it is trying to write lots of data in ENOSPC
conditions, it can take a long time as XFS does flushes to maximise
space usage at ENOSPC. e.g. on a slow 1p VM:

 xfs/042 426s ... 425s

It takes a long time to write a small amount of data. To avoid this
slow flushing problem, create the fragmented files with fallocate()
rather than write(), which fails much faster as there is no dirty
data to flush before retrying the allocation and failing. THis
results in:

 xfs/042 425s ... 11s

A massive reduction in runtime, such that we can consider putting
xfs/042 into the quick group....

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/xfs/042
tests/xfs/042.out