Re: [PATCH] selftests/vm/run_vmtests: adjust hugetlb size accroding to nr_cpus

2018-03-02 Thread Mike Kravetz
On 03/01/2018 06:43 PM, Li Zhijian wrote: > this patch is to fix running userfaultfd_hugetlb failed on the host which has > more than 64 cpus > --- > running userfaultfd_hugetlb > --- > invalid MiB > Usage: > [FAIL] > > From userfaultfd.c we can

Re: [PATCH] selftests/vm/run_vmtests: adjust hugetlb size accroding to nr_cpus

2018-03-02 Thread Mike Kravetz
On 03/01/2018 06:43 PM, Li Zhijian wrote: > this patch is to fix running userfaultfd_hugetlb failed on the host which has > more than 64 cpus > --- > running userfaultfd_hugetlb > --- > invalid MiB > Usage: > [FAIL] > > From userfaultfd.c we can

[PATCH] selftests/vm/run_vmtests: adjust hugetlb size accroding to nr_cpus

2018-03-01 Thread Li Zhijian
this patch is to fix running userfaultfd_hugetlb failed on the host which has more than 64 cpus --- running userfaultfd_hugetlb --- invalid MiB Usage: [FAIL] >From userfaultfd.c we can know, hugetlb_size need to meet hugetlb_size >= >nr_cpus *

[PATCH] selftests/vm/run_vmtests: adjust hugetlb size accroding to nr_cpus

2018-03-01 Thread Li Zhijian
this patch is to fix running userfaultfd_hugetlb failed on the host which has more than 64 cpus --- running userfaultfd_hugetlb --- invalid MiB Usage: [FAIL] >From userfaultfd.c we can know, hugetlb_size need to meet hugetlb_size >= >nr_cpus *