From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753544AbZBWHVV (ORCPT ); Mon, 23 Feb 2009 02:21:21 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752335AbZBWHVN (ORCPT ); Mon, 23 Feb 2009 02:21:13 -0500 Received: from mail-bw0-f161.google.com ([209.85.218.161]:37850 "EHLO mail-bw0-f161.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752289AbZBWHVL (ORCPT ); Mon, 23 Feb 2009 02:21:11 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=wdDfRiSUYa5mv6UKwAERvX066Wm0EMTUbz3Y3nXVCyMO9PtBe1+ad/yt1A2DlqyEiW 0SpKQhOYAFn9vTzklxRGJfK0QfLAp+uOSwa7y9e+5Vb2tULxkjlN9L7O07OWI8iiGd7b GoPFMbRDILk+dF+MSeiMh8VnIhdnCLuG/aELg= MIME-Version: 1.0 In-Reply-To: <1235344649-18265-12-git-send-email-mel@csn.ul.ie> References: <1235344649-18265-1-git-send-email-mel@csn.ul.ie> <1235344649-18265-12-git-send-email-mel@csn.ul.ie> Date: Mon, 23 Feb 2009 09:21:09 +0200 X-Google-Sender-Auth: 7f805ebf10e1d650 Message-ID: <84144f020902222321q12f54ed8wae3865064bb6e43@mail.gmail.com> Subject: Re: [PATCH 11/20] Inline get_page_from_freelist() in the fast-path From: Pekka Enberg To: Mel Gorman Cc: Linux Memory Management List , Rik van Riel , KOSAKI Motohiro , Christoph Lameter , Johannes Weiner , Nick Piggin , Linux Kernel Mailing List , Lin Ming , Zhang Yanmin Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 23, 2009 at 1:17 AM, Mel Gorman wrote: > In the best-case scenario, use an inlined version of > get_page_from_freelist(). This increases the size of the text but avoids > time spent pushing arguments onto the stack. > > Signed-off-by: Mel Gorman It's not obvious to me why this would be a huge win so I suppose this patch description could use numbers. Note: we used to do tricks like these in slab.c but got rid of most of them to reduce kernel text size which is probably why the patch seems bit backwards to me.