DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] non-x86 ?  Re: Would DPDK run on AMD processors
@ 2014-07-03 13:35 Derek Wasely
  2014-07-04 11:25 ` Yerden Zhumabekov
  0 siblings, 1 reply; 3+ messages in thread
From: Derek Wasely @ 2014-07-03 13:35 UTC (permalink / raw)
  To: dev

how about running DPDK on other processors ?   Any licensing restriction on using it on non-x86 arch ?  Does it work automatically on say  PPC or OCTEON ?


Derek

--

Hi,

Has anybody attempted to run DPDK on AMD processors.
Does it run straightforward or would there be some obvious issues where
porting would be needed, I welcome any comments.

Regards
-Prashant

From anjali@juniper.net  Thu Jul  3 16:40:19 2014
Return-Path: <anjali@juniper.net>
Received: from na01-bn1-obe.outbound.protection.outlook.com
 (mail-bn1blp0187.outbound.protection.outlook.com [207.46.163.187])
 by dpdk.org (Postfix) with ESMTP id EF8F730D
 for <dev@dpdk.org>; Thu,  3 Jul 2014 16:40:18 +0200 (CEST)
Received: from BL2PR05MB113.namprd05.prod.outlook.com (10.255.232.20) by
 BL2PR05MB116.namprd05.prod.outlook.com (10.255.232.28) with Microsoft SMTP
 Server (TLS) id 15.0.980.8; Thu, 3 Jul 2014 14:40:38 +0000
Received: from BL2PR05MB113.namprd05.prod.outlook.com ([169.254.1.179]) by
 BL2PR05MB113.namprd05.prod.outlook.com ([169.254.1.179]) with mapi id
 15.00.0980.000; Thu, 3 Jul 2014 14:40:38 +0000
From: Anjali Kulkarni <anjali@juniper.net>
To: "dev@dpdk.org" <dev@dpdk.org>
Thread-Topic: Question on huge pages and running DPDK apps inside containers
Thread-Index: AQHPlszBwJhDaMaGz0qB84jVXin3iQ=Date: Thu, 3 Jul 2014 14:40:38 +0000
Message-ID: <CFDAB971.2ABC8%anjali@juniper.net>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/14.3.9.131030
x-originating-ip: [66.129.239.11]
x-microsoft-antispam: BCL:0;PCL:0;RULEID:
x-forefront-prvs: 0261CCEEDF
x-forefront-antispam-report: SFV:NSPM;
 SFS:(6009001)(189002)(199002)(77982001)(85306003)(86362001)(101416001)(54356999)(106356001)(76482001)(77096002)(16236675004)(81342001)(81542001)(106116001)(80022001)(36756003)(92566001)(99396002)(92726001)(107886001)(20776003)(79102001)(107046002)(85852003)(83072002)(66066001)(2351001)(105586002)(74662001)(85806002)(87936001)(229853001)(46102001)(2656002)(64706001)(50986999)(99286002)(95666004)(74502001)(83506001)(83322001)(19580405001)(19580395003)(31966008)(21056001)(14583001);
 DIR:OUT; SFP:; SCL:1; SRVR:BL2PR05MB116;
 H:BL2PR05MB113.namprd05.prod.outlook.com; FPR:; MLV:sfv; PTR:InfoNoRecords;
 MX:1; LANG:en;
MIME-Version: 1.0
X-OriginatorOrg: juniper.net
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
X-Content-Filtered-By: Mailman/MimeDel 2.1.15
Subject: [dpdk-dev] Question on huge pages and running DPDK apps inside
	containers
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: patches and discussions about DPDK <dev.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Thu, 03 Jul 2014 14:40:19 -0000

Hi,

I am encountering a problem running DPDK apps inside containers, and need your help:

I create containers by doing:

lxc-create -t ubuntu -n fpc0
lxc-start -n fpc0

(Reserve hugepages and follow all other steps to run the DPDK app on host)

Then run a standard dpdk app, on host, it works fine, inside container, it runs into this problem:

ubuntu@fpc0:/dpdk/x86_64-default-linuxapp-gcc/app$ ./testpmd -c f -n 4 -- -i
rte_eal_init : 857
opt : 99
opt : 110
EAL: No free hugepages reported in hugepages-2048kB
PANIC in rte_eal_init():
Cannot get hugepage information
6: [./testpmd() [0x402941]]
5: [/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f7f14f50ec5]]
4: [./testpmd() [0x40237e]]
3: [./testpmd() [0x478edb]]
2: [./testpmd() [0x4022ad]]
1: [./testpmd() [0x47e3c3]]
Aborted
ubuntu@fpc0:/dpdk/x86_64-default-linuxapp-gcc/app$

However, running this same app on the host, or doing lxc-execute works.

While trying to debug my own dpdk app, I see that reading the same file for no of huge pages (

/sys/kernel/mm/hugepages/hugepages-2048kB/free_hugepages

 ), on the host, its value is read 2048, while inside the container it is 0. This is same file.
Also, if you cat the contents of this file, it is actually 0! (nr_hugepages is 2048, but the DPDK code does not read this file.)

cat /sys/kernel/mm/hugepages/hugepages-2048kB/free_hugepages
0


In the below logs, the 2 prints "EAL: Using .." and "EAL: path ..." are added by me in DPDL eal library.

On host:
rte_eal_init : 859
opt : 99
opt : 110
EAL: Using free_hugepages
EAL: path /sys/kernel/mm/hugepages/hugepages-2048kB/free_hugepages
EAL: No of hugepages is 2048

Inside container:
pt : 99
opt : 110
EAL: Using free_hugepages
EAL: path /sys/kernel/mm/hugepages/hugepages-2048kB/free_hugepages
EAL: No of hugepages is 0


Has anyone run into this problem and know what's the issue?

Anjali

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-07-07 20:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-03 13:35 [dpdk-dev] non-x86 ? Re: Would DPDK run on AMD processors Derek Wasely
2014-07-04 11:25 ` Yerden Zhumabekov
2014-07-07 20:06   ` Irfan Zia

DPDK patches and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/dev/0 dev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dev dev/ https://inbox.dpdk.org/dev \
		dev@dpdk.org
	public-inbox-index dev

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dev


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git