From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id CE83C1B1C3 for ; Tue, 10 Oct 2017 01:40:26 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Oct 2017 16:40:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,502,1500966000"; d="scan'208";a="908338779" Received: from unknown (HELO [10.241.225.162]) ([10.241.225.162]) by FMSMGA003.fm.intel.com with ESMTP; 09 Oct 2017 16:40:25 -0700 To: Eelco Chaudron , jingjing.wu@intel.com Cc: dev@dpdk.org References: <5482c65ba817cd8543fd9634943a1c3b34fd1081.1506672633.git.echaudro@redhat.com> From: Ferruh Yigit Message-ID: Date: Tue, 10 Oct 2017 00:40:25 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <5482c65ba817cd8543fd9634943a1c3b34fd1081.1506672633.git.echaudro@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v2] app/testpmd: adds mlockall() to avoid pages being swapped out X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Oct 2017 23:40:27 -0000 On 9/29/2017 9:11 AM, Eelco Chaudron wrote: > v2: > * Moved mlockall() after rte_eal_init() to allow rte_log() to be used > * Check for mlockall() return value, and add an rte_log() > > Call the mlockall() function, to attempt to lock all of its process > memory into physical RAM, and preventing the kernel from paging any > of its memory to disk. > > When using testpmd for performance testing, depending on the code path > taken, we see a couple of page faults in a row. These faults effect > the overall drop-rate of testpmd. On Linux the mlockall() call will > prefault all the pages of testpmd (and the DPDK libraries if linked > dynamically), even without LD_BIND_NOW. > > Signed-off-by: Eelco Chaudron Acked-by: Aaron Conole Acked-by: Maxime Coquelin Applied to dpdk/master, thanks. (Kept ACKs from previous version of the patch)