Re: [PATCH v4] mm/hugetlb: add mempolicy check in the reservation routine

2020-08-06 Thread Andrew Morton
On Thu, 6 Aug 2020 15:45:14 +0800 Muchun Song wrote: > On Tue, Jul 28, 2020 at 11:49 AM Muchun Song wrote: > > > > In the reservation routine, we only check whether the cpuset meets > > the memory allocation requirements. But we ignore the mempolicy of > > MPOL_BIND case. If someone mmap

Re: [PATCH v4] mm/hugetlb: add mempolicy check in the reservation routine

2020-08-06 Thread Muchun Song
On Tue, Jul 28, 2020 at 11:49 AM Muchun Song wrote: > > In the reservation routine, we only check whether the cpuset meets > the memory allocation requirements. But we ignore the mempolicy of > MPOL_BIND case. If someone mmap hugetlb succeeds, but the subsequent > memory allocation may fail due

Re: [PATCH v4] mm/hugetlb: add mempolicy check in the reservation routine

2020-07-29 Thread Baoquan He
On 07/28/20 at 09:46am, Mike Kravetz wrote: > On 7/28/20 6:24 AM, Baoquan He wrote: > > Hi Muchun, > > > > On 07/28/20 at 11:49am, Muchun Song wrote: > >> In the reservation routine, we only check whether the cpuset meets > >> the memory allocation requirements. But we ignore the mempolicy of >

Re: [PATCH v4] mm/hugetlb: add mempolicy check in the reservation routine

2020-07-28 Thread Mike Kravetz
On 7/28/20 6:24 AM, Baoquan He wrote: > Hi Muchun, > > On 07/28/20 at 11:49am, Muchun Song wrote: >> In the reservation routine, we only check whether the cpuset meets >> the memory allocation requirements. But we ignore the mempolicy of >> MPOL_BIND case. If someone mmap hugetlb succeeds, but

Re: [External] Re: [PATCH v4] mm/hugetlb: add mempolicy check in the reservation routine

2020-07-28 Thread Muchun Song
On Tue, Jul 28, 2020 at 9:25 PM Baoquan He wrote: > > Hi Muchun, > > On 07/28/20 at 11:49am, Muchun Song wrote: > > In the reservation routine, we only check whether the cpuset meets > > the memory allocation requirements. But we ignore the mempolicy of > > MPOL_BIND case. If someone mmap hugetlb

Re: [PATCH v4] mm/hugetlb: add mempolicy check in the reservation routine

2020-07-28 Thread Baoquan He
Hi Muchun, On 07/28/20 at 11:49am, Muchun Song wrote: > In the reservation routine, we only check whether the cpuset meets > the memory allocation requirements. But we ignore the mempolicy of > MPOL_BIND case. If someone mmap hugetlb succeeds, but the subsequent > memory allocation may fail due

[PATCH v4] mm/hugetlb: add mempolicy check in the reservation routine

2020-07-27 Thread Muchun Song
In the reservation routine, we only check whether the cpuset meets the memory allocation requirements. But we ignore the mempolicy of MPOL_BIND case. If someone mmap hugetlb succeeds, but the subsequent memory allocation may fail due to mempolicy restrictions and receives the SIGBUS signal. This