From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yk0-f172.google.com (mail-yk0-f172.google.com [209.85.160.172]) by dpdk.org (Postfix) with ESMTP id 6B52F5A98 for ; Wed, 25 Mar 2015 17:20:43 +0100 (CET) Received: by ykcn8 with SMTP id n8so15364701ykc.3 for ; Wed, 25 Mar 2015 09:20:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=OUIa6Tu28ycJ2G5t9uM0fQwzwLPz85V4zSyXOqXXe+w=; b=c7nAYaCu4I4Xxf3LQqMvdRr62QwjjFywb84qYwdU6VBvUIFJK6XAeWsOCHIWnw9/hL AwBxsJAtNxlSKLpjESMjgJ95zZMcndAtEyILXK/JVaqi5VG18JOjKiFPAbwB7Jso41gM rAXE9mQHoIs/GNlminTJJPxSymym4Xgx8OJ+IaRUIQ1YEfpnqmIfrf2bLNmBu6b+wxQN siK9txbAlli+TWyclT20zZgpHFqCIBWpJBurs7P0UYTzyMJBYtZZwPILw71RKFh67dNH eFy77JiNsiAzzQ5QplpF92eY4eRazwquJcYpbLr+k2F+GOPA305BkStJM1Aj0LSk6J6f 3H7Q== MIME-Version: 1.0 X-Received: by 10.236.109.164 with SMTP id s24mr11124845yhg.39.1427300442888; Wed, 25 Mar 2015 09:20:42 -0700 (PDT) Received: by 10.170.174.3 with HTTP; Wed, 25 Mar 2015 09:20:42 -0700 (PDT) In-Reply-To: <20150325150156.GA5620@bricha3-MOBL3> References: <20150325150156.GA5620@bricha3-MOBL3> Date: Thu, 26 Mar 2015 00:20:42 +0800 Message-ID: From: Cheng Kevin To: Bruce Richardson Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 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 16:20:43 -0000 Mr. Bruce Richardson Yes, you are right. This really bother me. Is there any way to get rid of system call? Maybe some DPDK threading API? Maybe i should use a extra nic card for posting the data out through internet, instead of writing on the disk - ex. fwrite. Or you have some better advises?? Thanks Kevin 2015-03-25 23:01 GMT+08:00 Bruce Richardson : > 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 >