LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: how to change the default size of hash table?

To: He Weitao <hewt@xxxxxxxxxx>
Subject: Re: how to change the default size of hash table?
Cc: "lvs-users@xxxxxxxxxxxxxxxxxxxxxx" <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
From: Ratz <ratz@xxxxxx>
Date: Wed, 29 Mar 2000 13:28:46 +0200
He Weitao wrote:
> 
> >
> > CONFIG_IP_MASQUERADE_VS_TAB_BITS=#value   /* in .config of
> > /usr/src/linux/
> >
> > > Suppose there are 6000 connections to Director at the same time,
> > > and the ppc is default 360s,  what should this parameter be set to ?
> > > and what is the upper limit of this parameter? 2^18?
> >
> > yes, although I once ran into problems with kernel panics having 2^18,
> > but 2^17 was always safe for me.
> >
> > Regards,
> >
> > Roberto Nibali, ratz
> 
> got it,Thanks. :)
> 
> Could you tell me some parameters in your application?
> the number of connections at the same time=
> CONFIG_IP_MASQUERADE_VS_TAB_BITS=
> your memory size=physical mem + swap =                +

I've got different lvs-clusters running, but probably the most
interesting one is currently the one in my lab:

ipvs-0.9.9
VS_TAB_BITS=16
memory phys.=128MB
memory swap =256MB

I'm not sure what number I should provide you with, so I print the
vs-table output:

lb2-master-online:/root # ipvsadm
IP Virtual Server version 0.9.8 (size=65536)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port          Forward Weight ActiveConn InActConn
TCP  192.168.216.12:www wrr persistent 1200
  -> 192.168.216.3:www           Route   1      13         9151      
  -> 192.168.216.2:www           Route   1      15         12007     
TCP  192.168.216.13:www wrr persistent 1200
  -> 192.168.216.3:www           Route   1      0          0         
  -> 192.168.216.2:www           Route   1      0          0         
TCP  192.168.216.12:https wrr persistent 1200
  -> 192.168.216.3:https         Route   1      0          0        
  -> 192.168.216.2:https         Route   1      0          0         
TCP  192.168.216.13:https wrr persistent 1200
  -> 192.168.216.3:https         Route   1      0          0         
  -> 192.168.216.2:https         Route   1      0          0         
lb2-master-online:/root # 


BTW, if someone wants ipvsadm to print the correct patch version number,
you should change 
line 1929 of /usr/src/linux/net/ipv4/ip_vs.c  

from: "IP Virtual Server version 0.9.8 (size=%d)\n"
to  : "IP Virtual Server version 0.9.9 (size=%d)\n"

and recompile!

> I am think about the cause of the limit, perhaps memory size?

Possibly, but I'm sure, Wensong nows it and I think he mentioned the
problem once in former days, but I can't remember :)


regards,

Roberto Nibali, ratz


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