From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id ADDED5677 for ; Wed, 25 Mar 2015 16:02:22 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP; 25 Mar 2015 08:01:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,465,1422950400"; d="scan'208";a="472460938" Received: from bricha3-mobl3.ger.corp.intel.com ([10.243.20.28]) by FMSMGA003.fm.intel.com with SMTP; 25 Mar 2015 08:01:57 -0700 Received: by (sSMTP sendmail emulation); Wed, 25 Mar 2015 15:01:57 +0025 Date: Wed, 25 Mar 2015 15:01:57 +0000 From: Bruce Richardson To: Cheng Kevin Message-ID: <20150325150156.GA5620@bricha3-MOBL3> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Shannon Ltd. User-Agent: Mutt/1.5.23 (2014-03-12) Cc: dev@dpdk.org Subject: Re: [dpdk-dev] DPDK testpmd, Virtual Disk IO limitation X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Mar 2015 15:02:23 -0000 On Wed, Mar 25, 2015 at 10:06:48PM +0800, Cheng Kevin wrote: > Hi all, > > I am a beginner of DPDK. Recently, i am interest in DPDK vHost app - > testpmd. > > And i have been tracing on testpmd.c and iofwd.c for a while. > > Also add some code inside iofwd.c for storing the payload of packets. > > Everything goes fine, and the performance is great as expected. > > But when i use fwrite to store the payload into a file, > > the performance decrease from 800mbps to 3mbps (input stream is 1 Gbps). > > Is is caused by the limitation of Virtual Disk IO? How can i solve it? > > I have tried to search the answer, some people say "pthread" might solve > the problem. > > Can someone give me some hint, i really appreciate for your help. > > > Best Regard, > > Kevin Cheng Two general issues you will hit writing to disk: 1) IO, including disk IO, is slow 2) System calls are slow. You are probably hitting both bottlenecks. /Bruce