From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=8691; q=dns/txt; s=iport; t=1443486252; x=1444695852; h=from:to:subject:date:message-id:mime-version; bh=n56jLmIEd4xOZJNAwqafRWS1wVin9JzCoL/2J5JxR8o=; b=AwLdmiSC6kIAq3MlK96k0aeYzepC6+hZI+n8+BoM67NIxHoUNWXEg2tx BoWYnzUbLrVoJTDe61PKYzxaUThhikacDY3aQbZz3Gb5uR/Rss8JbOQp+ GZD0Wyq/shGCdYy2WuT8vhiPkw9e8ZmoJOMoICm24MrrlNnt43iSb+NOj 4=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0AFAgBo2QlW/5ldJa1dgldNgS8OBr05AQ2HdIFUOBQBAQEBAQEBgQqEJAECBIELAQgRAwECKDkUCQoEARKILsteAQEBBwEBAQEBHYtwhHyERAWHNI48AY0Omz8fAQFChAFxiByBBQEBAQ X-IronPort-AV: E=Sophos;i="5.17,605,1437436800"; d="scan'208,217";a="36266951" Received: from rcdn-core-2.cisco.com ([173.37.93.153]) by rcdn-iport-3.cisco.com with ESMTP; 29 Sep 2015 00:24:11 +0000 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 Received: from xch-rcd-004.cisco.com (173.37.102.14) by XCH-RCD-004.cisco.com (173.37.102.14) with Microsoft SMTP Server (TLS) id 15.0.1104.5; Mon, 28 Sep 2015 19:24:11 -0500 Received: from xhc-rcd-x08.cisco.com (173.37.183.82) by xch-rcd-004.cisco.com (173.37.102.14) with Microsoft SMTP Server (TLS) id 15.0.1104.5 via Frontend Transport; Mon, 28 Sep 2015 19:24:11 -0500 Received: from xmb-aln-x03.cisco.com ([169.254.6.63]) by xhc-rcd-x08.cisco.com ([173.37.183.82]) with mapi id 14.03.0248.002; Mon, 28 Sep 2015 19:24:10 -0500 From: "shesha Sreenivasamurthy (shesha)" To: "shesha Sreenivasamurthy (shesha)" , "dev@dpdk.org" Thread-Topic: [dpdk-dev] Unlinking hugepage backing file after initialiation Thread-Index: AQHQ+k0pCJmpLd9c/kauh+zG2j8NuA== Date: Tue, 29 Sep 2015 00:24:10 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [173.36.7.20] MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] Unlinking hugepage backing file after initialiation X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Sep 2015 00:24:13 -0000 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; }