From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757214AbcIUKe6 (ORCPT ); Wed, 21 Sep 2016 06:34:58 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:50573 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756722AbcIUKe5 (ORCPT ); Wed, 21 Sep 2016 06:34:57 -0400 Date: Wed, 21 Sep 2016 12:34:47 +0200 From: Gerald Schaefer To: Dave Hansen Cc: Mike Kravetz , Andrew Morton , Naoya Horiguchi , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Michal Hocko , "Kirill A . Shutemov" , Vlastimil Babka , "Aneesh Kumar K . V" , Martin Schwidefsky , Heiko Carstens , Rui Teng Subject: Re: [PATCH 0/1] memory offline issues with hugepage size > memory block size In-Reply-To: <57E175B3.1040802@linux.intel.com> References: <20160920155354.54403-1-gerald.schaefer@de.ibm.com> <57E175B3.1040802@linux.intel.com> Organization: IBM Deutschland Research & Development GmbH / Vorsitzende des Aufsichtsrats: Martina Koederitz / Geschaeftsfuehrung: Dirk Wittkopp / Sitz der Gesellschaft: Boeblingen / Registergericht: Amtsgericht Stuttgart, HRB 243294 X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.23; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16092110-0008-0000-0000-000002CF7209 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16092110-0009-0000-0000-00001A0B7428 Message-Id: <20160921123447.2c3ff33c@thinkpad> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-09-21_07:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=2 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1609020000 definitions=main-1609210190 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 20 Sep 2016 10:45:23 -0700 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. > Hmm, not sure if I got this right, but I thought that by calling update_and_free_page() on the head page (even if it is not part of the memory block to be removed) all parts of the gigantic hugepage should be properly freed and there should not be any remnants left.