From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0055.outbound.protection.outlook.com [104.47.36.55]) by dpdk.org (Postfix) with ESMTP id 3B6786CC1 for ; Tue, 16 Aug 2016 16:01:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=harmonic.onmicrosoft.com; s=selector1-harmonicinc-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=DybiuBVdI/sDca9Q/hLZHVj8U3kqeAEZ2K/vXLMMWSo=; b=jD0xRBMToXQT2u6YFbPE/4ayC6Ost6ARdkNz0gMZcdmWgmxnQqcy1CSzSYoP4m6/7biNC9v0wZCPH3O0Lw23dAsP6ihx8WhbEh4cAniYU3AVMqJ8Cy/fEaSajltY6xC2nK1xOz9boZKAIfys+20rozo5KT5f41HnzSbAvcPkQKM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Vladyslav.Buslov@harmonicinc.com; Received: from kms.harmonicinc.com (95.67.66.62) by CY4PR11MB1349.namprd11.prod.outlook.com (10.173.16.143) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.549.15; Tue, 16 Aug 2016 14:01:50 +0000 From: Vladyslav Buslov To: CC: Date: Tue, 16 Aug 2016 17:01:27 +0300 Message-ID: <20160816140128.10149-1-vladyslav.buslov@harmonicinc.com> X-Mailer: git-send-email 2.8.3 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [95.67.66.62] X-ClientProxiedBy: AM5PR0101CA0022.eurprd01.prod.exchangelabs.com (10.169.240.32) To CY4PR11MB1349.namprd11.prod.outlook.com (10.173.16.143) X-MS-Office365-Filtering-Correlation-Id: c96d65d1-b1d9-4191-21d8-08d3c5dddf4c X-Microsoft-Exchange-Diagnostics: 1; CY4PR11MB1349; 2:ilfPXpKWk6F6nTtgTokffV7pBRDtL3MpYS6zuRxONwpO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BPXuRPZlR/DOA3tUF7MOx4Ct8eFgu/1Y2n4rzrJI2rmHUyVmGPs5rCa2OidGd6UDIrKVRBchTZRLkZP5ZVNwGoJxxRGjdYkdTgDlNWSxesjbM/IHTZkOBwhbM20t7B4ppTF53HMa+fuQyPE2t1XcOIA0efeY/yOshAMbFI9RjKRW4biWAdUrg= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026); SRVR:CY4PR11MB1349; BCL:0; PCL:0; RULEID:; SRVR:CY4PR11MB1349; X-Forefront-PRVS: 0036736630 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(7916002)(199003)(189002)(50226002)(101416001)(5003940100001)(47776003)(81166006)(53416004)(305945005)(77096005)(105586002)(7846002)(68736007)(7736002)(229853001)(42186005)(8676002)(106356001)(69596002)(2351001)(81156014)(92566002)(3846002)(1076002)(86362001)(6116002)(50466002)(48376002)(110136002)(586003)(50986999)(36756003)(33646002)(189998001)(2906002)(4326007)(66066001)(97736004); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR11MB1349; H:kms.harmonicinc.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: harmonicinc.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR11MB1349; 23:sXc0H22As9UYLmXvv5WAT6lrAS0W689DiNk4eYCT2?= =?us-ascii?Q?9if8P//OdZDl8mubUCHUDA3ZosKOWjjpdMuxKxPdAmw5Si8KCd7Koe461bu4?= =?us-ascii?Q?LcEAqlgXxpUaw+TrA6zeEnvevsbn8e69RH8u5tKkKSwFY59aUXNMUzbVCxyp?= =?us-ascii?Q?jOHn0jsE8G2ygYs2EFU8usYSfjBJ7+UvRevTldOZXe48PR+ofXtfcBJBE69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yB1l19nzJ8U7TDZTdiChdR5WC7EqOGLJD/qU2/I= X-OriginatorOrg: harmonicinc.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Aug 2016 14:01:50.7389 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR11MB1349 Subject: [dpdk-dev] [PATCH] Performance optimization of ACL build process X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Aug 2016 14:01:54 -0000 Hello, In our application we need to be able to allocate tens of thousands of ACLs at runtime. Testing revealed significant performance problems. We were able to track them to memset in calloc function which caused multiple page walks per invocation. Modifying tb_mem to use huge page memory resulted ~2x performance gain for that operation. Regards, Vladyslav Vladyslav Buslov (1): acl: use rte_calloc for temporary memory allocation lib/librte_acl/tb_mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.8.3