From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from dpdk.org (dpdk.org [92.243.14.124])
	by dpdk.space (Postfix) with ESMTP id 43BE1A0679
	for <public@inbox.dpdk.org>; Mon, 29 Apr 2019 20:28:39 +0200 (CEST)
Received: from [92.243.14.124] (localhost [127.0.0.1])
	by dpdk.org (Postfix) with ESMTP id 3CA8F3257;
	Mon, 29 Apr 2019 20:28:38 +0200 (CEST)
Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28])
 by dpdk.org (Postfix) with ESMTP id EC0962B84
 for <dev@dpdk.org>; Mon, 29 Apr 2019 20:28:36 +0200 (CEST)
Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com
 [10.5.11.16])
 (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by mx1.redhat.com (Postfix) with ESMTPS id 540763199366;
 Mon, 29 Apr 2019 18:28:36 +0000 (UTC)
Received: from localhost.localdomain (unknown [10.18.25.8])
 by smtp.corp.redhat.com (Postfix) with ESMTP id 0D7965C239;
 Mon, 29 Apr 2019 18:28:35 +0000 (UTC)
From: Michael Santana Francisco <msantana@redhat.com>
To: dev@dpdk.org
References: <2e847465-48d3-4df7-6a2c-e9903d131219@redhat.com>
Cc: anatoly.burakov@intel.com
Organization: Red Hat
Message-ID: <8fc82f3d-4ba5-d5e2-b931-f2e690093364@redhat.com>
Date: Mon, 29 Apr 2019 14:28:35 -0400
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.4.0
MIME-Version: 1.0
In-Reply-To: <2e847465-48d3-4df7-6a2c-e9903d131219@redhat.com>
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.16
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16
 (mx1.redhat.com [10.5.110.41]); Mon, 29 Apr 2019 18:28:36 +0000 (UTC)
Subject: Re: [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 <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org
Sender: "dev" <dev-bounces@dpdk.org>
Message-ID: <20190429182835.wBYkHORn1M82zW9s3TRy4ZzcIuy4kvbUvCq0gy3OPH4@z>

ping
> 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 
>