From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0067.outbound.protection.outlook.com [104.47.38.67]) by dpdk.org (Postfix) with ESMTP id E3B7E37A2 for ; Wed, 19 Apr 2017 14:23:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=XBqTXj50boSEcOPqmt4r3vTPTuiUUsOcKUKbpOIYGMU=; b=YDnMPD9sUM9cKjUpZxqKP0hSFdpEVohlHy/pidmfCmfNLZIpLG8NnUeRDe4JziTt7LSGrBmfVATfnRLzmSS/wzkQsJ9edV3jHRPp8O6mcv7+vHJcln6vD1+aRJcw9TZvNkqYLeKyv66J0FeAVwSpFJoeNoXgCsB5y1xx7dKFQDo= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=caviumnetworks.com; Received: from angela-H81M-S1.semihalf.local (31.172.191.173) by CO2PR0701MB805.namprd07.prod.outlook.com (10.141.246.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1034.10; Wed, 19 Apr 2017 12:23:10 +0000 From: Angela Czubak To: dts@dpdk.org Cc: Angela Czubak Date: Wed, 19 Apr 2017 14:22:18 +0200 Message-Id: <1492604540-12114-26-git-send-email-aczubak@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1492604540-12114-1-git-send-email-aczubak@caviumnetworks.com> References: <1491501092-14278-1-git-send-email-aczubak@caviumnetworks.com> <1492604540-12114-1-git-send-email-aczubak@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [31.172.191.173] X-ClientProxiedBy: AM5PR0701CA0064.eurprd07.prod.outlook.com (10.169.145.154) To CO2PR0701MB805.namprd07.prod.outlook.com (10.141.246.23) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 67d3a097-bbeb-4cae-a3e1-08d4871ed859 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:CO2PR0701MB805; X-Microsoft-Exchange-Diagnostics: 1; CO2PR0701MB805; 3:KJK5E9ALUo3s81tE9BL7xsFToXFWPG8awMCfsEn8/DqvPlo6toImynasjPcjpglPfaQFdXBDFV83CZEIZ6xtr6JyPrmSGEgYSFkoVR5zE+pdBjFhf3KiWtfGAiybXLtlNVv5sofTZQTH1ljaPDl9/cEeuzlTH+glEL8as3dhNJpSP5iZQIUaheGn4UpGt3yHiTpPkJIsghtDwx/RYU2HGLTWt6v5zD3QbfrXzFho+ddgTxds5MnYKhz/WgCzQ6hk6KbbbPL6P7sQAfTgpKQkq6hoT/1K2dixDdha5BMAQxql0+8IdU6yJzvQGc3vc8WkVa8Yb8UYNWkmTyfDZYHO8w==; 25:oJPwQT+T2NqkaFE9uJsqoKKkJWXMRuYw26XwJ5cWIjdUSD7aR+86KUmgtIbvTPS1vAHi9o7VwZsHQrdQrcH+rN8h/vBf4CaJ7efUfDbQp1BIQk3lO7tJ3raLapuq4k2Ye25EmOXjJxs64XiIB4FF8/pH64REpZQYM1++TSBj0OlCn506g4x069c58gZdocCSkTK33F5Nv37kK8EL1Ci7GUIUVESS9Q7asQjgnSSwWOuEc0uwzn4KCR1MOmmE4pVFaDz4Elg5SduvBlaO0G8KhZvTxW5oDqakwbQiRVHSMofBvDBJ1lBp3JM97pHZFN2e7wEoyA9khFrwkjliP3Z7wYGpMIOMlYZCrtYJazMy8LvKfXuF5YFb7IUHA1XKZ/DGlMyzWhWmZTdCznxwsexUXS44xo9E9oVPrQoE9jHrbWBGLc4/XhC+7r1L/iR6y1vs1WFO5EITaQO1QoZlS695bQ== X-Microsoft-Exchange-Diagnostics: 1; CO2PR0701MB805; 31:/j4f6ofjrLosPuT1TWC/YpCeC5vSoS0PVWZNkD1GgC6ZNMPV8QlVHvMeX+RKX/h5wKQhu3uMhgAca9gbdf1/JJ8INX7V/j2O5IDOEWBGW0Zva/sMlB0mAr/lVQH0MhAav7DjZTM/ymk8RECNFrTddp1kRA/MITlpiXlSp4J9671h2ePjrLXGQf0uCLNxGBjEA8lf0kjoRTKi+EkAr8YFLXr7W8aRBVcnlrPhxPdzzao75SmbYh/SfD9zfzFVZ0aXhrN0qa6gnB0k5pURXF40ig==; 20:Qj7FRUpzP/9wl7kwzHCEn1NL+BHco0GaMcmJxXKwbZ0maxgQ+HBUrc2FxUMS7YZBv4qYapvo1dRzE+kYp1xo5jFenrM0N3bus1FxHOiERnDqSNjHv9/1T01WVT4YKGmZDuEZHffzkhZHago68a6r39ZhrQnHKMINHMNoyhE2rDppFNJmYJ0qDlDcHVIr96WXwDK0se7D663x0f/Wmq+oagyJ1YTJya3DEas1yXDt8ZcrMog0t1oL8Nlv6qMSlGzdT0SMk+/YwwyCfIu1h1vzCtOvlXHBtuns+gV6zflr3NTBbut86Jr1p/hb12siMA2x+O/4oJglAAWvd2sEtLzzYUwCgpt+5F7w/EUPhzo9wX6FIjU4qrRTGbEkyiTQImNSyW0MKOWjIJIJZa6ah8TXm+k8w2iT3WTNyt2voGzvAX0wmwluVhH6p4fgqSy/Daxy4RdHgePftDFFGbzps245Z4/E2z/0QppsJLH2xfG5RhFExCiftIvNg2Uo0ROtUUT3NDSp9S7GaMwxZ0wqMTp/Bdeph1uuv1m6FjQ5qCnGEstoA0Bh2pLhU+NCNgpg4UvzPAD4Ms8A/RXdRhukMpEfWpE3Li328oldmdUTWr/wsys= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(6041248)(20161123560025)(20161123564025)(20161123555025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(6072148); SRVR:CO2PR0701MB805; BCL:0; PCL:0; RULEID:; SRVR:CO2PR0701MB805; X-Microsoft-Exchange-Diagnostics: 1; CO2PR0701MB805; 4:NHQDsTSyFGWo4tbU3Tnr6B8oy90QVglw666LkHDSUaOQhDWuxQsgpo9jrksya7yNfG5HAbXn/jCVw93Y0UQ0ZcGPyqHWJM/sDUpxN2njMvPTLnCymTk/BO5A22l9IIKaqDUQyxd+5yFZMSfc0ChRHq1dkS+7ogFFf23BJyGbV5F2PElq4f01c8AVVgxMgydWKDLNkRzm4Q8oO8uUrcxY87JHcWw+cUN1SqEn/FhORVLmoWGTkzodmf352s5QNKaQsKkQQZpERu7XSDJncuCiSJUotbkIixV/NPhKfbHUFYS2lIidmqHqw3GJfQ2Go25eYYco2blVLG0Sd/TCsHUbl4lfJ9RE9oDxCwZAlu9rVc0a90tskThnd5+budyJ4QJd5RcGpBrlNixFp4oGAHMrfG1wSqwB1+XEMzY3qcYODtpdXnN7MSNw1u7O2zPHG/f/AlxmNKe6uoxHpiB7Ixf1FcmrrO+JtgabGmvxPNJCM/hDfMj2iogsGuARcZbYGonfYcGwdCPPS9Y1YLNvUd6GwcLkwDFJ2VmZY/1sT+yXIbRL/hT8EkWc4fnk3g5Z4NI7NorfB0n1LgGrbta3S+5XeSie4eoy8zaeJ+2eEqopuKwroCivlKBlej2AjgUSzoISiuSBptke6e21lLvWC4sqAt3j5Q8u5y6aV5+xe4kKwWB9Ar14vYHjFlSL56r2+Z7f X-Forefront-PRVS: 028256169F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39410400002)(39850400002)(39400400002)(39840400002)(39450400003)(6486002)(5660300001)(38730400002)(6506006)(7736002)(6512007)(66066001)(305945005)(47776003)(53936002)(42882006)(110136004)(6916009)(2906002)(8676002)(4326008)(2950100002)(50226002)(81166006)(25786009)(107886003)(36756003)(5003940100001)(42186005)(33646002)(3846002)(6116002)(2351001)(2361001)(189998001)(76176999)(50986999)(48376002)(50466002); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR0701MB805; H:angela-H81M-S1.semihalf.local; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO2PR0701MB805; 23:Ri0nXrIi5YELIyVtdXyduvtIWW/sn1tkojsOIoy9?= =?us-ascii?Q?ks3+xPG54MVUCcz4ox5yaEeXhevVd7w5vydEdPYKeYJ9iz+0a1fWTVYSO7lI?= =?us-ascii?Q?ggrRaq8qVuE5bsi8N3zGyDUyihPsaTAZaaR17RmO7L6ufVNAQDm5g4QzITgs?= =?us-ascii?Q?nyD+HcpheOBkaxlDQFyS/LKcZMGay1+eggkFef0QRe2Yuka6wF7K9AcMC/gj?= =?us-ascii?Q?6/ptsx4GwQSR/QNDyDABnid6bKY8hHN0BX55lveFPyEMgEqpuPpwrj1GNPsg?= =?us-ascii?Q?fAS8PfLENPsEIM6Wx8NKCP52C/XSFKwnUn3J87ux5TvFV7bBWNV7tI3l6o0I?= =?us-ascii?Q?1Rftm1Sf3h3umEe8+/Rkqc6JdgQ0/LoXEFOqxDaeMX7u5pK+I74z9/9V654q?= =?us-ascii?Q?JI8ZQe6wE05gXHKi93NLa4iegIPoctY3obwIJ+NGttJlxcOmD0VEz3h19chs?= =?us-ascii?Q?j9UXYb+Wzj7PJff8hth9pYrA8/gdGebeZKUp3+YRJl/TTv6IYVE3vo/D23J9?= =?us-ascii?Q?i5wbc2ke3dKNlhVWyA/riPbwwIuVf5XKGaIbYUizpgez3DFQGbTgERyW3cJC?= =?us-ascii?Q?hl7DYoG2ax/KAqa+FEbgGIEq/bkvuuLtp5V8ziiMS3fGyNKzu7kLKZpD6bXj?= =?us-ascii?Q?wUSsDybK//sdxE1MHQTIA4AwL95R9zRz9jLEFghkyxGNdQlU6Vt07xmBvVRV?= =?us-ascii?Q?ucCjOO6Jh9rP4Mxuh+l0O8mTXPNI4usRKBY2y3GGk5O1RVMNfg4lqSqqrkRm?= =?us-ascii?Q?wAP3tbMcL5PFyBzM1dJmegbYRbdEu6/01oZHfE0C+CPjUI1aQo8w3zpEG0sb?= =?us-ascii?Q?8Q9oKd7wXO6FdYu79tkxvV4GeSxIP2KFm9ayeG0B8/sNnstALME45oe5lBOv?= =?us-ascii?Q?0hceSZOSZBVWFaThQvwEoHacpOSPKo9K5wltC+PJA85i2kK5Gw0k2FtsVkn1?= =?us-ascii?Q?zDWWSabUZdnNRjQGbka0ibVIfT2U0CDO7efrh6b32gVRjakZAizkbJ9H1Fxs?= =?us-ascii?Q?mO4rxoNL7kJSWIh+Wpog88ZpnxnTMxxE5amPL5yX8trx5g=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; CO2PR0701MB805; 6:uQX3NRJwbVTua8l/PHibCJjyOLR1GvLo3F5e37h721ebU1YLRrzHJimbym86a/yZeds8Sph33hB/lmkpX0AFk2NcGZWzIURbD2BgmQejAZhnqC51VFe2vsiqbaGosSG+EiFlsH1h3RU9wXbhiO5amlwThGiXj/9gvtgjLExG4owdXXq63U1k9zcuRasgECZlSV2nvca7ZtazcGNMPlFdtWYbuZdCnoDiaT9z4s7vqjYrm9WKJO28dlA36URIv7kYXU4O6vtqKCl+t7sGbCulvZM8q/EOqIyUjb9fChbrFH9PElR3H/oYTdJ71TWnNHZMUFXh+hF9mqs7k0GYP6U16iP1R+uuLWbuljbJhnXNYz67objtS02fs+fEp5TBZclaWoKfHdJiq+JyMgSMGXHPYY+DvyicPL5T3IqIWpai190WnVp6nAxXd4HQPcVs09leFqSIwkR13lm0asZG2wP49w==; 5:PvVogicut0cawpybibdxHGegrsMuxJlTMIHp0VPdI20m3qa9IXG6zuU3nmzlSeP7Sbac9yGA7hdwbbE9bn6mk+zpFGa6p0Emrsqv+uZT1A/zCz+Rl90FX9BMyyV3ey0YADZRM//kkfF9SBcAeRyf7A==; 24:3+QlCD6AwKogYUFWd7XNTdTBnn++e7SoEojB2KjMHH5cLro9zeSEGt83Vgm/S0OBfFQVBxACDgWXWXSVS7vhMD5Xzqu1lK0rIzCa18cgdzc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CO2PR0701MB805; 7:eDcqEh+qA9oZGBLqz5kJaS+aX4ZboDdJkT2hwJJCHzi6R5Fw58pdupdRpa45vzFUbBRE88y9ujVzutJBsp5zYdqZJvRMcbBGmzs24CFpI6G5GGH2sq0UHmwm+VMRu3nXqO1Gxx76MEurVcNlxD8g45IyMvz+HJoKaLT47ZIUGjJTStOkFxr9f/mCunGkvsMxGxpEe12kry7IeN0RoH+GSlz0ZVZ247b8sBf+l7EqFAkUGeL8rKBt4avtqDb5TXuZluOZDhwVFMr7kwagKIURsMTeyH/hgiZ9zh5V1/Rq0SlguLHzJHfD+LU8nBbk48zyrNYJ+hyjrtimYQ5UbmWY0g== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Apr 2017 12:23:10.7378 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR0701MB805 Subject: [dts] [PATCH v3 25/27] tests: unit_tests_lpm - asking for lesser amount of hugepages if they are 524288kB X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Apr 2017 12:23:13 -0000 Test case test_lpm_ipv6 first checks what is the hugepages size on the DUT and then requests only 16 if the size is 524288 Signed-off-by: Angela Czubak --- tests/TestSuite_unit_tests_lpm.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_unit_tests_lpm.py b/tests/TestSuite_unit_tests_lpm.py index e8149ff..68fa3bd 100644 --- a/tests/TestSuite_unit_tests_lpm.py +++ b/tests/TestSuite_unit_tests_lpm.py @@ -85,9 +85,14 @@ class TestUnitTestsLpmIpv6(TestCase): pass else: hugepage_ori = self.dut.get_total_huge_pages() - self.dut.set_huge_pages(4096) + hugepages_size = self.dut.send_expect("awk '/Hugepagesize/ {print $2}' /proc/meminfo", "# ") + if "524288" == hugepages_size: + nr_hugepages = 16 + else: + nr_hugepags = 4096 + self.dut.set_huge_pages(nr_hugepages) hugepage_num = self.dut.get_total_huge_pages() - self.verify(hugepage_num >= 4096, "failed to request huge memory") + self.verify(hugepage_num >= nr_hugepages, "failed to request huge memory") self.dut.send_expect("./%s/app/test -n 1 -c f" % self.target, "R.*T.*E.*>.*>", 60) out = self.dut.send_expect("lpm6_autotest", "RTE>>", 3600) -- 2.7.4