lkml.org 
[lkml]   [2006]   [Jan]   [30]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateMon, 30 Jan 2006 10:03:40 +0100
FromEric Dumazet <>
SubjectQuestions about alloc_large_system_hash() and TLB entries
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/

\
 
 \ /
  Last update: 2006-01-30 09:06    [from the cache]
©2003-2008