[dpdk-dev] [RFC 4/5] virtio/container: adjust memory initialization process

2015-11-09 Thread Tan, Jianfeng
> .. > > > > +int > > > > +rte_memseg_info_get(int index, int *pfd, uint64_t *psize, void > > > > +**paddr) { > > > > + struct rte_mem_config *mcfg; > > > > + mcfg = rte_eal_get_configuration()->mem_config; > > > > + > > > > + *pfd = mcfg->memseg[index].fd; > > > > + *

[dpdk-dev] [RFC 4/5] virtio/container: adjust memory initialization process

2015-11-09 Thread Ananyev, Konstantin
iu at huawei.com; oscar.zhangbo at huawei.com; > > ann.zhuangyanying at huawei.com; zhoujingbin at huawei.com; > > guohongzhen at huawei.com > > Subject: RE: [dpdk-dev] [RFC 4/5] virtio/container: adjust memory > > initialization process > > > > Hi, > > >

[dpdk-dev] [RFC 4/5] virtio/container: adjust memory initialization process

2015-11-08 Thread Tan, Jianfeng
zhangbo at huawei.com; > ann.zhuangyanying at huawei.com; zhoujingbin at huawei.com; > guohongzhen at huawei.com > Subject: RE: [dpdk-dev] [RFC 4/5] virtio/container: adjust memory > initialization process > > Hi, > > > -Original Message- > > From: dev [mailto:dev-b

[dpdk-dev] [RFC 4/5] virtio/container: adjust memory initialization process

2015-11-06 Thread Ananyev, Konstantin
com; oscar.zhangbo at huawei.com; > ann.zhuangyanying at huawei.com; zhoujingbin at huawei.com; guohongzhen at > huawei.com > Subject: [dpdk-dev] [RFC 4/5] virtio/container: adjust memory initialization > process > > When using virtio for container, we should specify --no-hug

[dpdk-dev] [RFC 4/5] virtio/container: adjust memory initialization process

2015-11-06 Thread Jianfeng Tan
When using virtio for container, we should specify --no-huge so that in memory initialization, shm_open() is used to alloc memory from tmpfs filesystem /dev/shm/. Signed-off-by: Huawei Xie Signed-off-by: Jianfeng Tan --- lib/librte_eal/common/include/rte_memory.h | 5 +++ lib/librte_eal/linuxa