From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 5E0332B8F for ; Wed, 7 Dec 2016 10:36:59 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga103.jf.intel.com with ESMTP; 07 Dec 2016 01:36:58 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,310,1477983600"; d="scan'208";a="1078609607" Received: from yliu-dev.sh.intel.com (HELO yliu-dev) ([10.239.67.162]) by fmsmga001.fm.intel.com with ESMTP; 07 Dec 2016 01:36:56 -0800 Date: Wed, 7 Dec 2016 17:37:42 +0800 From: Yuanhan Liu To: "Yang, Zhiyong" Cc: Maxime Coquelin , "dev@dpdk.org" , "Richardson, Bruce" , "Ananyev, Konstantin" , "Pierre Pfister (ppfister)" Message-ID: <20161207093742.GF31182@yliu-dev.sh.intel.com> References: <1480926387-63838-1-git-send-email-zhiyong.yang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [dpdk-dev] [PATCH 0/4] eal/common: introduce rte_memset and related test 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, 07 Dec 2016 09:36:59 -0000 On Wed, Dec 07, 2016 at 09:28:17AM +0000, Yang, Zhiyong wrote: > > >> Wouldn't be worth to also use rte_memset in Virtio PMD (not > > >> compiled/tested)? : > > >> > > > > > > I think rte_memset maybe can bring some benefit here, but , I'm not > > > clear how to enter the branch and test it. :) > > > > Indeed, you will need Pierre's patch: > > [dpdk-dev] [PATCH] virtio: tx with can_push when VERSION_1 is set I will apply it shortly. > > Thanks, > > Maxime > > > > Thank you Maxime. > I can see a little, but not obviously performance improvement here. Are you you have run into that code piece? FYI, you have to enable virtio 1.0 explicitly, which is disabled by deafault. > You know, memset(hdr, 0, head_size); only consumes fewer cycles for virtio pmd. > head_size only 10 or 12 bytes. > I optimize rte_memset perf further for N=8~15 bytes. > The main purpose of Introducing rte_memset is that we can use it > to avoid perf drop issue instead of glibc memset on some platform, I think. For this case (as well as the 4th patch), it's more about making sure rte_memset is inlined. --yliu