[dpdk-dev] [PATCH] eal: make resource initialization more robust

2016-02-29 Thread Tan, Jianfeng
Hi Thomas, On 2/29/2016 5:12 AM, Thomas Monjalon wrote: > Hi, > > 2016-01-29 19:22, Jianfeng Tan: >> Current issue: DPDK is not that friendly to container environment, which >> caused by that it pre-alloc resource like cores and hugepages. But there >> are this or that resource limitations, for ex

[dpdk-dev] [PATCH] eal: make resource initialization more robust

2016-02-28 Thread Thomas Monjalon
Hi, 2016-01-29 19:22, Jianfeng Tan: > Current issue: DPDK is not that friendly to container environment, which > caused by that it pre-alloc resource like cores and hugepages. But there > are this or that resource limitations, for examples, cgroup, rlimit, > cpuset, etc. > > For cores, this patch

[dpdk-dev] [PATCH] eal: make resource initialization more robust

2016-02-22 Thread Tan, Jianfeng
Hi Neil, Sorry that for my previous misconfiguration of email agent, I missed this email. > This looks alot better. One minor comment, the sigbus handler, you should > probably store the previous bus handler and restore it after you map > all the > hugepages you want (lest you overwrite someth

[dpdk-dev] [PATCH] eal: make resource initialization more robust

2016-02-22 Thread Neil Horman
On Mon, Feb 22, 2016 at 02:08:51PM +0800, Tan, Jianfeng wrote: > Hi Neil, > > Sorry that for my previous misconfiguration of email agent, I missed this > email. > > >This looks alot better. One minor comment, the sigbus handler, you should > >probably store the previous bus handler and restore i

[dpdk-dev] [PATCH] eal: make resource initialization more robust

2016-02-01 Thread Neil Horman
On Fri, Jan 29, 2016 at 07:22:02PM +0800, Jianfeng Tan wrote: > Current issue: DPDK is not that friendly to container environment, which > caused by that it pre-alloc resource like cores and hugepages. But there > are this or that resource limitations, for examples, cgroup, rlimit, > cpuset, etc. >

[dpdk-dev] [PATCH] eal: make resource initialization more robust

2016-01-29 Thread Jianfeng Tan
Current issue: DPDK is not that friendly to container environment, which caused by that it pre-alloc resource like cores and hugepages. But there are this or that resource limitations, for examples, cgroup, rlimit, cpuset, etc. For cores, this patch makes use of pthread_getaffinity_np to further n