From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 538F57CBD for ; Wed, 13 Sep 2017 11:15:24 +0200 (CEST) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C5BC5883BF; Wed, 13 Sep 2017 09:15:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com C5BC5883BF Authentication-Results: ext-mx02.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx02.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=maxime.coquelin@redhat.com Received: from [10.36.112.35] (ovpn-112-35.ams2.redhat.com [10.36.112.35]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 04FE017976; Wed, 13 Sep 2017 09:15:20 +0000 (UTC) To: Eelco Chaudron , jingjing.wu@intel.com Cc: dev@dpdk.org References: <22990026376b08418cb0eb6f028840c03e89f47f.1505221429.git.echaudro@redhat.com> From: Maxime Coquelin Message-ID: <6e9f3c2e-a2d8-54ba-f52e-3cc87de03f16@redhat.com> Date: Wed, 13 Sep 2017 11:15:18 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <22990026376b08418cb0eb6f028840c03e89f47f.1505221429.git.echaudro@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Wed, 13 Sep 2017 09:15:22 +0000 (UTC) Subject: Re: [dpdk-dev] [PATCH] app/testpmd: adds mlockall() to fix pages 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: Wed, 13 Sep 2017 09:15:24 -0000 On 09/12/2017 03:08 PM, Eelco Chaudron wrote: > 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 > --- > app/test-pmd/testpmd.c | 3 +++ > 1 file changed, 3 insertions(+) > Acked-by: Maxime Coquelin Thanks, Maxime