Re: [PATCH] fstest: CrashMonkey tests ported to xfstest

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]



On Tue, Nov 06, 2018 at 06:15:36PM -0500, Theodore Y. Ts'o wrote:
> On Mon, Nov 05, 2018 at 02:16:57PM -0600, Jayashree Mohan wrote:
> > 
> > I believe that to _scratch_mkfs, I must first _cleanup dm_flakey. If I replace the above snippet by 
> > _cleanup
> > _scratch_mkfs
> > _init_flakey
> > 
> > The time taken for the test goes up by around 10 seconds (due to mkfs maybe). So I thought it was sufficient to remove the working directory.
> 
> Can you try adding _check_scratch_fs after each test case?  Yes, it

_check_scratch_fs now runs xfs_scrub on XFS as well as xfs_repair,
so it's actually quite expensive.

The whole point of aggregating all these tests into one fstest is to
avoid the overhead of running _check_scratch_fs after every single
test that are /extremely unlikely/ to fail on existing filesystems.

> Also, how big does the file system have to be?  I wonder if we can
> speed things up if a ramdisk is used as the backing device for
> dm-flakey.

I already run fstests on pmem devices for fast iteration of the
entire test suite. The slowest part of the test suite for quick
tests is still the filesystem checking between tests. So putting
dm-flakey on a ramdisk doesn't help anything here.

I also run fstests on memory constrained VMs, where there isn't ram
to add a ramdisk for random stuff like this. Then all the dm-flakey
tests either wont run or fail due to OOM-kills.

Cheers,

Dave.
-- 
Dave Chinner
david@xxxxxxxxxxxxx



[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux