public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xfstests: 068: run fsstress in read/write mode
@ 2012-02-07 17:29 Eric Sandeen
  2012-02-08  4:14 ` Dave Chinner
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Sandeen @ 2012-02-07 17:29 UTC (permalink / raw)
  To: xfs-oss, Jan Kara

Jan Kara was testing filesystem freeze, and was consistently locking
up, although my tests of 068 were passing.  He pointed out that
he was running in read/write mode, and it was atime updates causing
the trouble.  Sure enough, dropping "-w" from fsstress locked me up
too.  Change this so we get better (and more realistic) coverage.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
cc: Jan Kara <jack@suse.cz>
---


diff --git a/068 b/068
index 6f08f18..b15409e 100755
--- a/068
+++ b/068
@@ -79,8 +79,9 @@ touch $tmp.running
     nops=200
     while [ -f "$tmp.running" ]
       do
-      #	-w ensures that the only ops are ones which cause write I/O
-      $FSSTRESS_PROG -d $STRESS_DIR -w -p $procs -n $nops $FSSTRESS_AVOID \
+      # We do both read & write IO - not only is this more realistic,
+      # but it also potentially tests atime updates
+      $FSSTRESS_PROG -d $STRESS_DIR -p $procs -n $nops $FSSTRESS_AVOID \
 	  > /dev/null 2>&1
     done
 


_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

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

* Re: [PATCH] xfstests: 068: run fsstress in read/write mode
  2012-02-07 17:29 [PATCH] xfstests: 068: run fsstress in read/write mode Eric Sandeen
@ 2012-02-08  4:14 ` Dave Chinner
  0 siblings, 0 replies; 2+ messages in thread
From: Dave Chinner @ 2012-02-08  4:14 UTC (permalink / raw)
  To: Eric Sandeen; +Cc: Jan Kara, xfs-oss

On Tue, Feb 07, 2012 at 11:29:44AM -0600, Eric Sandeen wrote:
> Jan Kara was testing filesystem freeze, and was consistently locking
> up, although my tests of 068 were passing.  He pointed out that
> he was running in read/write mode, and it was atime updates causing
> the trouble.  Sure enough, dropping "-w" from fsstress locked me up
> too.  Change this so we get better (and more realistic) coverage.

Good idea.

Reviewed-by: Dave Chinner <dchinner@redhat.com>

-- 
Dave Chinner
david@fromorbit.com

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

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

end of thread, other threads:[~2012-02-08  4:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-07 17:29 [PATCH] xfstests: 068: run fsstress in read/write mode Eric Sandeen
2012-02-08  4:14 ` Dave Chinner

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