From mboxrd@z Thu Jan 1 00:00:00 1970 From: "shesha Sreenivasamurthy (shesha)" Subject: Re: Unlinking hugepage backing file after initialiation Date: Tue, 29 Sep 2015 00:24:10 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable To: "shesha Sreenivasamurthy (shesha)" , "dev@dpdk.org" Return-path: Received: from rcdn-iport-3.cisco.com (rcdn-iport-3.cisco.com [173.37.86.74]) by dpdk.org (Postfix) with ESMTP id D65671396 for ; Tue, 29 Sep 2015 02:24:12 +0200 (CEST) Received: from XCH-RCD-004.cisco.com (xch-rcd-004.cisco.com [173.37.102.14]) by rcdn-core-2.cisco.com (8.14.5/8.14.5) with ESMTP id t8T0OBTJ030545 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL) for ; Tue, 29 Sep 2015 00:24:11 GMT Content-Language: en-US List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Additional info: Before staring Application: ------------------------------------- cat /sys/devices/system/node/node*/meminfo | grep HugePages_ Node 0 HugePages_Total: 2048 Node 0 HugePages_Free: 2048 Node 0 HugePages_Surp: 0 Node 1 HugePages_Total: 2048 Node 1 HugePages_Free: 2048 Node 1 HugePages_Surp: 0 While application is running: ------------------------------------- cat /sys/devices/system/node/node*/meminfo | grep HugePages_ Node 0 HugePages_Total: 2048 Node 0 HugePages_Free: 1536 Node 0 HugePages_Surp: 0 Node 1 HugePages_Total: 2048 Node 1 HugePages_Free: 1536 Node 1 HugePages_Surp: 0 After Application is stopped: ------------------------------------- cat /sys/devices/system/node/node*/meminfo | grep HugePages_ Node 0 HugePages_Total: 2048 Node 0 HugePages_Free: 1536 Node 0 HugePages_Surp: 0 Node 1 HugePages_Total: 2048 Node 1 HugePages_Free: 1536 Node 1 HugePages_Surp: 0 With UNLINKING in eal_memory.c::rte_eal_hugepage_init() and after applicati= on is stopped: ------------------------------------------------------------ cat /sys/devices/system/node/node*/meminfo | grep HugePages_ Node 0 HugePages_Total: 2048 Node 0 HugePages_Free: 2048 Node 0 HugePages_Surp: 0 Node 1 HugePages_Total: 2048 Node 1 HugePages_Free: 2048 Node 1 HugePages_Surp: 0 -- - Thanks char * (*shesha) (uint64_t cache, uint8_t F00D) { return 0x0000C0DE; } From: dev > on behalf of = Cisco Employee > Date: Monday, September 28, 2015 at 5:04 PM To: "dev@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 cleaned up (= unlinked) after initialization (mmap-ing). This means, when the application= crashes or stopped, the memory is still consumed. Therefore, is there any = reason not to unlink backing files after initialization ? If no, I will sen= d a patch for the change. -- - Thanks char * (*shesha) (uint64_t cache, uint8_t F00D) { return 0x0000C0DE; }