From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755296AbZBWQmC (ORCPT ); Mon, 23 Feb 2009 11:42:02 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756306AbZBWQlr (ORCPT ); Mon, 23 Feb 2009 11:41:47 -0500 Received: from smtp3.ultrahosting.com ([74.213.175.254]:34042 "EHLO smtp.ultrahosting.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754548AbZBWQlr (ORCPT ); Mon, 23 Feb 2009 11:41:47 -0500 Date: Mon, 23 Feb 2009 11:33:00 -0500 (EST) From: Christoph Lameter X-X-Sender: cl@qirst.com To: Mel Gorman cc: Linux Memory Management List , Pekka Enberg , Rik van Riel , KOSAKI Motohiro , Johannes Weiner , Nick Piggin , Linux Kernel Mailing List , Lin Ming , Zhang Yanmin Subject: Re: [PATCH 04/20] Convert gfp_zone() to use a table of precalculated value In-Reply-To: <20090223163322.GN6740@csn.ul.ie> Message-ID: References: <1235344649-18265-1-git-send-email-mel@csn.ul.ie> <1235344649-18265-5-git-send-email-mel@csn.ul.ie> <20090223163322.GN6740@csn.ul.ie> User-Agent: Alpine 1.10 (DEB 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 23 Feb 2009, Mel Gorman wrote: > I was concerned with mispredictions here rather than the actual assembly > and gfp_zone is inlined so it's lot of branches introduced in a lot of paths. The amount of speculation that can be done by the processor pretty limited to a few instructions. So the impact of a misprediction also should be minimal. The decoder is likely to have sucked in the following code anyways.