Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754036AbbHJNuQ (ORCPT ); Mon, 10 Aug 2015 09:50:16 -0400 Received: from resqmta-ch2-03v.sys.comcast.net ([69.252.207.35]:40915 "EHLO resqmta-ch2-03v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751946AbbHJNuN (ORCPT ); Mon, 10 Aug 2015 09:50:13 -0400 Date: Mon, 10 Aug 2015 08:50:10 -0500 (CDT) From: Christoph Lameter X-X-Sender: cl@east.gentwo.org To: "Kirill A. Shutemov" cc: Hugh Dickins , "Kirill A. Shutemov" , Andrew Morton , Andrea Arcangeli , David Rientjes , Dave Hansen , Mel Gorman , Rik van Riel , Vlastimil Babka , Naoya Horiguchi , Steve Capper , "Aneesh Kumar K.V" , Johannes Weiner , Michal Hocko , Jerome Marchand , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: page-flags behavior on compound pages: a worry In-Reply-To: <20150810110955.GA27046@node.dhcp.inet.fi> Message-ID: References: <1426784902-125149-1-git-send-email-kirill.shutemov@linux.intel.com> <1426784902-125149-5-git-send-email-kirill.shutemov@linux.intel.com> <20150806153259.GA2834@node.dhcp.inet.fi> <20150807145056.GB12177@node.dhcp.inet.fi> <20150810110955.GA27046@node.dhcp.inet.fi> Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 864 Lines: 18 On Mon, 10 Aug 2015, Kirill A. Shutemov wrote: > I don't see anything actionable here. Your wish list doesn't cope with > reality. Compound pages are mapped with PTEs for almost ten years and I > don't see why we should stop the practice. Well they have to if they are smaller than huge pages. Treating each PTE as each having their own state instead of having the whole compound mapped completely causes the problem. Refcounting in tail pages is not necessary if the whole compound is either mapped or not mapped at all by a process. Refcounting in tail pages is only necessary if you allow 4k slices to be mapped. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/