From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932987Ab1IBBRY (ORCPT ); Thu, 1 Sep 2011 21:17:24 -0400 Received: from one.firstfloor.org ([213.235.205.2]:44334 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932809Ab1IBBRW (ORCPT ); Thu, 1 Sep 2011 21:17:22 -0400 Date: Fri, 2 Sep 2011 03:17:16 +0200 From: Andi Kleen To: Andrea Arcangeli Cc: Andi Kleen , Andrew Morton , Minchan Kim , Michel Lespinasse , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Hugh Dickins , Johannes Weiner , Rik van Riel , Mel Gorman , KOSAKI Motohiro , Shaohua Li , "Paul E. McKenney" Subject: Re: [PATCH] thp: tail page refcounting fix #5 Message-ID: <20110902011716.GE7761@one.firstfloor.org> References: <20110826062436.GA5847@google.com> <20110826161048.GE23870@redhat.com> <20110826185430.GA2854@redhat.com> <20110827094152.GA16402@google.com> <20110827173421.GA2967@redhat.com> <20110901152417.GF10779@redhat.com> <20110901162808.80a2117c.akpm@linux-foundation.org> <20110901234527.GD7761@one.firstfloor.org> <20110902002013.GJ10779@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110902002013.GJ10779@redhat.com> User-Agent: Mutt/1.4.2.2i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Calling get_page/put_pages more times than necessary is never ideal, I > imagine the biggest cost is the atomic_inc on the head page that I've actually seen it in profile logs, but I hadn't realized it was redundant. Have to see if it brings a benefit to hot users. -Andi