Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932143AbWA3JDr (ORCPT ); Mon, 30 Jan 2006 04:03:47 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932139AbWA3JDr (ORCPT ); Mon, 30 Jan 2006 04:03:47 -0500 Received: from gw1.cosmosbay.com ([62.23.185.226]:3253 "EHLO gw1.cosmosbay.com") by vger.kernel.org with ESMTP id S932143AbWA3JDq (ORCPT ); Mon, 30 Jan 2006 04:03:46 -0500 Message-ID: <43DDD66C.4060201@cosmosbay.com> Date: Mon, 30 Jan 2006 10:03:40 +0100 From: Eric Dumazet User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: Benjamin LaHaise , Andrew Morton CC: linux-kernel@vger.kernel.org Subject: Questions about alloc_large_system_hash() and TLB entries References: <20060128235113.697e3a2c.akpm@osdl.org> <200601291620.28291.ioe-lkml@rameria.de> <20060129113312.73f31485.akpm@osdl.org> <43DD1FDC.4080302@cosmosbay.com> <20060129200504.GD28400@kvack.org> <43DD2C15.1090800@cosmosbay.com> In-Reply-To: <43DD2C15.1090800@cosmosbay.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.6 (gw1.cosmosbay.com [172.16.8.80]); Mon, 30 Jan 2006 10:03:39 +0100 (CET) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 913 Lines: 27 alloc_large_system_hash() is used to allocate large hash tables at boot time. Example on a 2 nodes NUMA machine : Inode-cache hash table entries: 1048576 (order: 11, 8388608 bytes) IP route cache hash table entries: 2097152 (order: 12, 16777216 bytes) TCP established hash table entries: 2097152 (order: 12, 16777216 bytes) Memory is taken from : bootmem if (flags & HASH_EARLY) __vmalloc() if (hashdist is set) (NUMA knob) __get_free_pages(GFP_ATOMIC, order); What would be the needed changes in the code to get both : - Allocate ram equally from all the nodes of the machine - Use large pages (2MB) to lower TLB stress Thank you Eric - 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/