From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f179.google.com (mail-pd0-f179.google.com [209.85.192.179]) by dpdk.org (Postfix) with ESMTP id 4FB721288 for ; Thu, 22 Jan 2015 11:23:53 +0100 (CET) Received: by mail-pd0-f179.google.com with SMTP id v10so862418pde.10 for ; Thu, 22 Jan 2015 02:23:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=WoY94xQ1v/dgPsaz+uTv5IRsuXXEBwuY1vpBtXSZAUk=; b=GlNS6pwAhogQTzBpa94MYxGnHzIzmEQ7qhSyOAuAEfswgMh1JF8Zxn/+t3YER/00CE EdD4gy098Oe7ABNWtHvqGZCSLvOjswdcPol6nzcmTW9ZuRV9V9t59Cb5X/iw5nDE4PCd y+QCtBqJXy97XEMa4wGVttAErq+NxjKSsjHvgqEcJ6753yk8a8Gat0QGkQQNdESJyWAZ KAUetYMOeVw2+wmppL9UTep3oJgKJaXBxg7BDDdE8uAfBTEAYxyxMGr6Myhq4VJVHsbq tnqrE4eNlu2hNh/Z7ceTFs3ERFBvvHUy7WxMv8HbK37YnwXjeoN86lfxWlH8havNgE6d ihlA== X-Gm-Message-State: ALoCoQkwkWI+BwqhFYBC21m03b/NttGfpHDm/IU13t6zJfCBhnLEsJauglF/MmpX98HONe1LInxz X-Received: by 10.67.8.98 with SMTP id dj2mr953967pad.134.1421922232556; Thu, 22 Jan 2015 02:23:52 -0800 (PST) Received: from [10.16.129.101] (napt.igel.co.jp. [219.106.231.132]) by mx.google.com with ESMTPSA id ak5sm8780897pad.44.2015.01.22.02.23.51 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Jan 2015 02:23:52 -0800 (PST) Message-ID: <54C0CFB5.909@igel.co.jp> Date: Thu, 22 Jan 2015 19:23:49 +0900 From: Tetsuya Mukawa User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Linhaifeng References: <54C070DF.1050006@huawei.com> <20150122044531.GA13230@mhcomputing.net> <54C08B54.50700@huawei.com> <20150122073526.GA14800@mhcomputing.net> In-Reply-To: <20150122073526.GA14800@mhcomputing.net> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] some questions about rte_memcpy 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, 22 Jan 2015 10:23:53 -0000 On 2015/01/22 16:35, Matthew Hall wrote: > On Thu, Jan 22, 2015 at 01:32:04PM +0800, Linhaifeng wrote: >> Do you mean if call rte_memcpy before rte_eal_init() would crash?why? > No guarantee. But a theory. It might use some things from the EAL init = to=20 > figure out which version of the accelerated algorithm to use. This selection is done at compile-time. And if the size is constant, I guess DPDK assumes memcpy is replaced by inline __builtin_memcpy. I haven't checked the performance of builtin memcpy, but probably much faster. Tetsuya > Matthew.