Messages in this thread | | | Date | Thu, 6 Jul 2023 16:22:07 -0700 | From | Mike Kravetz <> | Subject | Re: [PATCH v2 4/4] selftests/mm: add tests for HWPOISON hugetlbfs read |
| |
On 06/23/23 16:40, Jiaqi Yan wrote: > Add tests for the improvement made to read operation on HWPOISON > hugetlb page with different read granularities. For each chunk size, > three read scenarios are tested: > 1. Simple regression test on read without HWPOISON. > 2. Sequential read page by page should succeed until encounters the 1st > raw HWPOISON subpage. > 3. After skip raw HWPOISON subpage by lseek, read()s always succeed. > > Signed-off-by: Jiaqi Yan <jiaqiyan@google.com> > --- > tools/testing/selftests/mm/.gitignore | 1 + > tools/testing/selftests/mm/Makefile | 1 + > .../selftests/mm/hugetlb-read-hwpoison.c | 322 ++++++++++++++++++ > 3 files changed, 324 insertions(+) > create mode 100644 tools/testing/selftests/mm/hugetlb-read-hwpoison.c
Thank you for adding a selftest!
Acked-by: Mike Kravetz <mike.kravetz@oracle.com>
-- Mike Kravetz
| |