LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: about the ipvs "size"

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: about the ipvs "size"
From: Horms <horms@xxxxxxxxxxxx>
Date: Wed, 24 Dec 2003 12:30:19 +0900
On Wed, Dec 24, 2003 at 10:46:21AM +0800, tao cui wrote:
> hi 
> after the ipvsadm,it will show like the following:
> IP Virtual Server version 1.0.9 (size=4096) or IP Virtual Server version 
> 1.0.9 (size=65536)
>  
> what does the "size" mean? 

This refers to the number of hash buckets in the IPVS connection table.
This is configured at compile time by setting CONFIG_IP_VS_TAB_BITS,
the default is 12.

size = 2^CONFIG_IP_VS_TAB_BITS

Thus CONFIG_IP_VS_TAB_BITS = 12 -> size = 4096
     CONFIG_IP_VS_TAB_BITS = 16 -> size = 65536

Note that this is the number of hash buckets, not the maximum
number of connections. A bucket can contain zero or more connections.
The maximum number of conenctions is only limited by the memory
available.

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