From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f176.google.com (mail-wr0-f176.google.com [209.85.128.176]) by dpdk.org (Postfix) with ESMTP id 608B15323 for ; Fri, 30 Jun 2017 14:27:54 +0200 (CEST) Received: by mail-wr0-f176.google.com with SMTP id k67so202963256wrc.2 for ; Fri, 30 Jun 2017 05:27:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=QQxL30f2raKVpKA9/cq1qkyIAK2KajEyZlnM1FQWdvM=; b=SdGCeHcppp88ZQDzurFG9zJOIqX/aLNoSB8yMuaW1xRvNg2yQkdKRMGBXp+RiqPhLc TmUnffMQGQX72ISeYZkgOYg/GV9zoF7q+vrB+RknOkR1QxtzhtXAogeW3Nstv3gEJen5 JV1NohIajrzwnq86cuZn/LNcIo75R2DHjfiJcZvCRkKlndR8dr6BgDDOYRgFDQGkCjCo 16Jaf5xPzdXfMW0/7mRHjc11NFI1r5zR0i4uQGv5dyuE8nBFqyOOPnO26qsxMbU3T8ME D2eZN/p14kkIQwi4iotMo5skPCQoGiGW+yMVBUZ9LUvQbYz8HL6K/IAA46G/NEBgygio I+tQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=QQxL30f2raKVpKA9/cq1qkyIAK2KajEyZlnM1FQWdvM=; b=RcwGPWMh7G/yvc6NxROMrY3axVhXHCSzu//3KZFR8NzLhCXu4n/u/Xbuc+zFJL3/EI CU8WNc02VBhLpkPU+jsta6utJwNHj92iiZzEjlanfli4R3hwVdUkgFvy0CZtcjkt7GH4 4AfnIDO/tO7O/Xu14MFvqDwBcu5VE+Hw+iSWAZ1afzfzudTeULa+7x/p9yJGQ+Mx/XZ5 z+iLqp2VMPPsQ++AwszS74+/mjV2BQMMhPlslsS+Bqn4q841OZD05WvUsA7HiIsQfPTl qcunGkHTMz6W3j17p5lP8qOD3XGcSjqBIXh3wP/2vUati9eOQBghph1KOJJ4M8kBGLvC Fw5w== X-Gm-Message-State: AKS2vOxntaCSlNDUxfJmZvz4uJIfE+xahMuG+9guZ6CbOnbVupPR1Rdv PoyUthE0ertNm5dJ X-Received: by 10.223.154.41 with SMTP id z38mr24727628wrb.76.1498825673979; Fri, 30 Jun 2017 05:27:53 -0700 (PDT) Received: from platinum (2a01cb0c03c651000226b0fffeed02fc.ipv6.abo.wanadoo.fr. [2a01:cb0c:3c6:5100:226:b0ff:feed:2fc]) by smtp.gmail.com with ESMTPSA id b192sm13153953wmf.25.2017.06.30.05.27.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 30 Jun 2017 05:27:53 -0700 (PDT) Date: Fri, 30 Jun 2017 14:27:51 +0200 From: Olivier Matz To: Jerin Jacob Cc: dev@dpdk.org Message-ID: <20170630142751.148b6c1a@platinum> In-Reply-To: <20170627115751.4722-1-jerin.jacob@caviumnetworks.com> References: <20170605163807.31941-1-jerin.jacob@caviumnetworks.com> <20170627115751.4722-1-jerin.jacob@caviumnetworks.com> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v2] mbuf: reduce pktmbuf init cycles 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: Fri, 30 Jun 2017 12:27:54 -0000 On Tue, 27 Jun 2017 17:27:51 +0530, Jerin Jacob wrote: > There is no need for initializing the complete > packet buffer with zero as the packet data area will be > overwritten by the NIC Rx HW anyway. > > The testpmd configures the packet mempool > with around 180k buffers with > 2176B size. In existing scheme, the init routine > needs to memset around ~370MB vs the proposed scheme > requires only around ~22MB on 128B cache aligned system. > > Useful in running DPDK in HW simulators/emulators, > where millions of cycles have an impact on boot time. > > Signed-off-by: Jerin Jacob Acked-by: Olivier Matz