| To: | linux-ext4@xxxxxxxxxxxxxxx, linux-fsdevel@xxxxxxxxxxxxxxx |
|---|---|
| Subject: | [PATCH 2/6] xfstest: add configurable load factors |
| From: | Dmitry Monakhov <dmonakhov@xxxxxxxxxx> |
| Date: | Mon, 24 Sep 2012 18:23:17 +0400 |
| Cc: | xfs@xxxxxxxxxxx, hch@xxxxxx, Dmitry Monakhov <dmonakhov@xxxxxxxxxx> |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=kxPyBF7PSzpcnMxsBH3ptxlydKfaSUPvCnVSDNs2+Dw=; b=RePldAtSMjhear9GQgWeb2DqEJWASfj7iAtgZOmt6AThndGeUYDGNlpyOhvai64e7n T9E9mOoCyKANszyigrFtXMVV+o3qo8VYC9ku7zRuSG5UIIjtwpanoDy7m+eR9R4SeCcg JILGV2evp/G1Gwk/BcmqYdt7S3ZxIC4NUBgtEYYAp6V0QyCDRmijH6hjZZX1BZ2fniuQ Jy59g7d52QszbTUq+/B/NTlhjVuRRxgLRxMCWb5GWqVRuw/QHvDAKx0X7YHJmCN7dFw9 E1Cqd0NklgxV5b56qsiZD1VoCoEbbhzGPu0wZr6qtpp9Qyt9aXg31qQyRmBZlVc8Y6cm yybA== |
| In-reply-to: | <1348496601-32637-1-git-send-email-dmonakhov@xxxxxxxxxx> |
| References: | <1348496601-32637-1-git-send-email-dmonakhov@xxxxxxxxxx> |
| Sender: | Dmitry Monakhov <rjevskiy@xxxxxxxxx> |
Most stress test has probable behaviour, the longer test run the
larger corner cases will be cover. It is reasonable to allow
user to provide some sort of system load factor.
This patch introduce two global variables
LOAD_FACTOR: Usually means factor number of running tasks
TIME_FACTOR: Usually means factor of run time, or number of operations
If not speficied both variables defined to 1, so original behaviour
preserved.
TODO: Change all stress tests to use this variables
Signed-off-by: Dmitry Monakhov <dmonakhov@xxxxxxxxxx>
---
common.config | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/common.config b/common.config
index d5c8956..cfa7bde 100644
--- a/common.config
+++ b/common.config
@@ -253,5 +253,13 @@ if [ ! -z "$SCRATCH_MNT" -a ! -d "$SCRATCH_MNT" ]; then
exit 1
fi
+if [ -z "$LOAD_FACTOR" ]; then
+ LOAD_FACTOR=1
+fi
+
+if [ -z "$TIME_FACTOR" ]; then
+ TIME_FACTOR=1
+fi
+
# make sure this script returns success
/bin/true
--
1.7.7.6
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 1/6] xfstests: add fio requirement V2, Dmitry Monakhov |
|---|---|
| Next by Date: | [PATCH 3/6] xfstest: allow fsstress to use load factor where appropriate, Dmitry Monakhov |
| Previous by Thread: | [PATCH 1/6] xfstests: add fio requirement V2, Dmitry Monakhov |
| Next by Thread: | Re: [PATCH 2/6] xfstest: add configurable load factors, Dave Chinner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |