[dpdk-dev] Running 2 process on the same machine
keren.hochman at lightcyber.com
Tue Nov 8 13:02:32 CET 2016
Also, I can't understand how to define socket-mem. I did not see anything
related to hugepages in /etc/sysctl.conf. Can i mount hugepages to 2
different dirs instead and use --huge-dir ?
On Tue, Nov 8, 2016 at 11:44 AM, Keren Hochman <keren.hochman at lightcyber.com
> 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
> Thanks, keren
> On Tue, Nov 8, 2016 at 12:36 AM, Wiles, Keith <keith.wiles at intel.com>
>> > On Nov 7, 2016, at 7:28 AM, Keren Hochman <keren.hochman at lightcyber.com>
>> > Hi,
>> > I need to run 2 process that uses dpdk on the same machine. One uses
>> > drivers, and the other just read from a pcap file. If I disable
>> > in the second process rte_mempool_create fails. What is the correct way
>> > 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 same
>> machine. Plus you can read the README.md file.
>> You have to make sure you have enough memory (huge pages) allocated for
>> both instances to run.
>> Then use —file-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
>> Use the —socket-mem to allocate the correct amount of memory for each
>> instances this way DPDK does not consume all the pages for a given instance.
>> 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 while
>> allowing the other ports to be used on the second one.
>> That should do it for most cases.
>> > Thanks, Keren
More information about the dev