Re: [RFC 2/3] hugetlbfs: coordinate global and subpool reserve accounting

From: Mike Kravetz
Date: Mon Mar 02 2015 - 20:31:40 EST

On 03/02/2015 03:10 PM, Andrew Morton wrote:
On Fri, 27 Feb 2015 14:58:11 -0800 Mike Kravetz <mike.kravetz@xxxxxxxxxx> wrote:

If the pages for a subpool are reserved, then the reservations have
already been accounted for in the global pool. Therefore, when
requesting a new reservation (such as for a mapping) for the subpool
do not count again in global pool. However, when actually allocating
a page for the subpool decrement global reserve count to correspond to
with decrement in global free pages.

The last sentence made my brain hurt.

Sorry. I was trying to point out that the global free and reserve
accounting is still the same when doing a page allocation, even
though the entire size of the subpool was reserved. For example,
when allocating a page the global free and reserve counts are both

Mike Kravetz
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at