Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261151AbVAXRHO (ORCPT ); Mon, 24 Jan 2005 12:07:14 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261482AbVAXRHO (ORCPT ); Mon, 24 Jan 2005 12:07:14 -0500 Received: from mx1.redhat.com ([66.187.233.31]:24044 "EHLO mx1.redhat.com") by vger.kernel.org with ESMTP id S261151AbVAXREP (ORCPT ); Mon, 24 Jan 2005 12:04:15 -0500 From: David Howells In-Reply-To: <20050124165412.GL31455@parcelfarce.linux.theplanet.co.uk> References: <20050124165412.GL31455@parcelfarce.linux.theplanet.co.uk> To: Matthew Wilcox Cc: Andrew Morton , linux-mm@kvack.org, manfred@colorfullife.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Make slab use alloc_pages directly X-Mailer: MH-E 7.82; nmh 1.0.4; GNU Emacs 21.3.50.1 Date: Mon, 24 Jan 2005 17:03:58 +0000 Message-ID: <24391.1106586238@redhat.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 638 Lines: 16 Matthew Wilcox wrote: > __get_free_pages() calls alloc_pages, finds the page_address() and > throws away the struct page *. Slab then calls virt_to_page to get it > back again. Much more efficient for slab to call alloc_pages itself, > as well as making the NUMA and non-NUMA cases more similarr to each other. Looks reasonable. Should also work in the NOMMU case. David - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/