From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0064.outbound.protection.outlook.com [104.47.38.64]) by dpdk.org (Postfix) with ESMTP id 55AA137A2 for ; Wed, 19 Apr 2017 14:22:44 +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=+8s6xDmd27xjR+P/vyw4/KbqVuFOQLnB3zxeyWuIJo8=; b=IxxRs5yAEI/m9MSjiHWwpKo+JBFxRnL2qjRIX2j+IY0tBQgqMAmyxeoGSdIL+T5AkZ9Kz8fsKRFc9Hpz7E39keNxJGMPX50NX5dkTgmipjtiztBHpWUzV7rlWlzwhnaXOGc4gnGOVC7bHjB6LpcFef2k10+rMfo23FQKhcYaR0k= 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:22:42 +0000 From: Angela Czubak To: dts@dpdk.org Cc: Angela Czubak Date: Wed, 19 Apr 2017 14:21:56 +0200 Message-Id: <1492604540-12114-4-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: 07116ba3-715a-4f47-657e-08d4871ec7a2 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:CO2PR0701MB805; X-Microsoft-Exchange-Diagnostics: 1; CO2PR0701MB805; 3:45m2KmGEMf+hWG20LLGhee1ETEqv9zqWL4vUf5jdhvmNXJn2ldyOVEMeSv09apYdjsdOTHpiwCH83lfqMQ+NyJm+y9yaez/GCYFMHLcvrK4HrvKqVt6i+k0XzmfIVaEOcqz9DDLf5iTkfXgE+0dQpkAdWRkyQt/3f0Eeccs/EadaVMv3LqsXhx0VEnlSonE4OXpxeDjUZpp3mN5onxSjAMvTjVB8fFLxl9eklXJBjBT7AntV3DW3+PK6IMhJ52C9mzVTPesfOWCUicH7+2sdCq7B3oO2X0+kdTGAmBNwt4fQG1Mnxg2uoTlzIAtStCx/XSX/if33ErYPbfvUQsPQ5w==; 25:UGot9cP31mnH28oMOaxfOhU+6lgL7eAEqOePjN3BQ00UsjBM39PDYMVglmgyBFL/NdtCH5LgxOdqGs/hfVsPmmNvzcXuVPmY2KMQ3xq03nSoesxO60ZdNwrwB5CJHw0AfL74rkKzndIgZQLYP7PLWWzPmqw2hbUMjHkXt8nyXSmL61wgBJl2kwZt1JznNptjQSfUAP2ng0D5IqfMQA+xWWv8o80AQb/4jTnQwVffXm+soxTJBV8WBXOU8TDiLw6omzMhqSqFJ9WuNblgU8Pvkf7LNa/ZWrcYz3uU7ymBEvJsvHF2CdeYz5/JHL90HfES30XCvioksOLqmP8KSqs/AcFW8aNv+aspr3UbCItIhtTJGLoKA0Ee1VMA379xzjULsRB/0D3ogkJ7k7EU5F/8L/PX+mns+D0RggntI9r0S9OnHYiPcYkAcxFeHSqasw6x7cYuWi1c0GZTyStWY8yw3w== X-Microsoft-Exchange-Diagnostics: 1; CO2PR0701MB805; 31:7rlcmChI/73l8l7a9xt1D6UuNs0mRvpJqH06QeB8t3Ah2S5fv1UFvgZ/iiFR/atE4Gh8eCT8KxmlkOIJ+tGRysSx6/GcKzpIEDjLxrNWcXtdw8vm6rFOEOBZWI8thOupQtrmh3VsP3qDeswHwAzwbLNuMeU58q75toK1+n+OxmoFjDeQWbT/3m4T8yMi6EDkq79ED+tsZvbUlMyOMFNKLzUjl/hem8gd6Y8SnS3K2V0=; 20:FKJLnd6ilXbcza8RPn7I58gzVnJOIFTpQZo/Q49sdzmBXW0c/Amg5RflZqDyg16Y3kVzpH9b1XeW20qkR8KAksCTQC1Ly4aMcpmKuKHH2m0TT0Kni6Jg1e2vccwyrIOxbWA1b+TQ3k1K0O+8A8cVU15ducRtA4tbCenbCYCTW7bzFfPxSuzd/Wrn8UWvn08BgFlAOcvC8TbUdmgHV/7oIEp76rLWXzyXXDX2ZSs5O5ZJYCqJKKi9pgLzL2HQNDUzW/5BvNE8+O9ekl0Pe9gZrWK51VGYbIwz6Ese5Ntv3GTNilL2GMNQ6IoP1cNv6H2cPGclT+30RyMsg5WsvRpuZKdrbYE326ki8wlfNE/clcAkFLhpvZRvW9b+R2RO5nMABO3rrFHpwdpUL19cmo1v/Gx1SCMUZdwJardDKX3zsZ/srD4An+ZJrMq6a9f1wv5kEkYdWgtIrF16cGg5zKi/Dy+2+cu1+i9InNfQl8EKaslzswHlIeN/tx9AcLb/4SJmGDn15vM/gEmeoYa6EKWybCK/lWiHODiCz2jlALTFcWyVuIj+xzzD7uaEhrtMdTET5XuR+PMRCeyXFRYIMlxN8IEjS6e2wZ8T9Ljn5SheSb0= 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:7FhCtUuh/QSVE9xZFbvZJ9YtR+Xh9Y+TG4GAuQm3SX5EntApM9wTjHXmXXQ0/Ji7yzVp3z/hfnSPeqSnEEPV3NmnC/nfJcBTMmJS5AHz9R5sXS6GEHn8jg1Lpq0TLCFMFGQqbNaNwOWFzMaoZEh3vS0MhRsPPYILTU9Ae+cM+b0TXY0gUH+wbDhANZInj07E0CaU4jwwelcsnWvE2fUyVRXHdKnKT4ipXB418gCkO0j7518fCYVExRP0TuvPYn2Rn1G/0c6twdehsiYfQJd5WuwvgJKIGGjhCwjhRgPklo8TSnVHGaKFl5TgTT48T6ACDriKvOZk9PxCu1mk/rboe9CjRxGqvrZfiMvT/B7Ns8loh7yGT+UEAOlh/k3lsJ03BYSAIuIh14Yg068ARDl07X+MPDr85kS8E8EV1/pQRHFg7ibZg8FnELzZR2/pJEXbyvh3fgmwCn2mgpKYFCGIGqnzekruYZ3suGoE+b0/Y2FRhAUqwNUUONDztCK/NYGkw2Dp3A/8FnVC/TaSmSjg4hfa6B4t9Ff+CWSTa/4k+ih47YghibWLy4wCDHS7AlRi6mjJE96IHsNcJ6C8X8piGqUHUnljKP0gTc8dVOqnqee48iOnINMLdHUX6iqyIJJ0aQZ0mks1vj/Gnu7BScNqTtwPh6xFPn4oJ5RyUtOjTQ4eNz8eiur2jKQy+1D/YKSM 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)(6666003)(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:hmoobNDdbrOZS7L5RyCXs0ewa8W3NEP3s15yCjki?= =?us-ascii?Q?3qxMa4kp6j3lnFzI5tYDkKleFkYWk3qENfveoLQc0XU3AiBu58YW59gmGtEX?= =?us-ascii?Q?TN8njQkT8ucP3tbIWGCQ5rWkBlrW0VLiE3OyLg0oGstgxLboDwT8zZouQ6jw?= =?us-ascii?Q?drRwsiEA5LqJz37tDULpx/GD/99ZKDSzkhBp/Bkywlc0/Tymp4kNAG/axKOR?= =?us-ascii?Q?jZIuVhmtqpDPyAurI3JIgaSp8QE4kpwlKA9VH4UAwXkkGq9YAYjxRXSnqcNA?= =?us-ascii?Q?qQcUd4/yMrD6mflfUppqghbrfUO00FZkviuDtTISkY9tlhZEgGvFyCpyYP9F?= =?us-ascii?Q?9HSGj2iTd3uaR6gRtSqGDGdO/2PlRLQKGSmYhA5coX3jdz8ZKkdpK0USfvU0?= =?us-ascii?Q?KdOiWXEl7/mhpWxs6dCT1VKvqGf4GmB3E5KlcGstfwCmA8wCdKyoFDe5vRwl?= =?us-ascii?Q?oVPRkCqM6M4bzYTj0oHMRvKWGEiMoq5SyzFR/6TZOa3xvua4k7oGpdhclTC6?= =?us-ascii?Q?fjf77iHC0VE2hp5bXUvUaqLV137qVdfFTbCgrIacu5Hf0QmHxzoTNYouaCTv?= =?us-ascii?Q?Un7+6qqOnh8CdJiTBnYKyAwKcmIAHTNhVklPtDTlCMGYmv4DDwJPSK0BNt0f?= =?us-ascii?Q?i6oXZb2Snu/auON8rnaWM5wpxlVvyNXdI1cx31j51Pa7UCeUPDKMg8Mqbqv6?= =?us-ascii?Q?wLo9SNxQTR7fN6sqstRzTHEFyY840ijUl87JXv9M7g/A7Cc6eX68eSuvQXzE?= =?us-ascii?Q?7zuutmWHM1N8JWtbBc/HI69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hSyCn1N0V+f7Q4iLevsWO0KbQopVuvAHMCAnltRJ0HQsAKU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CO2PR0701MB805; 7:7bRdsnfKc5nUe9uGxkcDxatKQEciHEsV8AkyM3fjmvL1sRa22A4s4ox0f/FiVB/wE5K8AEjCx94i7ACVYbh0RKksyYeOQ4pv6xHHykQULZhlCe2sg2wgFFmgxr3Gj/yLpM0/wSsyXCJTfR8kwxtsCr3Or9fKciWr1uUj6I0sw/IEI+XeRmwUTMHlXrxkrF6dPIywkSjnYZ/NZKfXmk1rl34NSHVe0BQlD4R2mD8Q8Ivnb9PlBcfnXlteI7ujVUgJ4jighlsVB9Z94v9lAM2ZZUq4LPr6FmWJBKHFVZhmRPCsls8WgGx5Pmb6qcBigEyExCe+138DN5uX0fxfjZN4mA== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Apr 2017 12:22:42.6914 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR0701MB805 Subject: [dts] [PATCH v3 03/27] framework dut and project_dpdk: binding smaller number of hugepages for arm64 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:22:44 -0000 Changed default number of set hugepages from 1024 to 8 if architecture is arm64 and huge pages size is 524288 kB. Signed-off-by: Angela Czubak --- framework/dut.py | 5 ++++- framework/project_dpdk.py | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/framework/dut.py b/framework/dut.py index deffa1d..4a2afa2 100644 --- a/framework/dut.py +++ b/framework/dut.py @@ -308,7 +308,10 @@ class Dut(Crb): elif self.architecture == "ppc_64": arch_huge_pages = hugepages if hugepages > 0 else 512 elif self.architecture == "arm64": - arch_huge_pages = hugepages if hugepages > 0 else 2048 + if hugepages_size == "524288": + arch_huge_pages = hugepages if hugepages > 0 else 8 + else: + arch_huge_pages = hugepages if hugepages > 0 else 2048 if total_huge_pages != arch_huge_pages: # before all hugepage average distribution by all socket, diff --git a/framework/project_dpdk.py b/framework/project_dpdk.py index 4dc6a8c..b9a6d4a 100644 --- a/framework/project_dpdk.py +++ b/framework/project_dpdk.py @@ -414,9 +414,13 @@ class DPDKtester(Tester): if not self.skip_setup: total_huge_pages = self.get_total_huge_pages() + hugepages_size = self.send_expect("awk '/Hugepagesize/ {print $2}' /proc/meminfo", "# ") if total_huge_pages == 0: self.mount_huge_pages() - self.set_huge_pages(1024) + if hugepages_size == "524288": + self.set_huge_pages(8) + else: + self.set_huge_pages(1024) self.session.copy_file_to("dep/tgen.tgz") self.session.copy_file_to("dep/tclclient.tgz") -- 2.7.4