From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lb0-f179.google.com (mail-lb0-f179.google.com [209.85.217.179]) by dpdk.org (Postfix) with ESMTP id 1FEAAFFA for ; Thu, 7 May 2015 10:41:14 +0200 (CEST) Received: by lbbzk7 with SMTP id zk7so25818437lbb.0 for ; Thu, 07 May 2015 01:41:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=3xH7U6rg1cWKDcANG1RowvoTH0/tx5A5K9RrkAx3j7s=; b=ykydi6tK5z8cmGJP/ozqAReNge8elCUlacmcR2j+sAjPbBdJD946VobvxB54Uoa6kN JXlM6WsMUHo+3+djWqS42n6zcvB9ib3LKCnfvHW6pBvF1zHCJmPHTtNqv8WcKMx2jUfu 9oe87vgM8T1zIZ5avkqU7WwraeVtloQvO1QG6sWGxdciUK79Kt2MNi87Lj+/WHRFXgMp BWsxWY+Pd32Bv9dgq4tdGqM1Y2orJ/tzF5PC5I6CDEN3pxxBfFjWYsbr34FQRsREmTwV NrNP8bbWeK2SiUxjjxZogovY2fBsUsaxP4WxaHe1+ycxhW71gXqGJ0BEqlpwj2IyYiUz y4pA== MIME-Version: 1.0 X-Received: by 10.152.6.105 with SMTP id z9mr2115919laz.98.1430988073677; Thu, 07 May 2015 01:41:13 -0700 (PDT) Received: by 10.152.106.166 with HTTP; Thu, 7 May 2015 01:41:13 -0700 (PDT) Date: Thu, 7 May 2015 16:41:13 +0800 Message-ID: From: Cheng Kevin To: dev@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] Issue for storing the payload on vHost-testpmd 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: Thu, 07 May 2015 08:41:14 -0000 Hi all, Recently, i've modified the vHost app - testpmd. The modification includes the following steps: 1.obtain the payload of each packet 2.collect the information that i need. ex. 'url' 3.store the "url" into a disk file. ex. payload.txt The first two steps is achieved easily. However, step 3 is a problem now. i use fwrite to write the file. And fwrite occupy all of the free memory in the vm. At the end, testpmd will be terminated by os. Is there any way to get rid of this situation? Any advise will be appreciated. Best Regards, kevin