[dpdk-dev] [RFC] eal: add cgroup-aware resource self discovery

2016-01-27 Thread Tan, Jianfeng
Hi Neil, On 1/26/2016 10:19 PM, Neil Horman wrote: > On Tue, Jan 26, 2016 at 10:22:18AM +0800, Tan, Jianfeng wrote: >> Hi Neil, >> >> On 1/25/2016 9:46 PM, Neil Horman wrote: >>> On Mon, Jan 25, 2016 at 02:49:53AM +0800, Jianfeng Tan wrote: >> ... -- 2.1.4 >>> This doesn't mak

[dpdk-dev] [RFC] eal: add cgroup-aware resource self discovery

2016-01-27 Thread Neil Horman
On Wed, Jan 27, 2016 at 08:02:27PM +0800, Tan, Jianfeng wrote: > Hi Neil, > > On 1/26/2016 10:19 PM, Neil Horman wrote: > >On Tue, Jan 26, 2016 at 10:22:18AM +0800, Tan, Jianfeng wrote: > >>Hi Neil, > >> > >>On 1/25/2016 9:46 PM, Neil Horman wrote: > >>>On Mon, Jan 25, 2016 at 02:49:53AM +0800, Ji

[dpdk-dev] [RFC] eal: add cgroup-aware resource self discovery

2016-01-26 Thread Tan, Jianfeng
Hi Neil, On 1/25/2016 9:46 PM, Neil Horman wrote: > On Mon, Jan 25, 2016 at 02:49:53AM +0800, Jianfeng Tan wrote: ... >> -- >> 2.1.4 >> >> > > This doesn't make a whole lot of sense, for several reasons: > > 1) Applications, as a general rule shouldn't be interrogating the cgroups > interface at

[dpdk-dev] [RFC] eal: add cgroup-aware resource self discovery

2016-01-26 Thread Neil Horman
On Tue, Jan 26, 2016 at 10:22:18AM +0800, Tan, Jianfeng wrote: > > Hi Neil, > > On 1/25/2016 9:46 PM, Neil Horman wrote: > >On Mon, Jan 25, 2016 at 02:49:53AM +0800, Jianfeng Tan wrote: > ... > >>-- > >>2.1.4 > >> > >> > > > >This doesn't make a whole lot of sense, for several reasons: > > > >1)

[dpdk-dev] [RFC] eal: add cgroup-aware resource self discovery

2016-01-25 Thread Neil Horman
On Mon, Jan 25, 2016 at 02:49:53AM +0800, Jianfeng Tan wrote: > Current issue: DPDK is not that friendly to container environment usage. > It's because that it pre-alloc resource like cores and hugepages from cmd > line options. So for a DPDK application, it's necessary to check how much > resource

[dpdk-dev] [RFC] eal: add cgroup-aware resource self discovery

2016-01-25 Thread Jianfeng Tan
Current issue: DPDK is not that friendly to container environment usage. It's because that it pre-alloc resource like cores and hugepages from cmd line options. So for a DPDK application, it's necessary to check how much resource is allocated to a container and then use that as an reference. To ad