RE: Limit hash table size

Chen, Kenneth W
2004-02-18T00:51:50Z

[-- Attachment #1: Type: text/plain, Size: 791 bytes --]

Updates to Documentation/kernel-parameters.txt for the 4 new boot time
parameters.

- Ken

-----Original Message-----
From: Chen, Kenneth W
Sent: Tuesday, February 17, 2004 4:17 PM
To: 'Andrew Morton'
Cc: linux-kernel@vger.kernel.org; linux-ia64@vger.kernel.org
Subject: RE: Limit hash table size

> I think it would be better to leave things as they are,
> with a boot option to scale the tables down.

OK, here is one that adds boot time parameters only and leave everything
else untouched.

> The below patch addresses the inode and dentry caches.
> Need to think a bit more about the networking ones.

Don't know what happened to my mailer, the mailing list archive shows
complete patch including the network part. Hope this time you receive
the whole thing.

[-- Attachment #2: knl_param.patch --]
[-- Type: application/octet-stream, Size: 1234 bytes --]

diff -Nur linux-2.6.3-rc4/Documentation/kernel-parameters.txt linux-2.6.3-rc4.hash/Documentation/kernel-parameters.txt
--- linux-2.6.3-rc4/Documentation/kernel-parameters.txt 2004-02-16 18:23:44.000000000 -0800
+++ linux-2.6.3-rc4.hash/Documentation/kernel-parameters.txt 2004-02-17 16:41:58.000000000 -0800
@@ -292,6 +292,9 @@

devfs= [DEVFS]
See Documentation/filesystems/devfs/boot-options.
+
+ dhash_entries= [KNL]
+ Set number of hash buckets for dentry cache.

digi= [HW,SERIAL]
IO parameters + enable/disable command.
@@ -424,6 +427,9 @@
idle= [HW]
Format: idle=poll or idle=halt

+ ihash_entries= [KNL]
+ Set number of hash buckets for inode cache.
+
in2000= [HW,SCSI]
See header of drivers/scsi/in2000.c.

@@ -873,6 +879,9 @@

resume= [SWSUSP] Specify the partition device for software suspension

+ rhash_entries= [KNL,NET]
+ Set number of hash buckets for route cache
+
riscom8= [HW,SERIAL]
Format: <io_board1>[,<io_board2>[,...<io_boardN>]]

@@ -1135,6 +1144,9 @@
tgfx_2= See Documentation/input/joystick-parport.txt.
tgfx_3=

+ thash_entries= [KNL,NET]
+ Set number of hash buckets for TCP connection
+
tipar= [HW]
See header of drivers/char/tipar.c.