Messages in this thread | ![/](/images/icornerl.gif) | | Subject | RE: hash table sizes | Date | Wed, 26 Nov 2003 13:53:47 +0800 | From | "Zhang, Yanmin" <> |
| |
Tcp/ip have the same problem. See function tcp_init/ip_rt_init.
My colleague's testing on IA64 shows the same result like Jef's while tcp_establish hash table applies for about 1G memory! Actually, it seems it wants to apply for 4G memory at the beginning!
It's not a good idea to find a smart formula to fit into all scenarios. We can add new command line parameters to setup the hash table size, such as dentry_ht_size/inode_ht_size/tcp_estab_ht_size/ip_rt_ht_szie. If users don't input such parameters, then kernel can use Jes's formula to work out the size.
- 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/
| ![\](/images/icornerr.gif) |