From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx170.postini.com [74.125.245.170]) by kanga.kvack.org (Postfix) with SMTP id A63EE6B0164 for ; Thu, 13 Sep 2012 13:37:58 -0400 (EDT) Date: Thu, 13 Sep 2012 20:37:58 +0300 From: "Kirill A. Shutemov" Subject: Re: [PATCH v3 10/10] thp: implement refcounting for huge zero page Message-ID: <20120913173758.GA4181@shutemov.name> References: <1347282813-21935-1-git-send-email-kirill.shutemov@linux.intel.com> <1347444473-26468-1-git-send-email-kirill.shutemov@linux.intel.com> <20120913171613.GJ3388@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120913171613.GJ3388@redhat.com> Sender: owner-linux-mm@kvack.org List-ID: To: Andrea Arcangeli Cc: "Kirill A. Shutemov" , Andrew Morton , linux-mm@kvack.org, Andi Kleen , "H. Peter Anvin" , linux-kernel@vger.kernel.org On Thu, Sep 13, 2012 at 07:16:13PM +0200, Andrea Arcangeli wrote: > Hi Kirill, > > On Wed, Sep 12, 2012 at 01:07:53PM +0300, Kirill A. Shutemov wrote: > > - hpage = alloc_pages(GFP_TRANSHUGE | __GFP_ZERO, HPAGE_PMD_ORDER); > > The page is likely as large as a pageblock so it's unlikely to create > much fragmentation even if the __GFP_MOVABLE is set. Said that I guess > it would be more correct if __GFP_MOVABLE was clear, like > (GFP_TRANSHUGE | __GFP_ZERO) & ~__GFP_MOVABLE because this page isn't > really movable (it's only reclaimable). Good point. I'll update the patchset. > The xchg vs xchgcmp locking also looks good. > > Reviewed-by: Andrea Arcangeli Is it for the whole patchset? :) -- Kirill A. Shutemov -- 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