From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 64CFB532C for ; Tue, 23 Apr 2019 17:15:33 +0200 (CEST) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E862730842AF for ; Tue, 23 Apr 2019 15:15:32 +0000 (UTC) Received: from localhost.localdomain (unknown [10.18.25.8]) by smtp.corp.redhat.com (Postfix) with ESMTP id B9CCA608A4 for ; Tue, 23 Apr 2019 15:15:32 +0000 (UTC) From: Michael Santana Francisco Organization: Red Hat To: dev@dpdk.org Message-ID: <2e847465-48d3-4df7-6a2c-e9903d131219@redhat.com> Date: Tue, 23 Apr 2019 11:15:32 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Tue, 23 Apr 2019 15:15:32 +0000 (UTC) Subject: [dpdk-dev] Hugepages not being deleted X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: msantana@redhat.com List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Apr 2019 15:15:34 -0000 Hello, I am currently working on a patch to fix the eal_flags_autotest test as it currently fails on many platforms. I have made some progress, however I stumbled upon a possible issue with EAL and hugepages. Looking at the code and some documentation it appears to me that hupepages are supposed to be automatically deleted on dynamic memory mode as the dpdk process exits. The test however reports that this is not happening. This can be shown by: bash# export DPDK_TEST=eal_flags_autotest bash# ./build/app/test/dpdk-test ... Error - hugepage files for memtest1 were not deleted! Error in test_file_prefix() Test Failed bash# ls /dev/hugepages/ #hugetlbfs is mounted on /dev/hugepages memtest1map_0  memtest1map_1  memtest1map_2  memtest1map_3 memtest1map_4  memtest1map_5  memtest1map_6  memtest1map_7 memtest1map_8  rtemap_0 To me it appears that the hugepages are in fact not being deleted correctly. Is this an anomaly or is anyone else seeing this issue as well? Michael Santana Note, if you are running on a system with less than 8 cores please see patch https://github.com/Maickii/dpdk-2/commit/7cfad856611e3ded4050f670ec11d1b2e17851d8.patch From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 3A66CA05D3 for ; Tue, 23 Apr 2019 17:15:37 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C62235F34; Tue, 23 Apr 2019 17:15:35 +0200 (CEST) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 64CFB532C for ; Tue, 23 Apr 2019 17:15:33 +0200 (CEST) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E862730842AF for ; Tue, 23 Apr 2019 15:15:32 +0000 (UTC) Received: from localhost.localdomain (unknown [10.18.25.8]) by smtp.corp.redhat.com (Postfix) with ESMTP id B9CCA608A4 for ; Tue, 23 Apr 2019 15:15:32 +0000 (UTC) From: Michael Santana Francisco Organization: Red Hat To: dev@dpdk.org Message-ID: <2e847465-48d3-4df7-6a2c-e9903d131219@redhat.com> Date: Tue, 23 Apr 2019 11:15:32 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format="flowed" Content-Transfer-Encoding: 8bit Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Tue, 23 Apr 2019 15:15:32 +0000 (UTC) Subject: [dpdk-dev] Hugepages not being deleted X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: msantana@redhat.com List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Message-ID: <20190423151532.MjVrhdUYfTAD4XF7D3N5zCWO8TPgg68OeSfbmK_xyUg@z> Hello, I am currently working on a patch to fix the eal_flags_autotest test as it currently fails on many platforms. I have made some progress, however I stumbled upon a possible issue with EAL and hugepages. Looking at the code and some documentation it appears to me that hupepages are supposed to be automatically deleted on dynamic memory mode as the dpdk process exits. The test however reports that this is not happening. This can be shown by: bash# export DPDK_TEST=eal_flags_autotest bash# ./build/app/test/dpdk-test ... Error - hugepage files for memtest1 were not deleted! Error in test_file_prefix() Test Failed bash# ls /dev/hugepages/ #hugetlbfs is mounted on /dev/hugepages memtest1map_0  memtest1map_1  memtest1map_2  memtest1map_3 memtest1map_4  memtest1map_5  memtest1map_6  memtest1map_7 memtest1map_8  rtemap_0 To me it appears that the hugepages are in fact not being deleted correctly. Is this an anomaly or is anyone else seeing this issue as well? Michael Santana Note, if you are running on a system with less than 8 cores please see patch https://github.com/Maickii/dpdk-2/commit/7cfad856611e3ded4050f670ec11d1b2e17851d8.patch