summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Morton <akpm@digeo.com>2003-01-05 03:51:56 -0800
committerLinus Torvalds <torvalds@home.transmeta.com>2003-01-05 03:51:56 -0800
commit9a7dad1c87fc2ba65f2fdc745c69fd5500e04b09 (patch)
treed1271be9f3f9aded4cd5dfbdf3a98a3b5379da31 /include
parent148b113a1ce387227c23486631a1832422f312d9 (diff)
[PATCH] Dynamically size the pidhash hash table.
Patch from Bill Irwin. Prodding from me. The hashtables in kernel/pid.c are 128 kbytes, which is far too large for very small machines. So we dynamically size them and allocate them from bootmem. From 16 buckets on the very smallest machine up to 4096 buckets (effectively half the current size) with one gigabyte of memory or more. The patch also switches the hashing from a custom hash over to the more powerful hash_long().
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions