From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-f177.google.com (mail-io0-f177.google.com [209.85.223.177]) by dpdk.org (Postfix) with ESMTP id 927B25595 for ; Wed, 28 Sep 2016 09:36:41 +0200 (CEST) Received: by mail-io0-f177.google.com with SMTP id 92so42153810iol.2 for ; Wed, 28 Sep 2016 00:36:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lightcyber-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=D1PPQLtMsrdsrWnK/5NMY9kQytStEgvTpLryY7mGjTM=; b=ToI4zTWkEiiq5LHcn5O0pOVc2IgFwFG30kn4ZFogEavz1VHl5j40ioCZw4e061nJgB Sd/Tzd/UcEqAun/z32Goe0aZZiZExpjn0n3eamOPFFUnG31qxsqg1vuiBxQEyhWxy9xE EVzdx3GVoLu7Omvcvm6Wk4xoazQBeSCTAPjMWlcqZZr/vOyFABtRROQnB19dfgVCR4oH +SbgpGg3PKOgCOprpUwUwyWXq9koiKmYOyzztATc240yUnaitJR93QMi+kKAXlva2I25 6tHB7PjM90OoJFsd8ZZg+9tFwK4V746qDcKwgTMiGXxE9Zgb7BzO4dlQhGoKLPfFlPU4 kcJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=D1PPQLtMsrdsrWnK/5NMY9kQytStEgvTpLryY7mGjTM=; b=msVZ7ZtGdcvaGF1jj19xEdlsGj4lEL3qMG6RPeEOogDKVKFbF7Wc0iQdiuAefRPbRj Pnuf30tQRgl9/n+9r3PBtdm8s+kXcF3KKePQ3xG8NNeJmOn4S/yLS8BIR11N6z02KcsM DgiVlZp7gtZAObAIkD9sFGAwASYDevvpcKsjW5n2NAhX5yG7l4cWqt0bpo7jxkZ7NfAN vegHIp9SLBnIdLBkCee1BsrywFPveh3sYmpEpziJOo9IzhRRnAfD5kuAES/NnNqTd78K 3Z5WHBZ73Z/WYkbDC4eMDbfqWTXhTmYQFrmRZH7RuX1shSgkkIuYKV1fHrG4dA1G+CKT mBvQ== X-Gm-Message-State: AE9vXwM2LozC8E+bPEum+yLC0ENl80DRhiaHGeiGBc6YvxSqw5lipXEHuUrpkopf5aYe5iyPzcF2w6JZ1ZVB/A== X-Received: by 10.107.168.195 with SMTP id e64mr38721428ioj.205.1475048200990; Wed, 28 Sep 2016 00:36:40 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.194.199 with HTTP; Wed, 28 Sep 2016 00:36:40 -0700 (PDT) In-Reply-To: <7032DA68-EB05-4D42-A528-ED14954D91F4@intel.com> References: <7032DA68-EB05-4D42-A528-ED14954D91F4@intel.com> From: Keren Hochman Date: Wed, 28 Sep 2016 10:36:40 +0300 Message-ID: To: "Wiles, Keith" Cc: "dev@dpdk.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] Run 2 different testpmd from the same machine 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, 28 Sep 2016 07:36:41 -0000 Is there any way to connect to the same pci from 2 different applications? Both applications do not transmit any data, and one application only uses rte_eal_init and rte_eth_link? Thank you, Keren On Mon, Sep 12, 2016 at 4:29 PM, Wiles, Keith wrote= : > > Regards, > Keith > > > On Sep 12, 2016, at 6:18 AM, Keren Hochman > wrote: > > > > Hi, > > I tried to run 2 instances of testpmd from the same machine but receive= d > a > > message: Cannot get hugepage information when I tried to run the secon= d > > instance. Is there a way to disable hugepages or allow to instances to > > access it ? Thanks. keren > > Running two instances or more DPDK applications you need to make sure the > resources are split up correctly. You did not supply your command lines > being used, but I will try to state how it is done. > > First memory or huge pages must to allocated to each instance using the > =E2=80=94socket-mem 128,128 or =E2=80=94socket-men 128 if you only have o= ne socket in your > system. Make sure you have enough huge pages allocated in the > /etc/sysctl.conf file for both instances. In the =E2=80=94socket-mem 128,= 128 you > are giving 256 huge pages to one instance and if the second instance used > =E2=80=94socket-mem 256,256 then 512 pages, which means you need 256+512 = huge pages > in the system. > > Next the huge page files in the /dev/hugepage directory must have > different prefixes by using the =E2=80=94file-prefix option giving differ= ent file > prefixes for each instance. If you have already run DPDK instance once > without the option please =E2=80=98sudo rm -fr /dev/hupages/*=E2=80=99 to= release the > current huge pages. > > Next you need to make sure you blacklist the port using the -b option on > the command line of the ports not used by this instance. Each instance > needs to blacklist the ports not being used. This seems to be the easiest > for me, but you could look into use the whitelist option as well. > > Next make sure you allocate different cores to each instance using the -c > or -l option, the -l option is a bit easier to read IMO. > > Next use the =E2=80=94proc-type auto in both instances just to be clear. = This > could be optional I think. > > I hope this helps. You can also pull down Pktgen and look at the > pktgen-master.sh and pktgen-slave.sh scripts and modify them for your > needs. http://dpdk.org/download > >