From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <thomas@monjalon.net>
Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com
 [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 2319EFFA
 for <dev@dpdk.org>; Tue, 12 Sep 2017 22:14:05 +0200 (CEST)
Received: from compute1.internal (compute1.nyi.internal [10.202.2.41])
 by mailout.nyi.internal (Postfix) with ESMTP id B858A20E46;
 Tue, 12 Sep 2017 16:14:04 -0400 (EDT)
Received: from frontend1 ([10.202.2.160])
 by compute1.internal (MEProxy); Tue, 12 Sep 2017 16:14:04 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h=
 cc:content-transfer-encoding:content-type:date:from:in-reply-to
 :message-id:mime-version:references:subject:to:x-me-sender
 :x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=dSlmzwuOKRAo6YB
 ewDkEImEC81EMPQ5S12P7yuVZ1LI=; b=N2Gx9Om3t8XY6QBuRo6ICivJD+b2WlK
 CqzDTo1c0EB12CzoUvOTpZUT+9W2Gj+kcMXFsIMW39fUL7AxUDrXoTpjBhNnKQ0T
 DferYZ2v2m7F2qF++1BV5hhUHVUwq3Ul9Ml/o3RFUSuwFnCz7FZt1PWpoLoGmNCU
 H0SYRUii1zac=
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-transfer-encoding:content-type
 :date:from:in-reply-to:message-id:mime-version:references
 :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s=
 fm1; bh=dSlmzwuOKRAo6YBewDkEImEC81EMPQ5S12P7yuVZ1LI=; b=NIT5cneR
 UhYOBwsAzXWIW674bnxRsGxDwU9j5UfrEUuec1fr3j9BeKwB8BTXk+Ax9AJyeg/L
 T70aq0napYDiyNhf4/o0I+/MP+BZhwLx4xePAPJzdRrC2dxIReU4hb9DFiIsJiqW
 ac3FivMmr5DfrB7+KcUL8nRVYgb3+gS7mqa20qtxQF3kqwsnSpf/NyBmz3y7yhM0
 sOF/1TUhl0gu+zf0/VWurThXE/eIHy8Rrm9V/QegrzsPtMrzsV4SXDD2yg49AlNZ
 QqK4kKWnJ1Qx2Uw11bxxVcI5/Nbm0VxoevyXaPjDGE5LpjMi+846e06dOOaoo2n4
 Wj3hJl0kg8Gd3w==
X-ME-Sender: <xms:DEC4WUEd-korNtEqd6-v5FhSNI70TnjB941jm133MjUFU38NejIdeg>
X-Sasl-enc: 8xz8h8Yc4LAsWe6C3gvwYIrb8/T6rKfhRFjm2ROM3d1Y 1505247244
Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184])
 by mail.messagingengine.com (Postfix) with ESMTPA id 6D3D87E8EE;
 Tue, 12 Sep 2017 16:14:04 -0400 (EDT)
From: Thomas Monjalon <thomas@monjalon.net>
To: Aaron Conole <aconole@redhat.com>, Eelco Chaudron <echaudro@redhat.com>
Cc: dev@dpdk.org, jingjing.wu@intel.com, john.mcnamara@intel.com
Date: Tue, 12 Sep 2017 22:14:01 +0200
Message-ID: <1863612.973jloI4LL@xps>
In-Reply-To: <f7to9qgynql.fsf@dhcp-25-97.bos.redhat.com>
References: <22990026376b08418cb0eb6f028840c03e89f47f.1505221429.git.echaudro@redhat.com>
 <f7to9qgynql.fsf@dhcp-25-97.bos.redhat.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"
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 <dev.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Tue, 12 Sep 2017 20:14:05 -0000

12/09/2017 16:50, Aaron Conole:
> Eelco Chaudron <echaudro@redhat.com> writes:
> 
> > 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 <echaudro@redhat.com>
> 
> Acked-by: Aaron Conole <aconole@redhat.com>

It is interesting, but why make it in testpmd?

Maybe it should be documented in this guide:
	http://dpdk.org/doc/guides/linux_gsg/nic_perf_intel_platform.html