[dpdk-dev] Unlinking hugepage backing file after initialiation

2015-10-06 Thread Michael S. Tsirkin
On Mon, Oct 05, 2015 at 01:08:52PM +, Xie, Huawei wrote: > On 9/30/2015 5:36 AM, Michael S. Tsirkin wrote: > > On Tue, Sep 29, 2015 at 05:50:00PM +, shesha Sreenivasamurthy (shesha) > > wrote: > >> Sure. Then, is there any real reason why the backing files should not be > >> unlinked ? >

[dpdk-dev] Unlinking hugepage backing file after initialiation

2015-10-05 Thread Xie, Huawei
On 9/30/2015 5:36 AM, Michael S. Tsirkin wrote: > On Tue, Sep 29, 2015 at 05:50:00PM +, shesha Sreenivasamurthy (shesha) > wrote: >> Sure. Then, is there any real reason why the backing files should not be >> unlinked ? > AFAIK qemu unlinks them already. Sorry, i didn't make it clear. Let us

[dpdk-dev] Unlinking hugepage backing file after initialiation

2015-10-01 Thread Bruce Richardson
Sent: Wednesday, September 30, 2015 10:44 PM > To: dev at dpdk.org<mailto:dev at dpdk.org> > Cc: Michael S. Tsirkin > Subject: Re: [dpdk-dev] Unlinking hugepage backing file after initialiation > What I heard is the following: A multi-process DPDK application, working > either

[dpdk-dev] Unlinking hugepage backing file after initialiation

2015-09-30 Thread shesha Sreenivasamurthy (shesha)
Date: Wednesday, September 30, 2015 at 2:53 PM To: Cisco Employee mailto:shesha at cisco.com>>, "dev at dpdk.org<mailto:dev at dpdk.org>" mailto:dev at dpdk.org>> Cc: "Michael S. Tsirkin" mailto:mst at redhat.com>> Subject: RE: [dpdk-dev] Unlinkin

[dpdk-dev] Unlinking hugepage backing file after initialiation

2015-09-30 Thread Ananyev, Konstantin
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of shesha > Sreenivasamurthy (shesha) > Sent: Wednesday, September 30, 2015 10:44 PM > To: dev at dpdk.org > Cc: Michael S. Tsirkin > Subject: Re: [dpdk-dev] Unlinking hugepage backing fil

[dpdk-dev] Unlinking hugepage backing file after initialiation

2015-09-30 Thread shesha Sreenivasamurthy (shesha)
pdk.org<mailto:dev at dpdk.org>" mailto:dev at dpdk.org>> Subject: Re: [dpdk-dev] Unlinking hugepage backing file after initialiation On Tue, Sep 29, 2015 at 05:50:00PM +, shesha Sreenivasamurthy (shesha) wrote: Sure. Then, is there any real reason why the backing files should not be unlinked ? AFAIK qemu unlinks them already. -- MST

[dpdk-dev] Unlinking hugepage backing file after initialiation

2015-09-30 Thread Michael S. Tsirkin
On Tue, Sep 29, 2015 at 05:50:00PM +, shesha Sreenivasamurthy (shesha) wrote: > Sure. Then, is there any real reason why the backing files should not be > unlinked ? AFAIK qemu unlinks them already. -- MST

[dpdk-dev] Unlinking hugepage backing file after initialiation

2015-09-29 Thread Michael S. Tsirkin
On Tue, Sep 29, 2015 at 03:48:08PM +, shesha Sreenivasamurthy (shesha) wrote: > If huge pages are allocated for the guest and if the guest crashes there may > be > a chance that the new guest may not be able to get huge pages again as some > other guest or process on the host used it. But I

[dpdk-dev] Unlinking hugepage backing file after initialiation

2015-09-29 Thread shesha Sreenivasamurthy (shesha)
: Cisco Employee mailto:shesha at cisco.com>> Cc: "Xie, Huawei" mailto:huawei.xie at intel.com>>, "dev at dpdk.org<mailto:dev at dpdk.org>" mailto:dev at dpdk.org>> Subject: Re: [dpdk-dev] Unlinking hugepage backing file after initialiation On Tue, Sep 29, 2015

[dpdk-dev] Unlinking hugepage backing file after initialiation

2015-09-29 Thread shesha Sreenivasamurthy (shesha)
ay, September 29, 2015 at 8:15 AM To: Cisco Employee mailto:shesha at cisco.com>> Cc: "dev at dpdk.org<mailto:dev at dpdk.org>" mailto:dev at dpdk.org>>, "ms >> Michael S. Tsirkin" mailto:mst at redhat.com>> Subject: Re: [dpdk-dev] Unlinking hugepage ba

[dpdk-dev] Unlinking hugepage backing file after initialiation

2015-09-29 Thread Xie, Huawei
On 9/29/2015 10:38 AM, Xie, Huawei wrote: > On 9/29/2015 8:04 AM, shesha Sreenivasamurthy (shesha) wrote: >> Hello, >> As of DPDK2.1, backing files are created in hugetablefs during mapping (in >> eal_memory.c::rte_eal_hugepage_init()) and these files are not cleaned up >> (unlinked) after

[dpdk-dev] Unlinking hugepage backing file after initialiation

2015-09-29 Thread shesha Sreenivasamurthy (shesha)
murthy (shesha) > Sent: Tuesday, September 29, 2015 1:04 AM > To: dev at dpdk.org<mailto:dev at dpdk.org> > Subject: [dpdk-dev] Unlinking hugepage backing file after initialiation > > Hello, > As of DPDK2.1, backing files are created in hugetablefs during mapping (in > eal_me

[dpdk-dev] Unlinking hugepage backing file after initialiation

2015-09-29 Thread Bruce Richardson
v at dpdk.org > > Subject: [dpdk-dev] Unlinking hugepage backing file after initialiation > > > > Hello, > > As of DPDK2.1, backing files are created in hugetablefs during mapping (in > > eal_memory.c::rte_eal_hugepage_init()) and these files are > > not

[dpdk-dev] Unlinking hugepage backing file after initialiation

2015-09-29 Thread Ananyev, Konstantin
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of shesha > Sreenivasamurthy (shesha) > Sent: Tuesday, September 29, 2015 1:04 AM > To: dev at dpdk.org > Subject: [dpdk-dev] Unlinking hugepage backing file after initialiation > >

[dpdk-dev] Unlinking hugepage backing file after initialiation

2015-09-29 Thread Xie, Huawei
On 9/29/2015 8:04 AM, shesha Sreenivasamurthy (shesha) wrote: > Hello, > As of DPDK2.1, backing files are created in hugetablefs during mapping (in > eal_memory.c::rte_eal_hugepage_init()) and these files are not cleaned up > (unlinked) after initialization (mmap-ing). This means, when the

[dpdk-dev] Unlinking hugepage backing file after initialiation

2015-09-29 Thread shesha Sreenivasamurthy (shesha)
Hello, As of DPDK2.1, backing files are created in hugetablefs during mapping (in eal_memory.c::rte_eal_hugepage_init()) and these files are not cleaned up (unlinked) after initialization (mmap-ing). This means, when the application crashes or stopped, the memory is still consumed. Therefore,