From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dmitry Monakhov Subject: [PATCH 2/6] xfstest: add configurable load factors Date: Sun, 23 Sep 2012 23:24:32 +0400 Message-ID: <1348428276-13161-2-git-send-email-dmonakhov@openvz.org> References: <1348428276-13161-1-git-send-email-dmonakhov@openvz.org> Cc: xfs@oss.sgi.com, hch@lst.de, Dmitry Monakhov To: linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org Return-path: In-Reply-To: <1348428276-13161-1-git-send-email-dmonakhov@openvz.org> Sender: linux-ext4-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org 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 --- common.config | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/common.config b/common.config index 25cddb4..a24b915 100644 --- a/common.config +++ b/common.config @@ -255,5 +255,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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id q8NJNR1t026975 for ; Sun, 23 Sep 2012 14:23:27 -0500 Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com [209.85.217.181]) by cuda.sgi.com with ESMTP id 81CAfNx0kM6GNbHK (version=TLSv1 cipher=RC4-SHA bits=128 verify=NO) for ; Sun, 23 Sep 2012 12:24:43 -0700 (PDT) Received: by lbbgg6 with SMTP id gg6so1076250lbb.26 for ; Sun, 23 Sep 2012 12:24:41 -0700 (PDT) From: Dmitry Monakhov Subject: [PATCH 2/6] xfstest: add configurable load factors Date: Sun, 23 Sep 2012 23:24:32 +0400 Message-Id: <1348428276-13161-2-git-send-email-dmonakhov@openvz.org> In-Reply-To: <1348428276-13161-1-git-send-email-dmonakhov@openvz.org> References: <1348428276-13161-1-git-send-email-dmonakhov@openvz.org> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: xfs-bounces@oss.sgi.com Errors-To: xfs-bounces@oss.sgi.com To: linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org Cc: Dmitry Monakhov , hch@lst.de, xfs@oss.sgi.com 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 --- common.config | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/common.config b/common.config index 25cddb4..a24b915 100644 --- a/common.config +++ b/common.config @@ -255,5 +255,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 _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs