Julian Anastasov wrote:
> > what about returning to a hash table with fixed upper size?
>
> There is nothing to return to.
In the old days, I thought the table size was fixed. At least that's
what I've been telling everyone in the HOWTO. Here's from the HOWTO
in the section about setting up the director
http://www.linuxvirtualserver.org/Joseph.Mack/HOWTO/LVS-HOWTO-6.html#ss6.1
The default LVS hash table size (2^12 entries) originally meant
2^12 simultanous connections. If you are editing the .config
by hand look for CONFIG_IP_MASQUERADE_VS_TAB_BITS. Each
entry (for a connection to a client) takes 128 bytes,
2^12 entries requires 512kbytes. If you have 128M spare
memory you can have 10^6 entries if you set the table size
to 2^20. (Note: not all connections are active - some are waiting to
timeout).
Early versions of ipvs would crash your machine if you alloted
too much memory to this table. This problem has been fixed in 0.9.9.
(Note "top" reports memory allocated, not memory you are
using. No matter how much memory you have, Linux will eventually
allocate all of it as you continue to run the machine and load
programs.)
> May be you are talking about
> a new sysctl var in /proc/.../vs/conn_limit ?
didn't know about this.
I'm looking in 0.9.1-2.4.5 /proc/sys/net/ipv4/vs and don't
see it (I have amemthresh, timeout*, drop*)
Will it limit the memory the hash table can use?
Joe
--
Joseph Mack PhD, Senior Systems Engineer, Lockheed Martin
contractor to the National Environmental Supercomputer Center,
mailto:mack.joseph@xxxxxxx ph# 919-541-0007, RTP, NC, USA
|