From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f69.google.com (mail-wm0-f69.google.com [74.125.82.69]) by kanga.kvack.org (Postfix) with ESMTP id 001556B0264 for ; Wed, 21 Sep 2016 05:49:12 -0400 (EDT) Received: by mail-wm0-f69.google.com with SMTP id w84so37386857wmg.1 for ; Wed, 21 Sep 2016 02:49:11 -0700 (PDT) Received: from mx2.suse.de (mx2.suse.de. [195.135.220.15]) by mx.google.com with ESMTPS id x188si16478960wmx.16.2016.09.21.02.49.10 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 21 Sep 2016 02:49:11 -0700 (PDT) Subject: Re: [PATCH 0/1] memory offline issues with hugepage size > memory block size References: <20160920155354.54403-1-gerald.schaefer@de.ibm.com> <57E175B3.1040802@linux.intel.com> From: Vlastimil Babka Message-ID: <147658a7-bf29-d2db-a4b6-f8638f973ba7@suse.cz> Date: Wed, 21 Sep 2016 11:49:09 +0200 MIME-Version: 1.0 In-Reply-To: <57E175B3.1040802@linux.intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Dave Hansen , Mike Kravetz , Gerald Schaefer , Andrew Morton , Naoya Horiguchi Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Michal Hocko , "Kirill A . Shutemov" , "Aneesh Kumar K . V" , Martin Schwidefsky , Heiko Carstens , Rui Teng 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 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org