From patchwork Mon Feb 6 12:38:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petri Savolainen X-Patchwork-Id: 93419 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1686694qgi; Mon, 6 Feb 2017 04:38:53 -0800 (PST) X-Received: by 10.200.35.124 with SMTP id b57mr9605260qtb.147.1486384733899; Mon, 06 Feb 2017 04:38:53 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id i30si396375qtc.126.2017.02.06.04.38.53; Mon, 06 Feb 2017 04:38:53 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 84F2962DB8; Mon, 6 Feb 2017 12:38:53 +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.9 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, 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 9867060B51; Mon, 6 Feb 2017 12:38:43 +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 DD6BD62DB0; Mon, 6 Feb 2017 12:38:25 +0000 (UTC) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0138.outbound.protection.outlook.com [104.47.1.138]) by lists.linaro.org (Postfix) with ESMTPS id 885F5608D9 for ; Mon, 6 Feb 2017 12:38:23 +0000 (UTC) Received: from AM4PR0701CA0035.eurprd07.prod.outlook.com (10.165.102.45) by DBXPR07MB287.eurprd07.prod.outlook.com (10.141.10.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.5; Mon, 6 Feb 2017 12:38:22 +0000 Received: from DB3FFO11FD020.protection.gbl (2a01:111:f400:7e04::118) by AM4PR0701CA0035.outlook.office365.com (2603:10a6:200:42::45) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.5 via Frontend Transport; Mon, 6 Feb 2017 12:38:21 +0000 Received-SPF: SoftFail (protection.outlook.com: domain of transitioning linaro.org discourages use of 131.228.2.35 as permitted sender) Received: from hybrid2.ext.net.nokia.com (131.228.2.35) by DB3FFO11FD020.mail.protection.outlook.com (10.47.217.51) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.7 via Frontend Transport; Mon, 6 Feb 2017 12:38:21 +0000 Received: from fihe3nok1346.nsn-intra.net (10.158.36.134) by fihe3nok1346.nsn-intra.net (10.158.36.134) with Microsoft SMTP Server (TLS) id 15.1.466.34; Mon, 6 Feb 2017 14:38:21 +0200 Received: from mailrelay.int.nokia.com (10.130.128.30) by fihe3nok1346.nsn-intra.net (10.158.36.134) with Microsoft SMTP Server (TLS) id 15.1.466.34 via Frontend Transport; Mon, 6 Feb 2017 14:38:21 +0200 Received: from fihe3nok0735.emea.nsn-net.net (localhost [127.0.0.1]) by fihe3nok0735.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id v16Cc4Ow019895 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 6 Feb 2017 14:38:04 +0200 Received: from 10.144.19.15 ([10.144.104.219]) by fihe3nok0735.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id v16Cc4VF019846 (version=TLSv1/SSLv3 cipher=AES128-SHA256 bits=128 verify=NOT) for ; Mon, 6 Feb 2017 14:38:04 +0200 X-HPESVCS-Source-Ip: 10.144.104.219 From: Petri Savolainen To: Date: Mon, 6 Feb 2017 14:38:01 +0200 Message-ID: <1486384684-14761-8-git-send-email-petri.savolainen@linaro.org> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1486384684-14761-1-git-send-email-petri.savolainen@linaro.org> References: <1486384684-14761-1-git-send-email-petri.savolainen@linaro.org> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:131.228.2.35; IPV:NLI; CTRY:FI; EFV:NLI; SFV:NSPM; SFS:(10019020)(979002)(6009001)(7916002)(39410400002)(39850400002)(39840400002)(39860400002)(39450400003)(2980300002)(189002)(199003)(6916009)(2950100002)(33646002)(6666003)(38730400001)(76176999)(86362001)(6306002)(22756006)(77096006)(8936002)(50226002)(81166006)(68736007)(8676002)(81156014)(50986999)(36756003)(106466001)(2906002)(47776003)(105596002)(2351001)(48376002)(50466002)(626004)(107886002)(450100001)(356003)(5003940100001)(110136003)(5660300001)(305945005)(97736004)(189998001)(53936002)(92566002)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1102; SCL:1; SRVR:DBXPR07MB287; H:hybrid2.ext.net.nokia.com; FPR:; SPF:SoftFail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; DB3FFO11FD020; 1:tBeOCcmNWJ7hG6GeCK3sdkWFdnuUaQmi4qYotgpkpw/e1Z10lzA34FpPI2CH771VfSNL8LGtBK+/h5OyGUOnn3coXpvxdhdqWFAb8dquRyJ4ETOgmKRR9oa/Kh7uL3ecNSU6gT4Up4CyP03WAOQhAwSCAVG+CkriEL953w/7V2GalS1Kjas4uax+SLYYIeF0lFYT8neRr1Ks6wgwtDmHu/PlQEmk78A9cz1/NDzQtUwgXk2Pbw3U+i1wSamgzU0kvKL0o6+Xekg8w/+EnO6uc0Pju91dkM9OuTcb63bIb5znoiHQ0FiQ3TyeWZuoW5LSDTGOv1Oz72KrvrNc2amjRB1IOT5Y7YvLWOTTkRJsiYqe34/kEmbbgug07VkHJaXUiB0YX6rWfCE0S/9KJTloBjquvOdTgQSRiLys0HFGtGKGJsDqQZQtnWU0WOn1+9yjeJT+Qq8Sc+rd5Ja+PQgpkt1IR+Gkg/Dj+x+yX6muDf0= X-MS-Office365-Filtering-Correlation-Id: 6c795f04-be8e-415d-e1be-08d44e8d092e X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:DBXPR07MB287; X-Microsoft-Exchange-Diagnostics: 1; DBXPR07MB287; 3:GV7i6HAT7QZCxUcq8pwDk1YZjjaScsRiGJehomqcpN4unyvtDQ3HYPOfwwVu/VbgeexjJ9wMdxbfaaKZjcYa0ZsW9NIda66cSvW0QxEG0B5HX4M6jIihWPc6Nu/F4mKZljVhBkfgLBQwVoaTjLVt5/mfBFDDggoDb/Q1aKDDeJAQbxloZH90onqVa3s+YdWo1oaT2iU7JEAfF8qWsyKZaOvEuWR6f5NWU9AQpVY20mFVsN9XXdatUZNxaNMC/ZZ3sjCQtpSB4b/bNfsjoOm2Xenx2e3g3WlGasUoULdUFgMkak3Ya+HLiJ+wO+4fYgzP60cTmoWsg3JFVu90S8VrpGhfJAEQvq9aPf/AIqkAzb0uihCmSICKgN99liX92kit; 25:Itk7WssleNYWY0chvPKvtoOf/Vv3D5sVtvex+fOWIHB4fvyY4hzuE1ykHjFujPBH6D3PUXhdjpQ3uRFZnYQegI8DOPl+Vy3Yy6z11ewf5g5YScjQKf16S/yf8iSL/63GKJG/1Bi+SVcLVZw4+vYorSq2ZRTDED4E1r7v7m4dtRp0SYFWfAr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fWsdvEBh03HMtqOCySBWK14Cv8N8zf7YFPmjlCd1obTv9K2qL+F+xPApECX73kAYMDjmhUEqACSLfUiVpzuHogbvSHT/XCZVlnowtTp0h/PJ34LEcjVaXIKkjNHA8bvk5StEgsM4Ycd2Id/Gy+8= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(13018025)(8121501046)(20170203043)(5005006)(13016025)(3002001)(10201501046)(6055026)(6041248)(20161123560025)(20161123562025)(20161123558025)(20161123555025)(20161123564025)(6072148); SRVR:DBXPR07MB287; BCL:0; PCL:0; RULEID:; SRVR:DBXPR07MB287; X-Microsoft-Exchange-Diagnostics: 1; DBXPR07MB287; 4:ZAre+fq+i/K3evpn23yDgt7JaSBo9/OdvttO9BmiOHvq2jVLoHnD2um6otgJ1i50Lw7LBrC1XSzy4b25eKYAbaHha4wmhw9lHKpHhJZamweoLRCT0PsYkCTPczhSua0iun9JaKrWNce8zPNNGGv8FNdm21xGzi6jlyzIkvJj687jNqrbE4NNq+CiCSXzp7l0YTQ8ivTHwEN1GAVoIQDwvIILFLqqve15rjbFUDsyzESzdFeaOo/du8+iyFPRvdg+YQHbzi1qVcidtaRR6l06pyKB5bi0KwG8dTa74hVoLvjKN7FYVDLBGNTcNacFBo/bPtkKsDOKOCvfICnWNtjNz+Bfien6J092wlqToTbLpvEqMnGLmpNVi8AIAs0uPnGuZHZYzb/E5TUnhP0/zcaCoHB7o7N83lp+dtkxP1/IGhZ0mMtQoGC/90u+B3I/yqvGDvGVaQwXNC0O5zC4MB0Mz5bfVp3LtBrHpVrDa8OYfXXJ36N+trpl1eDAosI7niZsStj4mj0ZD1rj2OQ6IFMEtOFIYqf7mhtdHGRN4Zzy04b/4M8749lfNdjfCOzMnxZENwNJ+oISBE9IIt336dS9AvDafWcKoJDuQkItlYMy46feLvcyKkf9jvz3sx5WBrqZ6OClQozpwOHymQYCX32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-Exchange-Diagnostics: 1; DBXPR07MB287; 7:snvxYLlkP5AWbcY7EE5T+Ifd340gLNHsDtVexXNpXk2+boFS1Q/QZBjf1vS3s0WbGsB812zVH0RC8/oQdsgjeMDfas5VkmMnNgZbulo2rH0kdLct1MGN8aKb1qCHTiTovM7oQpt8PT0fgDAwB/TurFW1Zj0C/lrPweBw+Mw6vO/CahtoYHsNEXN6Q2wcAZ6GocPBSsb014oCLHoyG5J34RNjyfD8UK7eZ2YuytMj0bU7ktaRtHEpVqifSmi8lqrBolv8/pL5cUGZ3y7R5uNphE7j/ITLTvbCGMlUJocb/yvmNBYl7ey/BWG5uN4ydPtXScnPGlsPnMV31bkef4OVKp+ZfxDmy7z0kjedcfktoUj2pCNN220e5WfnY1RERvcBS+ZE48HZNwrc4l2EAy27+vQDTvOsmTN/4oCSNa3dc6wMrgDagJdyyEB2FF5bFVLz/GSXmucLpTCd3s4+ZG4tuKE9ATS0ARmzE1ISbrPVZtp9gworfuPvfp3G3Ce/oOCN3KnFqIwyEWQhLhUS4rIXFg== X-OriginatorOrg: nokia.onmicrosoft.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Feb 2017 12:38:21.6413 (UTC) X-MS-Exchange-CrossTenant-Id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5d471751-9675-428d-917b-70f44f9630b0; Ip=[131.228.2.35]; Helo=[hybrid2.ext.net.nokia.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBXPR07MB287 Subject: [lng-odp] [PATCH 07/10] test: l2fwd script: limit number of generator cpus 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" During 'make check' run generator on up to four cpus. Generator on all cpus was an overkill compared to l2fwd on two cpus. Generator and l2fwd still share cpus (on odp-linux) as cpumask_default_worker() returns the same cpumask for both. Signed-off-by: Petri Savolainen --- test/common_plat/performance/odp_l2fwd_run.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) -- 2.8.1 diff --git a/test/common_plat/performance/odp_l2fwd_run.sh b/test/common_plat/performance/odp_l2fwd_run.sh index 757cf53..dd42ede 100755 --- a/test/common_plat/performance/odp_l2fwd_run.sh +++ b/test/common_plat/performance/odp_l2fwd_run.sh @@ -66,12 +66,14 @@ run_l2fwd() exit 1 fi - #@todo: limit odp_generator to cores - #https://bugs.linaro.org/show_bug.cgi?id=1398 + # Max 4 workers + # @todo: ensure that generator and l2fwd workers are not allocated to + # the same CPUs (odp_generator${EXEEXT} --interval $FLOOD_MODE -I $IF0 \ --srcip 192.168.0.1 --dstip 192.168.0.2 \ - -m u 2>&1 > /dev/null) \ + -m u -w 4 2>&1 > /dev/null) \ 2>&1 > /dev/null & + GEN_PID=$! # this just turns off output buffering so that you still get periodic @@ -82,6 +84,8 @@ run_l2fwd() STDBUF= fi LOG=odp_l2fwd_tmp.log + + # Max 2 workers $STDBUF odp_l2fwd${EXEEXT} -i $IF1,$IF2 -m 0 -t 30 -c 2 | tee $LOG ret=$?