From patchwork Fri Jan 22 10:24:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Khoronzhuk X-Patchwork-Id: 60128 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp565467lbb; Fri, 22 Jan 2016 02:24:50 -0800 (PST) X-Received: by 10.55.207.82 with SMTP id e79mr2467060qkj.102.1453458290608; Fri, 22 Jan 2016 02:24:50 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id b15si6442446qge.125.2016.01.22.02.24.47; Fri, 22 Jan 2016 02:24:50 -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 D7FF1616BF; Fri, 22 Jan 2016 10:24:46 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=CmXBdzKD; 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 B2BE2616C3; Fri, 22 Jan 2016 10:24:42 +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 A7CAE617DA; Fri, 22 Jan 2016 10:24:40 +0000 (UTC) Received: from mail-lf0-f46.google.com (mail-lf0-f46.google.com [209.85.215.46]) by lists.linaro.org (Postfix) with ESMTPS id A8984611F4 for ; Fri, 22 Jan 2016 10:24:39 +0000 (UTC) Received: by mail-lf0-f46.google.com with SMTP id 17so44080763lfz.1 for ; Fri, 22 Jan 2016 02:24:39 -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=CmXBdzKDrm7FS0GZhgF3N5nVulJWIGdTRqFh7zifPi62Hosx9m9x5qTESI9bRW4CYv crnKBIs9mc07AsvduWbLidGgm2ByagYGuimreYVJWDLFvkN8YlLltpJ/KlvkcdWgD/i7 3nIMhnkUC3Ao1lXwQr1f0aXO19TPqUZO2+IVo= 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=gf7pIAqZeo830dTc/enYWf7F0fG0WT0YsXgQU42OsYwpUdXAIq08fFNvSVRbYZDx8o /WN/vBOda/uppXG6IcMLbeHRhJA58zca1HcKbt7f5J4O5xboKn0k7R+9g10Do3WSj/fy 4KrobI1g//Dfji4Kz+p21FBeJV6oDb1VuNkSbmoNskd0LuLkNUPAxzh1/IAxtBUV4DkQ sMufUcrWZXqEEHb7ab5aPooD3KGWLtY5dbGsJCxsLQjwxBeeJX7i043Mwizj9CeTQIEj 8eN1BnY/8efir5w4lr1LLETbUGGOD+lH1W4q14KRmpLeW6kKUgnEoDnM7wK278Qa4ia1 xwHQ== X-Gm-Message-State: AG10YOTUDgOM/0aQXBxVEdXGWo0RxFPIKW3zqN7zP+zU1uZU1D/vzoGLcTfacivyfsnQZwl274M= X-Received: by 10.25.84.20 with SMTP id i20mr884975lfb.7.1453458278335; Fri, 22 Jan 2016 02:24:38 -0800 (PST) Received: from localhost.localdomain ([195.238.92.128]) by smtp.gmail.com with ESMTPSA id xo4sm791560lbb.27.2016.01.22.02.24.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 22 Jan 2016 02:24:37 -0800 (PST) From: Ivan Khoronzhuk To: lng-odp@lists.linaro.org Date: Fri, 22 Jan 2016 12:24:27 +0200 Message-Id: <1453458267-16403-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