[LTP] [PATCH 1/2] hugemmap32: release mem caches and prepare for hugepage
Li Wang
liwang@redhat.com
Wed Jun 21 04:52:56 CEST 2023
ping~
If nobody objects to these two simple improvements,
I would push both the next day.
On Mon, May 29, 2023 at 2:11 PM Li Wang <liwang@redhat.com> wrote:
> As Martin pointed that mem caches count as available, we'd better
> release them for huge page use.
>
> Signed-off-by: Li Wang <liwang@redhat.com>
> ---
> testcases/kernel/mem/hugetlb/hugemmap/hugemmap32.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/testcases/kernel/mem/hugetlb/hugemmap/hugemmap32.c
> b/testcases/kernel/mem/hugetlb/hugemmap/hugemmap32.c
> index 36a426a09..76b790a95 100644
> --- a/testcases/kernel/mem/hugetlb/hugemmap/hugemmap32.c
> +++ b/testcases/kernel/mem/hugetlb/hugemmap/hugemmap32.c
> @@ -64,6 +64,7 @@ static void setup(void)
>
> SAFE_CLOSEDIR(dir);
>
> + SAFE_FILE_PRINTF("/proc/sys/vm/drop_caches", "3");
> if (tst_available_mem() < (long long)hpage_size) {
> g_hpage_path[0] = '\0';
> tst_brk(TCONF, "No enough memory for gigantic hugepage
> reservation");
> --
> 2.40.1
>
>
> --
> Mailing list info: https://lists.linux.it/listinfo/ltp
>
>
--
Regards,
Li Wang
More information about the ltp
mailing list