From: Dharmesh Mehta <mehtadharmesh@yahoo.com>
To: "Wiles, Keith" <keith.wiles@intel.com>
Cc: "users@dpdk.org" <users@dpdk.org>
Subject: Re: [dpdk-users] Tx/Rx using single ethernet port.
Date: Fri, 12 May 2017 00:52:14 +0000 (UTC) [thread overview]
Message-ID: <1506532609.7690059.1494550334223@mail.yahoo.com> (raw)
In-Reply-To: <A48DE9B5-189E-4548-801E-76F18C78E4A3@intel.com>
Hello Keith,
Thank you so much, As per your suggestion- now i can run multiple instance of same application. Issue was, I was not doing black list of unused ports.
Once again, thanks for your help.
Regards,D.
From: "Wiles, Keith" <keith.wiles@intel.com>
To: Dharmesh Mehta <mehtadharmesh@yahoo.com>
Cc: "users@dpdk.org" <users@dpdk.org>
Sent: Thursday, May 11, 2017 7:39 AM
Subject: Re: [dpdk-users] Tx/Rx using single ethernet port.
> On May 11, 2017, at 12:55 AM, Dharmesh Mehta <mehtadharmesh@yahoo.com> wrote:
>
> Hello,
> I am new to DPDK world, and looking for any working example to do tx/rx on single ethernet port. Also please include what arguments are required in order to run.
> Is it possible to run multiple instance of same application? I wrote one app, which sens data (verified on wireshark), but when i try to run second instance of same app, my first instance of same app stop sending data. I am passing different name using --file-prefix to the both instances app. Any help is really appreciated.
> ThxD.
Running two instance or more you have to split up the resources like lcores, ports, memory and the file-prefix. Make sure you have enough memory setup to run two instances. If your app needs 32 huge pages then make sure you have 64 huge pages allocated. Set the —file-prefix different for each instance. Make sure you use the -m <memSize> or —socket-mem options to limit the amount of memory each instance consumes. Make sure you blacklist/whitelist the ports correctly to give a port(s) to each instance. Then make sure you use different cores for each instance.
In Pktgen I have two scripts I use to run two instances. Here are the scripts called pktgen-master.sh and pktgen-slave.sh
pktgen-master.sh
————————
dpdk_opts="-l 8-16 -n 4 --proc-type auto --log-level 7 --socket-mem 512,512 --file-prefix pg1"
pktgen_opts="-T -P"
port_map="-m [9:10].0 -m [11:12].1 -m [13:14].2 -m [15:16].3"
bl_common="-b 05:00.0 -b 05:00.1 -b 82:00.0 -b 83:00.0"
black_list="${bl_common} -b 81:00.0 -b 81:00.1 -b 81:00.2 -b 81:00.3"
load_file="-f themes/black-yellow.theme"
echo ${cmd} ${dpdk_opts} ${black_list} -- ${pktgen_opts} ${port_map} ${load_file}
sudo ${cmd} ${dpdk_opts} ${black_list} -- ${pktgen_opts} ${port_map} ${load_file}
pktgen-slave.sh
———————
dpdk_opts="-l 18-26 -n 4 --proc-type auto --log-level 7 --socket-mem 512,512 --file-prefix pg2"
pktgen_opts="-T -P"
port_map="-m [19:20].0 -m [21:22].1 -m [23:24].2 -m [25:26].3"
bl_common="-b 05:00.0 -b 05:00.1 -b 82:00.0 -b 83:00.0"
black_list="${bl_common} -b 04:00.0 -b 04:00.1 -b 04:00.2 -b 04:00.3"
load_file="-f themes/black-yellow.theme"
echo ${cmd} ${dpdk_opts} ${black_list} -- ${pktgen_opts} ${port_map} ${load_file}
sudo ${cmd} ${dpdk_opts} ${black_list} -- ${pktgen_opts} ${port_map} ${load_file}
Regards,
Keith
From andrey.chilikin@intel.com Fri May 12 14:52:26 2017
Return-Path: <andrey.chilikin@intel.com>
Received: from mga02.intel.com (mga02.intel.com [134.134.136.20])
by dpdk.org (Postfix) with ESMTP id 777D6282
for <users@dpdk.org>; Fri, 12 May 2017 14:52:25 +0200 (CEST)
Received: from orsmga004.jf.intel.com ([10.7.209.38])
by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;
12 May 2017 05:52:24 -0700
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="5.38,329,1491289200"; d="scan'208";a="86770091"
Received: from irsmsx110.ger.corp.intel.com ([163.33.3.25])
by orsmga004.jf.intel.com with ESMTP; 12 May 2017 05:52:23 -0700
Received: from irsmsx106.ger.corp.intel.com ([169.254.8.202]) by
irsmsx110.ger.corp.intel.com ([169.254.15.151]) with mapi id 14.03.0319.002;
Fri, 12 May 2017 13:52:22 +0100
From: "Chilikin, Andrey" <andrey.chilikin@intel.com>
To: suryanathan p <suryanathan.p@gmail.com>, "users@dpdk.org" <users@dpdk.org>
Thread-Topic: [dpdk-users] RSS for non IP protocols
Thread-Index: AQHSxRFK8K83mt1fwEKIHm9grJulD6HwsJeg
Date: Fri, 12 May 2017 12:52:22 +0000
Message-ID: <AAC06825A3B29643AF5372F5E0DDF053646980DE@IRSMSX106.ger.corp.intel.com>
References: <CAK7-UXoXp6KG5AMvH0LHXEuokza=krkzr0EzTz08x1Vs=K3xGA@mail.gmail.com>
In-Reply-To: <CAK7-UXoXp6KG5AMvH0LHXEuokza=krkzr0EzTz08x1Vs=K3xGA@mail.gmail.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMmU5MDRhYTEtMDFkOC00YjcwLWJmZjYtNDAwZDVjYzA4ODkyIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6IktIY2xqWnhnblNpYmRrTys3Q0xobk92TUNCcWJsRm1GUmxRekVMM1c0Zzg9In0x-ctpclassification: CTP_IC
dlp-product: dlpe-windows
dlp-version: 10.0.102.7
dlp-reaction: no-action
x-originating-ip: [163.33.239.181]
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Subject: Re: [dpdk-users] RSS for non IP protocols
X-BeenThere: users@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK usage discussions <users.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/users>,
<mailto:users-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/users/>
List-Post: <mailto:users@dpdk.org>
List-Help: <mailto:users-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/users>,
<mailto:users-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Fri, 12 May 2017 12:52:26 -0000
SGksDQoNCkZvciBYNzEwIGRlZmF1bHQgaW5wdXQgc2V0IGZvciBFVEhfUlNTX0wyX1BBWUxPQUQg
Zmxvd3MgaW5jbHVkZXMgb25seSBFdGhlcnR5cGUgaXRzZWxmLiBIYXZlIGEgbG9vayBhdCAiIDcu
MS4yIFBhY2tldCB0eXBlcyBhbmQgaW5wdXQgc2V0IiBvZiB0aGUgbGF0ZXN0IFg3MTAgZGF0YXNo
ZWV0Lg0KWW91IGNhbiBjaGFuZ2UgaXQgYnkgY29uZmlndXJpbmcgbmV3IGlucHV0IHNldCB0byBp
bmNsdWRlIDggd29yZHMgKFJURV9FVEhfSU5QVVRfU0VUX0ZMRVhfUEFZTE9BRF8xU1RfV09SRCB0
byBSVEVfRVRIX0lOUFVUX1NFVF9GTEVYX1BBWUxPQURfOFRIX1dPUkQpIG9mIEwyIHBheWxvYWQg
dXNpbmcgInN0cnVjdCBydGVfZXRoX2hhc2hfZmlsdGVyX2luZm8gaW5mbyIgYW5kIHRoZW4gY2Fs
bGluZyBydGVfZXRoX2Rldl9maWx0ZXJfY3RybChwb3J0aWQsIFJURV9FVEhfRklMVEVSX0hBU0gs
IFJURV9FVEhfRklMVEVSX1NFVCwgJmluZm8pOw0KDQovQW5kcmV5DQoNCi0tLS0tT3JpZ2luYWwg
TWVzc2FnZS0tLS0tDQpGcm9tOiB1c2VycyBbbWFpbHRvOnVzZXJzLWJvdW5jZXNAZHBkay5vcmdd
IE9uIEJlaGFsZiBPZiBzdXJ5YW5hdGhhbiBwDQpTZW50OiBUaHVyc2RheSwgTWF5IDQsIDIwMTcg
OTowMSBQTQ0KVG86IHVzZXJzQGRwZGsub3JnDQpTdWJqZWN0OiBbZHBkay11c2Vyc10gUlNTIGZv
ciBub24gSVAgcHJvdG9jb2xzDQoNCkhpLA0KDQpJcyB0aGVyZSBhIHdheSB3ZSBjYW4gZW5hYmxl
IFJTUyBmb3Igbm9uIElQIHByb3RvY29scz8gQnkgZGlzYWJsaW5nIFJTUywgYWxsIHRoZSBwYWNr
ZXRzIGFyZSBxdWV1ZWQgdG8gcnggcXVldWUgMC4gSSB0cmllZCB0aGUgRVRIX1JTU19MMl9QQVlM
T0FEIG9wdGlvbiBhbmQgdGhhdCBkb24ndCBzZWVtIHRvIGhlbHAgb24gZWl0aGVyIHRoZSA4MjU5
OSBvciB0aGUgWDcxMCBjb250cm9sbGVycy4NCg0KUmVnYXJkcywNClN1cnlhbmF0aGFuIFANCg=
prev parent reply other threads:[~2017-05-12 0:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-11 0:22 [dpdk-users] CMake configuration Rob Zimmerman
2017-05-11 5:55 ` [dpdk-users] Tx/Rx using single ethernet port Dharmesh Mehta
[not found] ` <A48DE9B5-189E-4548-801E-76F18C78E4A3@intel.com>
2017-05-12 0:52 ` Dharmesh Mehta [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1506532609.7690059.1494550334223@mail.yahoo.com \
--to=mehtadharmesh@yahoo.com \
--cc=keith.wiles@intel.com \
--cc=users@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).