LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: hash table size

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: hash table size
From: Hayden Myers <hayden@xxxxxxxxxxx>
Date: Mon, 18 Mar 2002 16:05:17 -0500 (EST)
There's also some info located in kernel help.  I posted it below for
convenience. 

Using a big ipvs hash table for virtual server will greatly reduce
conflicts in the ipvs hash table when there are hundreds of thousands
of active connections.
Note the table size must be power of 2. The table size will be the
value of 2 to the your input number power. For example, the default
number is 12, so the table size is 4096. Don't input the number too
small, otherwise you will lose performance on it. You can adapt the
table size yourself, according to your virtual server application. It
is good to set the table size not far less than the number of
connections per second multiplying average lasting time of connection
in the table.  For example, your virtual server gets 200 connections
per second, the connection lasts for 200 seconds in average in the
masquerading table, the table size should be not far less than
200x200, it is good to set the table size 32768 (2**15).   

Another note that each connection occupies 128 bytes effectively and
each hash entry uses 8 bytes, so you can estimate how much memory is
needed for your box.                                                    


Hayden Myers    
Support Manager
Skyline Network Technologies    
hayden@xxxxxxxxxxx
(888)917-1600x120


On Mon, 18 Mar 2002, Roberto Nibali wrote:

> Hi,
> 
> > Where can i find some documentations about the best hash table size, i have
> > looked at the documentation but that isn't searchable.
> 
> What's wrong with:
> 
> lynx -dump http://www.linux-vs.org/Joseph.Mack/HOWTO/LVS-HOWTO.txt | 
> grep --context -i "hash\ table"
> Ok, I buy your argument, if you're on an analog modem :)
> 
> > note: the director has 512 MB memory and is a 1Ghz PIII
> 
> Leave the settings as a general rule.
> 
> Cheers,
> Roberto Nibali, ratz
> 
> 
> _______________________________________________
> LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
> Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
> or go to http://www.in-addr.de/mailman/listinfo/lvs-users
> 



<Prev in Thread] Current Thread [Next in Thread>