From patchwork Sun Sep 23 19:24:32 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Monakhov X-Patchwork-Id: 186271 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 8133B2C0091 for ; Mon, 24 Sep 2012 05:24:47 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754029Ab2IWTYo (ORCPT ); Sun, 23 Sep 2012 15:24:44 -0400 Received: from mail-lb0-f174.google.com ([209.85.217.174]:54528 "EHLO mail-lb0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753853Ab2IWTYn (ORCPT ); Sun, 23 Sep 2012 15:24:43 -0400 Received: by lbbgj3 with SMTP id gj3so5850924lbb.19 for ; Sun, 23 Sep 2012 12:24:41 -0700 (PDT) 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=RFURmQRNR0LjcNFXNNqcUS++hHY4GMfYtLTaEf5G7nQ=; b=lxBCLiLYaJgjdIcrftfBiu66eAc4UIa/GZfDn6W+D3Iuwf3BMoUYwaBS/4j1hBppWb 9htjR9Wkf/z5UmIvRtJsYawbRuDmcCP9SyAl7fXmt0NTrt8oylkafACmDdG04rHrwUL7 rfJGjWJA4GfEnFnopt/U7DxP5aiVqFG3ZpHv1sIxVMDaUEBoH0cMC2RPiapL3Gq+kY43 2HrY4zC/9nrCYQUEG2EuySYx6PVOGkgabBM/gOA1SA5WAoisV40gY8AE1WBHJfG0oGKb dV9NmnS2cm85YKk6Mc966TBEb+eJcBnyrd6Ope+wMVbT5PzOvBNX85CmvWTvNWDNkGMj O1HQ== Received: by 10.112.84.105 with SMTP id x9mr3665246lby.92.1348428281603; Sun, 23 Sep 2012 12:24:41 -0700 (PDT) Received: from smtp.gmail.com (swsoft-msk-nat.sw.ru. [195.214.232.10]) by mx.google.com with ESMTPS id ey2sm2641704lbb.12.2012.09.23.12.24.40 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 23 Sep 2012 12:24:40 -0700 (PDT) From: Dmitry Monakhov To: linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org Cc: xfs@oss.sgi.com, hch@lst.de, 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> X-Mailer: git-send-email 1.7.7.6 In-Reply-To: <1348428276-13161-1-git-send-email-dmonakhov@openvz.org> References: <1348428276-13161-1-git-send-email-dmonakhov@openvz.org> Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@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