linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Axel Rasmussen <axelrasmussen@google.com>
To: Peter Xu <peterx@redhat.com>
Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org,
	 Mike Kravetz <mike.kravetz@oracle.com>,
	Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [PATCH 4/4] selftests/vm: Drop mnt point for hugetlb in run_vmtests.sh
Date: Tue, 4 Oct 2022 15:04:28 -0700	[thread overview]
Message-ID: <CAJHvVcijJOzo=jTNO+Oxo8AwfW8G4n+Poytw+atU4=2wVfnbqw@mail.gmail.com> (raw)
In-Reply-To: <20221004214305.121405-1-peterx@redhat.com>

On Tue, Oct 4, 2022 at 2:43 PM Peter Xu <peterx@redhat.com> wrote:
>
> After converting all the three relevant testcases (uffd, madvise, mremap)
> to use memfd, no test will need the hugetlb mount point anymore.  Drop the
> code.
>
> Signed-off-by: Peter Xu <peterx@redhat.com>
> ---
>  tools/testing/selftests/vm/run_vmtests.sh | 18 +++---------------
>  1 file changed, 3 insertions(+), 15 deletions(-)
>
> diff --git a/tools/testing/selftests/vm/run_vmtests.sh b/tools/testing/selftests/vm/run_vmtests.sh
> index e780e76c26b8..0dc9f545a32d 100755
> --- a/tools/testing/selftests/vm/run_vmtests.sh
> +++ b/tools/testing/selftests/vm/run_vmtests.sh
> @@ -5,7 +5,6 @@
>  # Kselftest framework requirement - SKIP code is 4.
>  ksft_skip=4
>
> -mnt=./huge
>  exitcode=0
>
>  #get huge pagesize and freepages from /proc/meminfo
> @@ -84,9 +83,6 @@ run_test() {
>         fi
>  }
>
> -mkdir "$mnt"
> -mount -t hugetlbfs none "$mnt"
> -
>  run_test ./hugepage-mmap
>
>  shmmax=$(cat /proc/sys/kernel/shmmax)
> @@ -98,14 +94,9 @@ echo "$shmmax" > /proc/sys/kernel/shmmax
>  echo "$shmall" > /proc/sys/kernel/shmall
>
>  run_test ./map_hugetlb
> -
> -run_test ./hugepage-mremap "$mnt"/huge_mremap
> -rm -f "$mnt"/huge_mremap
> -
> +run_test ./hugepage-mremap
>  run_test ./hugepage-vmemmap
> -
> -run_test ./hugetlb-madvise "$mnt"/madvise-test
> -rm -f "$mnt"/madvise-test
> +run_test ./hugetlb-madvise
>
>  echo "NOTE: The above hugetlb tests provide minimal coverage.  Use"
>  echo "      https://github.com/libhugetlbfs/libhugetlbfs.git for"
> @@ -126,14 +117,11 @@ for mod in "${uffd_mods[@]}"; do
>         # Hugetlb tests require source and destination huge pages. Pass in half
>         # the size ($half_ufd_size_MB), which is used for *each*.
>         run_test ./userfaultfd hugetlb${mod} "$half_ufd_size_MB" 32
> -       run_test ./userfaultfd hugetlb_shared${mod} "$half_ufd_size_MB" 32 "$mnt"/uffd-test
> -       rm -f "$mnt"/uffd-test
> +       run_test ./userfaultfd hugetlb_shared${mod} "$half_ufd_size_MB" 32
>         run_test ./userfaultfd shmem${mod} 20 16
>  done
>
>  #cleanup
> -umount "$mnt"
> -rm -rf "$mnt"
>  echo "$nr_hugepgs" > /proc/sys/vm/nr_hugepages
>
>  run_test ./compaction_test
> --
> 2.37.3
>

Feel free to take:

Reviewed-by: Axel Rasmussen <axelrasmussen@google.com>


      reply	other threads:[~2022-10-04 22:05 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-04 21:41 [PATCH 0/4] selftests/vm: Drop hugetlb mntpoint " Peter Xu
2022-10-04 21:41 ` [PATCH 1/4] selftests/vm: Use memfd for hugetlb tests Peter Xu
2022-10-04 22:04   ` Axel Rasmussen
2022-10-05 14:43     ` Peter Xu
2022-10-05 17:32       ` Axel Rasmussen
2022-10-04 21:41 ` [PATCH 2/4] selftests/vm: Use memfd for hugetlb-madvise test Peter Xu
2022-10-04 21:43 ` [PATCH 3/4] selftests/vm: Use memfd for hugepage-mremap test Peter Xu
2022-10-04 21:43 ` [PATCH 4/4] selftests/vm: Drop mnt point for hugetlb in run_vmtests.sh Peter Xu
2022-10-04 22:04   ` Axel Rasmussen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJHvVcijJOzo=jTNO+Oxo8AwfW8G4n+Poytw+atU4=2wVfnbqw@mail.gmail.com' \
    --to=axelrasmussen@google.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mike.kravetz@oracle.com \
    --cc=peterx@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox