From patchwork Mon Aug 29 16:15:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 74917 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp1710931qga; Mon, 29 Aug 2016 09:16:11 -0700 (PDT) X-Received: by 10.200.54.185 with SMTP id a54mr19751105qtc.63.1472487371656; Mon, 29 Aug 2016 09:16:11 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id c45si23735509qte.123.2016.08.29.09.16.06; Mon, 29 Aug 2016 09:16:11 -0700 (PDT) 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; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 8569560ECB; Mon, 29 Aug 2016 16:16:06 +0000 (UTC) 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.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL 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 C727160EB7; Mon, 29 Aug 2016 16:15:58 +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 E1D0960EBD; Mon, 29 Aug 2016 16:15:56 +0000 (UTC) Received: from mail-qt0-f174.google.com (mail-qt0-f174.google.com [209.85.216.174]) by lists.linaro.org (Postfix) with ESMTPS id D3AD660EAA for ; Mon, 29 Aug 2016 16:15:55 +0000 (UTC) Received: by mail-qt0-f174.google.com with SMTP id w38so70786165qtb.0 for ; Mon, 29 Aug 2016 09:15:55 -0700 (PDT) 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=eKJ8TnZTBRp9KqbGSIlsRfF5kDMekonBJE6rl8/S4Mc=; b=ajIbQ2jAK198+yTgbPr5zZqxdW8yXBl7VF6b4w6+dWhTcMCkWKHgt8jPVFzw8lGVbw 7XrDzjHBNsVRnjNFOsiTM+jNTV2myjEmWC3hcxg97u/2w/4RDYfEF4LEgQUYcdhe6r1U RdPpVYZfvPonEMEeXFKi8KxFKw2sx4dK3x3S3z7T9xit+TDZxZMLJVa3cNmgiveuobAJ E56Z7WnIeGJbmCy1fMr+7q58rlK+z8VHqvziZCtZLsGvCFh/0cYzCJMsxXd+tOnk4304 aJD/HVR6vEUC1/lV/FWkiglu3/0F8oM8UDEjHY9TlwHS4Lj4R3YQOhgWcVmrieYVhRwF Xkpw== X-Gm-Message-State: AE9vXwNx08Oo/qvKGlfHsI0WWkxYD/qcd6plmGkKJ2y0kz2cgQP+iuo0T/qTnGodQ2X4Bm6CjiU= X-Received: by 10.200.57.108 with SMTP id t41mr19971166qtb.33.1472487355524; Mon, 29 Aug 2016 09:15:55 -0700 (PDT) Received: from localhost (c-98-221-136-245.hsd1.nj.comcast.net. [98.221.136.245]) by smtp.gmail.com with ESMTPSA id f62sm18896000qka.3.2016.08.29.09.15.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Aug 2016 09:15:54 -0700 (PDT) From: Mike Holmes To: lng-odp@lists.linaro.org Date: Mon, 29 Aug 2016 12:15:50 -0400 Message-Id: <1472487350-32285-1-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 2.7.4 X-Topics: patch Subject: [lng-odp] [PATCH v3] test: perf: add prime num threads to odp_scheduling 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: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" A recent bug showed the limitations of using powers of two, add a prime number of threads as a new test case. Signed-off-by: Mike Holmes --- v3: Improve test docs to note that 0=all CPUs and use that test/common_plat/performance/odp_scheduling.c | 2 +- test/common_plat/performance/odp_scheduling_run.sh | 6 +++++- test/linux-generic/performance/odp_scheduling_run_proc.sh | 6 +++++- 3 files changed, 11 insertions(+), 3 deletions(-) -- 2.7.4 Reviewed-by: Bill Fischofer diff --git a/test/common_plat/performance/odp_scheduling.c b/test/common_plat/performance/odp_scheduling.c index 1de79f7..9407636 100644 --- a/test/common_plat/performance/odp_scheduling.c +++ b/test/common_plat/performance/odp_scheduling.c @@ -723,7 +723,7 @@ static void print_usage(void) { printf("\n\nUsage: ./odp_example [options]\n"); printf("Options:\n"); - printf(" -c, --count CPU count\n"); + printf(" -c, --count CPU count, 0=all available, default=0\n"); printf(" -h, --help this help\n"); printf(" -f, --fair collect fairness statistics\n"); printf("\n\n"); diff --git a/test/common_plat/performance/odp_scheduling_run.sh b/test/common_plat/performance/odp_scheduling_run.sh index 755b0c1..a22326d 100755 --- a/test/common_plat/performance/odp_scheduling_run.sh +++ b/test/common_plat/performance/odp_scheduling_run.sh @@ -10,16 +10,20 @@ TEST_DIR="${TEST_DIR:-$(dirname $0)}" ret=0 +ALL=0 run() { - echo odp_scheduling_run starts with $1 worker threads + echo odp_scheduling_run starts requesting $1 worker threads echo =============================================== $TEST_DIR/odp_scheduling${EXEEXT} -c $1 || ret=1 } run 1 +run 5 run 8 +run 11 +run $ALL exit $ret diff --git a/test/linux-generic/performance/odp_scheduling_run_proc.sh b/test/linux-generic/performance/odp_scheduling_run_proc.sh index b3ef26f..384017a 100755 --- a/test/linux-generic/performance/odp_scheduling_run_proc.sh +++ b/test/linux-generic/performance/odp_scheduling_run_proc.sh @@ -11,16 +11,20 @@ TEST_DIR="${TEST_DIR:-$(dirname $0)}" PERFORMANCE="$TEST_DIR/../../common_plat/performance" ret=0 +ALL=0 run() { - echo odp_scheduling_run_proc starts with $1 worker threads + echo odp_scheduling_run starts requesting $1 worker threads echo ===================================================== $PERFORMANCE/odp_scheduling${EXEEXT} --odph_proc -c $1 || ret=1 } run 1 +run 5 run 8 +run 11 +run $ALL exit $ret