From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it0-f48.google.com (mail-it0-f48.google.com [209.85.214.48]) by dpdk.org (Postfix) with ESMTP id 3A7403B5 for ; Tue, 8 Nov 2016 10:44:16 +0100 (CET) Received: by mail-it0-f48.google.com with SMTP id q124so194129423itd.1 for ; Tue, 08 Nov 2016 01:44:16 -0800 (PST) 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=/cix/z+UMDKMImH00/3pXWhZNTt+UAWmrUlFNP1mazc=; b=iMQHWJeQ/n3gauqskEK1i8VLu7/EIVY4LCPfe65NW5e9ZwxLRv26DHjYmb+UzvmPaA EOHywID/Ce3oqv9xQaLLSS/iEvX+B9xA6AOwMflpQ165//+p0i56NgMFINpTVoX9d19D fQtxF9sxRjYyZQUyjdhKjR7jckb/DQhJxhDoKwK94qg1+McaebIAcvHM0UOx45zhATTz i/HVPfAtnWYB8VBBIuloiE+Rrhi6FcQPVwsT0ji56vn1CyCIgIBiloT8eCdpKWN6nS6V eyO9a2f0QRnBds3THIokO8d2wjO97Fnv++DTynT2OrqY/Ln3V1SF7u6ixG7Fot/FLxod Xz6w== 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=/cix/z+UMDKMImH00/3pXWhZNTt+UAWmrUlFNP1mazc=; b=EbbsbRizpiTv2Q8v/MhRtecRDAw4Pc4EkZZ4yW4FFRD7MjJ7WDgvAqe1e/FZaxNlXw bIYPVv6q/p1fDuzGhtRw3jFurXOz7oqCyi8SKD5ZDUt3/ZtS9wNTLe90B0+mOh9lIbbi 16+DXzXfAt9pNfpXUZBLZ8e+wKWiA4lt/3oqmpEu9uVY17igFqlMGdIhAsBWDlQsGI95 aitCI63Hqt8op2DQ0yhvUJFITUEC1YljAnafTrZrfvA8Tgr79mxN7ALBN3GMnZJRpUp3 oD8lFVPf5GoE+UFbKSeqF9B2yTQqxQmm1Wj0m3Jy2rw9N51Nq8PLjwuwNVI0KkKp5FMJ NFFg== X-Gm-Message-State: ABUngveoahcvlvw9oNeNCUB22gweEH5/BVfq2mdqKvpWw/oeXO7qxDPWjknzUBSKqzEAbs726jomQlMiLiZA5g== X-Received: by 10.36.110.78 with SMTP id w75mr8337153itc.8.1478598255416; Tue, 08 Nov 2016 01:44:15 -0800 (PST) MIME-Version: 1.0 Received: by 10.36.110.197 with HTTP; Tue, 8 Nov 2016 01:44:14 -0800 (PST) In-Reply-To: <60A9A962-53C9-4050-8D84-74AD13CCE09B@intel.com> References: <60A9A962-53C9-4050-8D84-74AD13CCE09B@intel.com> From: Keren Hochman Date: Tue, 8 Nov 2016 11:44:14 +0200 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] Running 2 process on 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: Tue, 08 Nov 2016 09:44:16 -0000 Thank you for your response, I still can not run the 2 process together. if I add --no-pci to one process it can replace white and black lists right? Thanks, keren On Tue, Nov 8, 2016 at 12:36 AM, Wiles, Keith wrote= : > > > On Nov 7, 2016, at 7:28 AM, Keren Hochman > wrote: > > > > Hi, > > I need to run 2 process that uses dpdk on the same machine. One uses dp= dk > > drivers, and the other just read from a pcap file. If I disable > hugepages > > in the second process rte_mempool_create fails. What is the correct way > to > > handle this? > > If you look at the two scripts in Pktgen pktgen-master.sh and > pktgen-slave.sh these two scripts setup two instances of pktgen on the sa= me > machine. Plus you can read the README.md file. > > http://dpdk.org/browse/apps/pktgen-dpdk/refs/ > > You have to make sure you have enough memory (huge pages) allocated for > both instances to run. > > Then use =E2=80=94file-prefix XX to give each instance a different prefix= for the > huge page files in /dev/hugepages if that is the location of the files on > your system. I would remove any files in that directory to free up the > memory. > > Use the =E2=80=94socket-mem to allocate the correct amount of memory for = each > instances this way DPDK does not consume all the pages for a given instan= ce. > > Make sure you blacklist the ports you do not want on the first instance > using -b option and then blacklist the ports from the first instance whil= e > allowing the other ports to be used on the second one. > > That should do it for most cases. > > > > > Thanks, Keren > > Regards, > Keith > >