Re: [RFC PATCH 1/8] hugetlb: add per-hstate mutex to synchronize user adjustments

2021-03-23 Thread Michal Hocko
On Mon 22-03-21 09:57:14, Mike Kravetz wrote: > On 3/22/21 6:59 AM, Michal Hocko wrote: > > On Fri 19-03-21 15:42:02, Mike Kravetz wrote: > >> The number of hugetlb pages can be adjusted by writing to the > >> sysps/proc files nr_hugepages, nr_hugepages_mempolicy or > >> nr_overcommit_hugepages. T

Re: [RFC PATCH 1/8] hugetlb: add per-hstate mutex to synchronize user adjustments

2021-03-22 Thread Mike Kravetz
On 3/22/21 6:59 AM, Michal Hocko wrote: > On Fri 19-03-21 15:42:02, Mike Kravetz wrote: >> The number of hugetlb pages can be adjusted by writing to the >> sysps/proc files nr_hugepages, nr_hugepages_mempolicy or >> nr_overcommit_hugepages. There is nothing to prevent two >> concurrent modificatio

Re: [RFC PATCH 1/8] hugetlb: add per-hstate mutex to synchronize user adjustments

2021-03-22 Thread Michal Hocko
On Fri 19-03-21 15:42:02, Mike Kravetz wrote: > The number of hugetlb pages can be adjusted by writing to the > sysps/proc files nr_hugepages, nr_hugepages_mempolicy or > nr_overcommit_hugepages. There is nothing to prevent two > concurrent modifications via these files. The underlying routine >

[RFC PATCH 1/8] hugetlb: add per-hstate mutex to synchronize user adjustments

2021-03-19 Thread Mike Kravetz
The number of hugetlb pages can be adjusted by writing to the sysps/proc files nr_hugepages, nr_hugepages_mempolicy or nr_overcommit_hugepages. There is nothing to prevent two concurrent modifications via these files. The underlying routine set_max_huge_pages() makes assumptions that only one occ