From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nm34.bullet.mail.ne1.yahoo.com (nm34.bullet.mail.ne1.yahoo.com [98.138.229.27]) by dpdk.org (Postfix) with ESMTP id E72BC30D for ; Thu, 3 Jul 2014 15:38:20 +0200 (CEST) Received: from [127.0.0.1] by nm34.bullet.mail.ne1.yahoo.com with NNFMP; 03 Jul 2014 13:38:40 -0000 Received: from [98.138.101.128] by nm34.bullet.mail.ne1.yahoo.com with NNFMP; 03 Jul 2014 13:35:51 -0000 Received: from [66.196.81.172] by tm16.bullet.mail.ne1.yahoo.com with NNFMP; 03 Jul 2014 13:35:50 -0000 Received: from [98.139.212.215] by tm18.bullet.mail.bf1.yahoo.com with NNFMP; 03 Jul 2014 13:35:50 -0000 Received: from [127.0.0.1] by omp1024.mail.bf1.yahoo.com with NNFMP; 03 Jul 2014 13:35:50 -0000 X-Yahoo-Newman-Property: ymail-4 X-Yahoo-Newman-Id: 775737.32790.bm@omp1024.mail.bf1.yahoo.com Received: (qmail 2783 invoked by uid 60001); 3 Jul 2014 13:35:50 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1404394550; bh=keAMYzCULkV8+h4xnfPy/P+bjCghZC7UPfGBThsJ+o0=; h=References:Message-ID:Date:From:Reply-To:Subject:To:Cc:MIME-Version:Content-Type; b=cqo/GMexPxTNukRUeph/6M2Bel6Gco26lIxxnGHYBdaa7k2/YRUhvl1q6ZHtOVsvrchY81tAiDMk/oCga/wPTrYDCraOLuDl4jSZyAy0TM/YkatOV5QT7r7ocWXRSfgLWhd2vKIkesM03Qk5t5yPxrlokSF+LHJcmNq+xxPjzRA= X-YMail-OSG: V0GGxb4VM1nSU0t6G.PAO_pYUsDVweULGVXPf6FkWO6etm. hfKRxzGOatRqki9JbLjkQ9KoTx5G.RPnsrvPcc47_2BhN9fJqAH0eqGv3MZz 5MODTK_VFJ2ER6cn8DiC8gujYJ.uSjGvGjf9Qo8j8xWzVmmrkt5LxhTulYKa _mLth.PpZvToU5Sry7zRgrEosf0atB_3BZnLLgAHSVIpMjEEi5OLdNUavEK4 Pgr3Uv1yj1xMmc8qFreS2qZzeAYH5hfoN.fReiXSt7fWmv3Y9bsihNVS3LDa JQncbZ_zD6k7ijZ4.Mtd3KPG3ASH8M18F9ZpeZoaxnfGYUEj45V9zaJil92x M196u9vQrCavmg1GGakok8Y7WEsMmHYGDOYVTMowXmzubpqlnYqRdGKltEbD 7h6CsrLt62SXetvAswjjK6Qzt9M_LaKd.QakonYxEDHXCVhRuzXim2_9xsmA w72GFIZjC1v_oXXyduZITnIA8ejyqJ1CStozmdZPF11b_Gnu9HFGaeWARhJS .D4EZ5QHVYPrg8CrH0gRAJhL9_Aqimyq8HeX2hfa.n.7L2yJ9FrAQSpeKC8b M4QgMj3hFahk9DM9mI87D0oY2SlCi.S8rS991DJDF4GYwzA0CqXQqVdM- Received: from [39.48.254.175] by web142305.mail.bf1.yahoo.com via HTTP; Thu, 03 Jul 2014 06:35:50 PDT X-Rocket-MIMEInfo: 002.001, aG93IGFib3V0IHJ1bm5pbmcgRFBESyBvbiBvdGhlciBwcm9jZXNzb3JzID_CoMKgIEFueSBsaWNlbnNpbmcgcmVzdHJpY3Rpb24gb24gdXNpbmcgaXQgb24gbm9uLXg4NiBhcmNoID_CoCBEb2VzIGl0IHdvcmsgYXV0b21hdGljYWxseSBvbiBzYXnCoCBQUEMgb3IgT0NURU9OID8KCgpEZXJlawoKLS0KCkhpLAoKSGFzIGFueWJvZHkgYXR0ZW1wdGVkIHRvIHJ1biBEUERLIG9uIEFNRCBwcm9jZXNzb3JzLgpEb2VzIGl0IHJ1biBzdHJhaWdodGZvcndhcmQgb3Igd291bGQgdGhlcmUgYmUgc29tZSBvYnZpb3VzIGkBMAEBAQE- X-Mailer: YahooMailWebService/0.8.191.1 References: Message-ID: <1404394550.74808.YahooMailNeo@web142305.mail.bf1.yahoo.com> Date: Thu, 3 Jul 2014 06:35:50 -0700 From: Derek Wasely To: "dev@dpdk.org" MIME-Version: 1.0 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] non-x86 ? Re: Would DPDK run on AMD processors X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Derek Wasely List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jul 2014 13:38:21 -0000 how about running DPDK on other processors ?=A0=A0 Any licensing restrictio= n on using it on non-x86 arch ?=A0 Does it work automatically on say=A0 PPC= or OCTEON ?=0A=0A=0ADerek=0A=0A--=0A=0AHi,=0A=0AHas anybody attempted to r= un DPDK on AMD processors.=0ADoes it run straightforward or would there be = some obvious issues where=0Aporting would be needed, I welcome any comments= .=0A=0ARegards=0A-Prashant=0A >From anjali@juniper.net Thu Jul 3 16:40:19 2014 Return-Path: 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 ; 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 To: "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: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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 y= our 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 add= ed 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