> ..
> > > > +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;
> > > > + *
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,
> >
>
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
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
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
5 matches
Mail list logo