Re: [RFC] mm/hugetlb: use mem policy when allocating surplus huge pages

2017-02-10 Thread Mike Kravetz
On 02/10/2017 07:47 AM, Andrejczuk, Grzegorz wrote: > On Mike Kravetz, February 9, 2017 8:32 PM wrote: >> I believe another way of stating the problem is as follows: >> >> At mmap(MAP_HUGETLB) time a reservation for the number of huge pages >> is made. If surplus huge pages need to be (and can be)

RE: [RFC] mm/hugetlb: use mem policy when allocating surplus huge pages

2017-02-10 Thread Andrejczuk, Grzegorz
On Mike Kravetz, February 9, 2017 8:32 PM wrote: > I believe another way of stating the problem is as follows: > > At mmap(MAP_HUGETLB) time a reservation for the number of huge pages > is made. If surplus huge pages need to be (and can be) allocated to > satisfy the reservation, they will be allo

Re: [RFC] mm/hugetlb: use mem policy when allocating surplus huge pages

2017-02-09 Thread Mike Kravetz
On 02/09/2017 09:50 AM, Grzegorz Andrejczuk wrote: > Application allocating overcommitted hugepages behave differently when > its mempolicy is set to bind with NUMA nodes containing CPUs and not > containing CPUs. When memory is allocated on node with CPUs everything > work as expected, when memory