xfs
[Top] [All Lists]

[PATCH] scale down 074 on lower end machines

To: xfs@xxxxxxxxxxx
Subject: [PATCH] scale down 074 on lower end machines
From: Christoph Hellwig <hch@xxxxxx>
Date: Thu, 15 May 2008 19:39:13 +0200
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.3.28i
074 takes ages to complete on my kvm test VM, but scaling it back to the
level used on IRIX makes it complete in slightly under 10 minutes.

I'm not sure if checking for UP vs SMP is the right way to go into slow
mode, but I couldn't think of anything better.


Signed-off-by: Christoph Hellwig <hch@xxxxxx>

Index: xfstests/074
===================================================================
RCS file: /cvs/xfs-cmds/xfstests/074,v
retrieving revision 1.7
diff -u -p -r1.7 074
--- xfstests/074        9 Nov 2005 02:49:08 -0000       1.7
+++ xfstests/074        15 May 2008 17:37:03 -0000
@@ -120,10 +120,17 @@ if [ $HOSTOS == "IRIX" ]; then 
         param_type="IRIX nondebug"
     fi
 elif [ $HOSTOS == "Linux" ]; then
-    numloops=10
-    numfiles=5
-    numchildren=3
-    param_type="Linux"
+    if uname -a | grep -q SMP; then
+        numloops=10
+        numfiles=5
+        numchildren=3
+        param_type="Linux SMP"
+    else
+        numloops=2
+        numfiles=3
+        numchildren=3
+        param_type="Linux UP"
+    fi
 else
     numloops=1
     numfiles=1


<Prev in Thread] Current Thread [Next in Thread>