From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from m15-6.126.com (m15-6.126.com [220.181.15.6]) by dpdk.org (Postfix) with ESMTP id EC8865902 for ; Sun, 29 Sep 2013 08:03:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=Received:Date:From:To:Subject:Content-Type: MIME-Version:Message-ID; bh=wCE7bihVr3GFUuTpDzodfT+zvqckX+L/9FVi EuyWpfI=; b=NAoud4FlBNYGCpo/syEbobEdLUlOdYZXv79BM/F+OSCm64sltKrF MNqxTfpU6E8Jhs3t15TK4RexEFmCKPEY/kGnQIZSyZsiNlMXXcAQ/TLucra7jx7y ifMT7PeoB56KzBhRvrM/k5jAZqafZp2FZ65fXLyGRl+ki+cn+U+O0KU= Received: from mydpdk$126.com ( [218.25.39.54] ) by ajax-webmail-wmsvr6 (Coremail) ; Sun, 29 Sep 2013 14:03:44 +0800 (CST) X-Originating-IP: [218.25.39.54] Date: Sun, 29 Sep 2013 14:03:44 +0800 (CST) From: "Jim Jia" To: "dev@dpdk.org" X-Priority: 3 X-Mailer: Coremail Webmail Server Version SP_ntes V3.5 build 20130822(23259.5548.5550) Copyright (c) 2002-2013 www.mailtech.cn 126com X-CM-CTRLDATA: VgSOc2Zvb3Rlcl9odG09ODk1Ojgx MIME-Version: 1.0 Message-ID: <3dd718cf.53bc.1416850bf49.Coremail.mydpdk@126.com> X-CM-TRANSID: BsqowGB5H0HBwkdS6CY_AA--.57376W X-CM-SenderInfo: hp1g1vbn6rjloofrz/1tbi1geniE0vKCavLwABsT X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== Content-Type: text/plain; charset=GBK Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] Issues on prefetch function 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: Sun, 29 Sep 2013 06:03:07 -0000 Hello, everyone I'm doing an experiment to test the performance of rte_prefetch0. I find the speed of that function is quit slow. When executing the following code, tit will take about 8,000,000 cycles (about 45 cycles each loop ). What's wrong with it? Thanks in advance. struct A { char a[64]; }; struct A foo[180000]; int main () { int i, j; long long a = rte_rdtsc (); for (j = 0; j < 180000; j++) { rte_prefetcht0 (&foo[j]); } long long b = rte_rdtsc (); printf ("%lld\n", b - a); return 0; }