Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7455131imu; Wed, 14 Nov 2018 18:09:53 -0800 (PST) X-Google-Smtp-Source: AJdET5fRPQI5c41/AwyKLPS5auShwoTuvfl5dFMEGJvypepwnfNDhCqt/3nmsQ6R0OwjczFSjpvp X-Received: by 2002:a17:902:6bc1:: with SMTP id m1-v6mr4470209plt.34.1542247793076; Wed, 14 Nov 2018 18:09:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542247793; cv=none; d=google.com; s=arc-20160816; b=af+XoIYTkic6FLe5neIRfOrEhUuv5dcwgoBKfvFGWlXV5sn5sTpQdc4gE/1Iwg6L27 Sn33+B7TpE3V4A7QeHYRPLrtznta9cY5+8o7n6laNp2SZdVQ51RwNycOsRMlAoiQOgzr rjs6bJk1gQnHYfA2byf1GDpO7ejr0ZxTcHhKE90p5Qvz14ZFwtQgJraiYaIGriPGx7wK ODli7cYAvnzlQmnBoQaKBsYorS04iAJvk/BsXS2hS77BMWCN4v4An4S1MJ8UHl8vS5sw ACvp4lde5MNchrCHE9CM9oGCrpJDzyap4thNugCv+FO8Yvu0FTMWucLPhXwAST/JBclw 7nZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:in-reply-to :content-disposition:mime-version:references:subject:cc:to:from:date; bh=yZ0mt1mxtZBl1TuPCAnDziIUFZGRd0LlXjuahF0ECWs=; b=nFFkN0/XmIGeH1pgswwdz3qNbGa2FCNtNT2crx8ncW2J3cLWgIqHB6BF1nsZ+2GVfg qGm4x6G1QCiLWQYLqZKowWfEfe9RCFKyayUHKtinfeo8cLRGTpHhspGfFz1YsUr2QLWg rAZgeM6sxlLKsLdre5kGx2LhjTd5sojTlesGJGnhXo1VtGQxobiA0D1kori3Pmfd4jE5 lJvaDjrnLZ+xqKIh7bvbgDcZh0HKFPITDv0TpSVEjfQs+kFaS2G4gpUlAQgCZf3rrDFJ 6+H92VvqU2Dvc263a45WL2+oTyLaxtoftedDPJJSaESxjso8xybOMLHu+skh4Dd35jaB v8iw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 32-v6si27956324plc.370.2018.11.14.18.09.38; Wed, 14 Nov 2018 18:09:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728405AbeKOMNh (ORCPT + 99 others); Thu, 15 Nov 2018 07:13:37 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:58238 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726579AbeKOMNh (ORCPT ); Thu, 15 Nov 2018 07:13:37 -0500 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id wAF1wj90005800 for ; Wed, 14 Nov 2018 21:07:46 -0500 Received: from e06smtp05.uk.ibm.com (e06smtp05.uk.ibm.com [195.75.94.101]) by mx0a-001b2d01.pphosted.com with ESMTP id 2nrvaq75q3-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 14 Nov 2018 21:07:46 -0500 Received: from localhost by e06smtp05.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 15 Nov 2018 02:07:44 -0000 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp05.uk.ibm.com (192.168.101.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 15 Nov 2018 02:07:38 -0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id wAF27bul52035662 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 15 Nov 2018 02:07:37 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0A1DA11C050; Thu, 15 Nov 2018 02:07:37 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0720A11C04C; Thu, 15 Nov 2018 02:07:30 +0000 (GMT) Received: from rapoport-lnx (unknown [9.148.204.206]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Thu, 15 Nov 2018 02:07:29 +0000 (GMT) Date: Wed, 14 Nov 2018 18:07:26 -0800 From: Mike Rapoport To: David Hildenbrand Cc: Matthew Wilcox , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, devel@linuxdriverproject.org, linux-fsdevel@vger.kernel.org, linux-pm@vger.kernel.org, xen-devel@lists.xenproject.org, Jonathan Corbet , Alexey Dobriyan , Mike Rapoport , Andrew Morton , Christian Hansen , Vlastimil Babka , "Kirill A. Shutemov" , Stephen Rothwell , "Michael S. Tsirkin" , Michal Hocko , Pavel Tatashin , Alexander Duyck , Naoya Horiguchi , Miles Chen , David Rientjes Subject: Re: [PATCH RFC 2/6] mm: convert PG_balloon to PG_offline References: <20181114211704.6381-1-david@redhat.com> <20181114211704.6381-3-david@redhat.com> <20181114222321.GB1784@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-TM-AS-GCONF: 00 x-cbid: 18111502-0020-0000-0000-000002E832C3 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18111502-0021-0000-0000-000021374AA3 Message-Id: <20181115020725.GC2353@rapoport-lnx> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-11-14_20:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1811150016 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 14, 2018 at 11:49:15PM +0100, David Hildenbrand wrote: > On 14.11.18 23:23, Matthew Wilcox wrote: > > On Wed, Nov 14, 2018 at 10:17:00PM +0100, David Hildenbrand wrote: > >> Rename PG_balloon to PG_offline. This is an indicator that the page is > >> logically offline, the content stale and that it should not be touched > >> (e.g. a hypervisor would have to allocate backing storage in order for the > >> guest to dump an unused page). We can then e.g. exclude such pages from > >> dumps. > >> > >> In following patches, we will make use of this bit also in other balloon > >> drivers. While at it, document PGTABLE. > > > > Thank you for documenting PGTABLE. I didn't realise I also had this > > document to update when I added PGTABLE. > > Thank you for looking into this :) > > > > >> +++ b/Documentation/admin-guide/mm/pagemap.rst > >> @@ -78,6 +78,8 @@ number of times a page is mapped. > >> 23. BALLOON > >> 24. ZERO_PAGE > >> 25. IDLE > >> + 26. PGTABLE > >> + 27. OFFLINE > > > > So the offline *user* bit is new ... even though the *kernel* bit > > just renames the balloon bit. I'm not sure how I feel about this. > > I'm going to think about it some more. Could you share your decision > > process with us? > > BALLOON was/is documented as > > "23 - BALLOON > balloon compaction page > " > > and only includes all virtio-ballon pages after the non-lru migration > feature has been implemented for ballooned pages. Since then, this flag > does basically no longer stands for what it actually was supposed to do. Perhaps I missing something, but how the user should interpret "23" when he reads /proc/kpageflags? > To not break uapi I decided to not rename it but instead to add a new flag. I've got a feeling that uapi was anyway changed for the BALLON flag meaning. > > > > I have no objection to renaming the balloon bit inside the kernel; I > > think that's a wise idea. I'm just not sure whether we should rename > > the user balloon bit rather than adding a new bit. > > > > Can we rename without breaking uapi? > > -- > > Thanks, > > David / dhildenb > -- Sincerely yours, Mike.