From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f46.google.com (mail-wg0-f46.google.com [74.125.82.46]) by kanga.kvack.org (Postfix) with ESMTP id 938C66B007B for ; Mon, 16 Dec 2013 08:20:21 -0500 (EST) Received: by mail-wg0-f46.google.com with SMTP id m15so4532809wgh.25 for ; Mon, 16 Dec 2013 05:20:20 -0800 (PST) Received: from mx1.redhat.com (mx1.redhat.com. [209.132.183.28]) by mx.google.com with ESMTP id z16si2148091wia.34.2013.12.16.05.20.20 for ; Mon, 16 Dec 2013 05:20:20 -0800 (PST) Message-ID: <52AEFE08.5020501@redhat.com> Date: Mon, 16 Dec 2013 08:20:08 -0500 From: Rik van Riel MIME-Version: 1.0 Subject: Re: [PATCH 3/7] mm: page_alloc: Use zone node IDs to approximate locality References: <1386943807-29601-1-git-send-email-mgorman@suse.de> <1386943807-29601-4-git-send-email-mgorman@suse.de> In-Reply-To: <1386943807-29601-4-git-send-email-mgorman@suse.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Mel Gorman Cc: Johannes Weiner , Andrew Morton , Dave Hansen , Linux-MM , LKML On 12/13/2013 09:10 AM, Mel Gorman wrote: > zone_local is using node_distance which is a more expensive call than > necessary. On x86, it's another function call in the allocator fast path > and increases cache footprint. This patch makes the assumption zones on a > local node will share the same node ID. The necessary information should > already be cache hot. > > Signed-off-by: Mel Gorman Acked-by: Rik van Riel -- All rights reversed -- 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754074Ab3LPNUY (ORCPT ); Mon, 16 Dec 2013 08:20:24 -0500 Received: from mx1.redhat.com ([209.132.183.28]:20566 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753699Ab3LPNUX (ORCPT ); Mon, 16 Dec 2013 08:20:23 -0500 Message-ID: <52AEFE08.5020501@redhat.com> Date: Mon, 16 Dec 2013 08:20:08 -0500 From: Rik van Riel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 To: Mel Gorman CC: Johannes Weiner , Andrew Morton , Dave Hansen , Linux-MM , LKML Subject: Re: [PATCH 3/7] mm: page_alloc: Use zone node IDs to approximate locality References: <1386943807-29601-1-git-send-email-mgorman@suse.de> <1386943807-29601-4-git-send-email-mgorman@suse.de> In-Reply-To: <1386943807-29601-4-git-send-email-mgorman@suse.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/13/2013 09:10 AM, Mel Gorman wrote: > zone_local is using node_distance which is a more expensive call than > necessary. On x86, it's another function call in the allocator fast path > and increases cache footprint. This patch makes the assumption zones on a > local node will share the same node ID. The necessary information should > already be cache hot. > > Signed-off-by: Mel Gorman Acked-by: Rik van Riel -- All rights reversed