Re: [PATCH 0/1] memory offline issues with hugepage size > memory block size

From: Vlastimil Babka
Date: Wed Sep 21 2016 - 05:49:17 EST


On 09/20/2016 07:45 PM, Dave Hansen wrote:
On 09/20/2016 10:37 AM, Mike Kravetz wrote:

Their approach (I believe) would be to fail the offline operation in
this case. However, I could argue that failing the operation, or
dissolving the unused huge page containing the area to be offlined is
the right thing to do.

I think the right thing to do is dissolve the whole huge page if even a
part of it is offlined. The only question is what to do with the
gigantic remnants.

Just free them into the buddy system? Or what are the alternatives? Creating smaller huge pages (if supported)? That doesn't make much sense. Offline it completely? That's probably not what the user requested.

Vlastimil