From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1bon0089.outbound.protection.outlook.com [157.56.111.89]) by dpdk.org (Postfix) with ESMTP id 38E48567A for ; Tue, 19 Apr 2016 11:36:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-caviumnetworks-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=MlT8gaZVB8LKQjgKrpdr/avCLsvVzeiX3UFY+HVD0Z8=; b=BJ0rdx4GtgPYud5bG2FQey8268PV0Bwzxzm3eZm8iDuiM74acXc/gK6oK5ZqPVQLv4FUc9Cw+5IC8rImIjtFeC16Ph1oV10Q4/klI5EAsCgun7SOGgLi/sU8W9W+vKdNbWIOc/eqPEjbvm7vqMv9E0Na3M6JHsmvf9UPv4uCgqc= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=caviumnetworks.com; Received: from localhost.caveonetworks.com (111.93.218.67) by BLUPR0701MB1714.namprd07.prod.outlook.com (10.163.85.140) with Microsoft SMTP Server (TLS) id 15.1.453.26; Tue, 19 Apr 2016 09:36:43 +0000 From: Jerin Jacob To: CC: , , , Jerin Jacob Date: Tue, 19 Apr 2016 15:05:28 +0530 Message-ID: <1461058528-28435-3-git-send-email-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1461058528-28435-1-git-send-email-jerin.jacob@caviumnetworks.com> References: <1461058528-28435-1-git-send-email-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: MA1PR01CA0049.INDPRD01.PROD.OUTLOOK.COM (10.164.116.149) To BLUPR0701MB1714.namprd07.prod.outlook.com (10.163.85.140) X-MS-Office365-Filtering-Correlation-Id: 0c1bbdca-ecb4-4e4b-9320-08d368361f25 X-Micro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KfZRttfj/FFs9woeXiC5uIhzLiHuR35XZHVzJYSRRDyr0pKA7SCmjCImxImDQDGiRjldCsHOy+ZojetP2c7M X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 20:pSBUW3jHcZeuRLo/FGdKpY2ovlVRuEzs30DyxnzRhONW6mPhAP4X1iqEqlnZCwQxr8qA6SOKvYmN0vrqiCG8HgUpZHTThMIWgXZJQMbNFB38vn5LkdJtt+ILacbQMt3GhW0KfmY2mwZaKm6qzgRUQY8zdTLgW7Ru7D6Q1vBMm5UnJTqHxXMwSW/AV+p0FEcSRMGG4wlTBqi9Ti4EUgEg0SnpU7cCP8hYBFqOWRf3U1a77IPkFAxOrzhlLvSSBEwz9wMb+8w/0qCFM2GcMe3ExHiEzsO+wrSxksNOxYHn2iqRX909CHCyDSPYu7Ad8RLAMqerOfgoIAA3tv3Ej8K8tQ6WucVqZd9NYWBQXZRmBeToblIcGoFRCRY1serv9axstomOS62k0fLH37EO9Dy9wWdBHUXuAnTj53xhamk1K44AgVvQXxOeusEoYcuOr8mOicLTVU79dOr0UY82OjMrFHeRaj/G78tApC6Ub6/ssJeImyQrkN8Sz/L95+m5oT/5BfGjUwT3hmhlzvPoTHejTes1OV+IsToA13p/rXrX7DhZZUMbg1bRqU60z3N03aj/fi7Bu2gjUakN8nSvHXMHfCGgCFNLJU9HSYJOeS7nbeo= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(9101521026)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046); SRVR:BLUPR0701MB1714; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0701MB1714; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 4:LRqRO23R84FS+i9vMpD8ABdfM2ZstQuAfZuEFbpLW0fjEj+cocvT9A99YLe24lH6lErQc+RGl7gxWHSmMKG+lRaVKLqcOFBwNwUrBN0R7dvtT3aax/9FuYZO3+KF8QpP50kSMvFl4s4LcVroR68GLdRIuwTfkzVOTghtE6KHG6XHMw3Co1K4ruDsmyh7o0Pv9L2hG0W3XUAexT4ztKzyCAuAjD/Ik3//nuqfGHDvTY5ZVr0MPMYFX6NtxeOmKP5Xsh/RJG0SP1RUfvwMV80httDwq1l8c+PW9Yr2ts8BSsvpInniZP239lHgXbA0gxOmXXO+VxHT+Nhfmdfhn626a3ULXOWyR0pC9JknzULa424WJtZitGi/rPA5e9aiR+d3uEuE87q/o0w3SkZ5CYfWTQ== X-Forefront-PRVS: 0917DFAC67 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(5009440100003)(81166005)(4326007)(36756003)(33646002)(229853001)(50466002)(48376002)(50226001)(2351001)(66066001)(76506005)(53416004)(4001430100002)(92566002)(47776003)(5008740100001)(19580395003)(19580405001)(2906002)(189998001)(3846002)(6116002)(107886002)(110136002)(586003)(86362001)(106356001)(1096002)(42186005)(5003940100001)(76176999)(77096005)(2950100001)(50986999)(5004730100002)(7099028); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1714; H:localhost.caveonetworks.com; FPR:; SPF:None; MLV:nov; PTR:InfoNoRecords; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1714; 23:lAhBZXQi8iy5NRdndus7mLS6PbSUMusecx93PWa?= =?us-ascii?Q?ge2n5fDTcDnnAZ0Nn4R62YWWe41cK1bDd3rA+7pQS64UjSTOpdwJZmcewH2A?= =?us-ascii?Q?zffQUrERBtHSrb0RcIJ8KUpUIVgpuV+NZS/Pb3sAe2PiNlwEN+TyCQBh6Rkx?= =?us-ascii?Q?CSxQLQbGtjSrG4NjA9RpJ9EVvB+TGX+Sa+KbB8tXV+7pGQ/YK1aqWPR+kMS9?= =?us-ascii?Q?ky8SMuFgiQ+fIEYFSqDWiCpQDkJYinQEQfczWQapyV4dc1fH+Ybiqk04WxOx?= =?us-ascii?Q?bC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GKnfELHqZRTCE53O5UHmsUnr+PvfkmP/X4j1XvMj5rFB8gOykGGQwd1q3HVXnNVUtGddoqT4LXIgzJCKiI1fj5AGz2dVQmEJWQQ==; 24:mtrOfEF8dp4LAacUWHVuQ88E5gk8ikAPkhXtkVLUH13g6D7RJcfS1IIU83/SagsuoZjeuKjwaLX/6ogV+r2TMzh288FCy9I7GxdSVYwXoTU= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Apr 2016 09:36:43.0856 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1714 Subject: [dpdk-dev] [PATCH 2/2] examples/l2fwd: increase mempool cache size for better performance 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, 19 Apr 2016 09:36:46 -0000 l3fwd sets the mempool cache size to 256, selected the same value for l2fwd Signed-off-by: Jerin Jacob --- examples/l2fwd/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/l2fwd/main.c b/examples/l2fwd/main.c index 7bdd1b5..24715e3 100644 --- a/examples/l2fwd/main.c +++ b/examples/l2fwd/main.c @@ -80,6 +80,7 @@ static volatile bool force_quit; #define MAX_PKT_BURST 32 #define BURST_TX_DRAIN_US 100 /* TX drain every ~100us */ +#define MEMPOOL_CACHE_SIZE 256 /* * Configurable number of RX/TX ring descriptors @@ -545,8 +546,9 @@ main(int argc, char **argv) timer_period *= rte_get_timer_hz(); /* create the mbuf pool */ - l2fwd_pktmbuf_pool = rte_pktmbuf_pool_create("mbuf_pool", NB_MBUF, 32, - 0, RTE_MBUF_DEFAULT_BUF_SIZE, rte_socket_id()); + l2fwd_pktmbuf_pool = rte_pktmbuf_pool_create("mbuf_pool", NB_MBUF, + MEMPOOL_CACHE_SIZE, 0, RTE_MBUF_DEFAULT_BUF_SIZE, + rte_socket_id()); if (l2fwd_pktmbuf_pool == NULL) rte_exit(EXIT_FAILURE, "Cannot init mbuf pool\n"); -- 2.1.0