From patchwork Fri Jan 22 16:34:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Khoronzhuk X-Patchwork-Id: 60170 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp793029lbb; Fri, 22 Jan 2016 08:34:58 -0800 (PST) X-Received: by 10.55.73.199 with SMTP id w190mr4719965qka.77.1453480498690; Fri, 22 Jan 2016 08:34:58 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id k9si7873155qge.20.2016.01.22.08.34.56; Fri, 22 Jan 2016 08:34:58 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 1E57F618D7; Fri, 22 Jan 2016 16:34:56 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=bdADACgu; dkim-adsp=none (unprotected policy); dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id E4B79617E9; Fri, 22 Jan 2016 16:34:47 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 9FCDE618BF; Fri, 22 Jan 2016 16:34:45 +0000 (UTC) Received: from mail-lf0-f53.google.com (mail-lf0-f53.google.com [209.85.215.53]) by lists.linaro.org (Postfix) with ESMTPS id 8ABA1617A0 for ; Fri, 22 Jan 2016 16:34:44 +0000 (UTC) Received: by mail-lf0-f53.google.com with SMTP id c192so50353861lfe.2 for ; Fri, 22 Jan 2016 08:34:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=eh8vfdnI0GleCfG3PBJk05UwM0+ls0ktZVWFHXxJxDg=; b=bdADACguA8Sxj9M2eMHpx9L2ghiwvPSQyut4XQxjx5Bw1TAChys/3UD9zYUPKQrdmC A959DMw5eXffTyLZNdYHdID8Yrdq31anXg1MWKWBqk/kHkeUXapkAYakbVZLadJ8U+f8 +FfSV3wQQR5dHhLdGLnB4kEYyGKulsn62D0Nw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=eh8vfdnI0GleCfG3PBJk05UwM0+ls0ktZVWFHXxJxDg=; b=JQajN1WVsrag/+Yy4RCB82DoYV16ufv1my2tmINvjTX6re6gwJ132G21QVD7VKWva0 qtAq8Gg5nhg/g/uJDxRwlLlRDGLBijUle1o/QkHI2W57rYRPzwEDRZmO7cPVDpnkmuB7 2b794U4BreinrnhQjfWjtPMP4JO92SMZ7KxJh7xcewG2fjIpHEt3YrlgDmphT5LBenTs S9QJVloQpU5WfUIxy8c7bzRRfQODPzasvxS1zeQSjiEDM+YaYzSxjpAYxYNOhegOIg3D l/jWiNP2SGcvY1HKZ9z8Tn3KCoF4Uz9Ec9L055NjvUZGBA97lmHyiecehsUzjm0k+283 yojg== X-Gm-Message-State: AG10YOQsX4/WSPx55c6E7HVN9S8eW5XRqtYEB/wTJPSIics3FYb9VeAKRW0l10xV6gDVK6hVoAM= X-Received: by 10.25.21.106 with SMTP id l103mr1589731lfi.92.1453480482998; Fri, 22 Jan 2016 08:34:42 -0800 (PST) Received: from localhost.localdomain ([195.238.92.128]) by smtp.gmail.com with ESMTPSA id uk7sm955694lbb.32.2016.01.22.08.34.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 22 Jan 2016 08:34:42 -0800 (PST) From: Ivan Khoronzhuk To: lng-odp@lists.linaro.org Date: Fri, 22 Jan 2016 18:34:35 +0200 Message-Id: <1453480475-4315-1-git-send-email-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Subject: [lng-odp] [PATCH] validation: scheduler: tune resource usage X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" The scheduler test should test scheduler, not resource limits. For instance, prio_num * QUEUES_PER_PRIO * 4. In case if prio_num = 16, it's easily exits the queues maximum number allowed, 16 * 16 * 4 = 1024, plus queues created for other purposes, it can be close to ODP_CONFIG_QUEUES. The same for allocated bufs num, that is prio_num * QUEUES_PER_PRIO * TEST_NUM_BUFS. It's h/w dependent, and should be in normal frames. This patch tunes resource usage in order to allow test passing for different h/w. Signed-off-by: Ivan Khoronzhuk --- test/validation/scheduler/scheduler.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/validation/scheduler/scheduler.c b/test/validation/scheduler/scheduler.c index ea246d4..100a627 100644 --- a/test/validation/scheduler/scheduler.c +++ b/test/validation/scheduler/scheduler.c @@ -9,12 +9,12 @@ #include "scheduler.h" #define MAX_WORKERS_THREADS 32 -#define MSG_POOL_SIZE (4 * 1024 * 1024) -#define QUEUES_PER_PRIO 16 +#define MSG_POOL_SIZE (400 * 1024) +#define QUEUES_PER_PRIO 8 #define BUF_SIZE 64 -#define TEST_NUM_BUFS 100 +#define TEST_NUM_BUFS 48 #define BURST_BUF_SIZE 4 -#define NUM_BUFS_EXCL 10000 +#define NUM_BUFS_EXCL 48 #define NUM_BUFS_PAUSE 1000 #define NUM_BUFS_BEFORE_PAUSE 10