From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] test: fix eal flags autotest hugepage file handling Date: Sun, 18 Nov 2018 23:04:28 +0100 Message-ID: <2967934.jiZKzRrys8@xps> References: <532f05a13228ffd85931807dd4aa2384a27b7da4.1542283782.git.anatoly.burakov@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, shuaix.zhu@intel.com To: Anatoly Burakov Return-path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id 70DA94C8F for ; Sun, 18 Nov 2018 23:04:31 +0100 (CET) In-Reply-To: <532f05a13228ffd85931807dd4aa2384a27b7da4.1542283782.git.anatoly.burakov@intel.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" 15/11/2018 13:18, Anatoly Burakov: > Before 18.05, DPDK could not release memory back to the system > neither at runtime nor before shutting down. Over the course of > 18.05 up to 18.11, code was introduced to release memory at > runtime, as well as an rte_eal_cleanup() function that is supposed > to release all EAL-allocated memory before shutting down DPDK. > > When 3f9e31d71d63 ("test: clean up on exit") was introduced, the > test application started to use rte_eal_cleanup() to release all > used memory after execution. However, the EAL flags autotest > still relies on the old behavior of leaving stuff behind in the > hugetlbfs. > > The fix is twofold. First, the test to check for leftover files > in hugetlbfs is no longer valid as it is, because test application > now removes all files from hugetlbfs after exit. However, if we > use the --legacy-mem option, then old behavior of leaving files > in hugetlbfs after execution is restored. So the first fix is to > add --legacy-mem to all the tests that expect files in hugetlbfs > to be leftover. > > However, we also need to test if default memory mode *doesn't* > leave any files behind, so we also extend the test to check for > these scenarios as well. So, both memtest1 and memtest2 are run > in legacy and default mem modes, and are checked for any leftover > files that are or are not supposed to be there. > > Fixes: 3f9e31d71d63 ("test: clean up on exit") > > Signed-off-by: Anatoly Burakov I guess you know what you are doing :-) Applied, thanks