From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-f170.google.com (mail-io0-f170.google.com [209.85.223.170]) by dpdk.org (Postfix) with ESMTP id 997675A0A for ; Thu, 24 Dec 2015 07:35:14 +0100 (CET) Received: by mail-io0-f170.google.com with SMTP id 186so238652237iow.0 for ; Wed, 23 Dec 2015 22:35:14 -0800 (PST) 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=gb1ykAcce+XGqPN7PlNgy/YlbD4PBJ1P7jneVSIBgD4=; b=z3ryBFMDn0ShQnUmW8ATyglcM5/bnRvHED0+bRVpo25+SQETZgn28oWsJby+0/YjmL xyOHqd8Cx3ggQOP9/eOcrvqUZmwlvPafvtU/vGWoCB1I2utEg11jULC1UqQqbnct3ant 9PxhhJaYJ0uOUtyiqMUHfPGdx+XF2TLYPnMVQgx2HCpQ2TM53vV5+s8E1cjjIKq/sVj7 31CHbKhhoSS4v53cKaUh7MofCPoF4yzdHK7pFMkd8CROPYJTlb3+7Gt1X1PDQcPP/GXh ZEqqGSt/sJ5wXPBDBZDCOZr95PtYWHFKmE0zDlflNtBAD542NQyJICgouOPGBAHmiJ0B u9aA== MIME-Version: 1.0 X-Received: by 10.107.7.212 with SMTP id g81mr34821570ioi.81.1450938914166; Wed, 23 Dec 2015 22:35:14 -0800 (PST) Received: by 10.79.113.71 with HTTP; Wed, 23 Dec 2015 22:35:14 -0800 (PST) Date: Thu, 24 Dec 2015 15:35:14 +0900 Message-ID: From: Moon-Sang Lee To: dev@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] rte_prefetch0() is effective? 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, 24 Dec 2015 06:35:15 -0000 I see codes as below in example directory, and I wonder it is effective. Coherent IO is adopted to modern architectures, so I think that DMA initiation by rte_eth_rx_burst() might already fulfills cache lines of RX buffers. Do I really need to call rte_prefetchX()? nb_rx = rte_eth_rx_burst(portid, queueid, pkts_burst, MAX_PKT_BURST); ... /* Prefetch and forward already prefetched packets */ for (j = 0; j < (nb_rx - PREFETCH_OFFSET); j++) { rte_prefetch0(rte_pktmbuf_mtod(pkts_burst[ j + PREFETCH_OFFSET], void *)); l3fwd_simple_forward(pkts_burst[j], portid, qconf); } -- Moon-Sang Lee, SW Engineer Email: sang0627@gmail.com Wisdom begins in wonder. *Socrates*