@@ -44,7 +44,8 @@ config IP_VS_DEBUG
44
44
45
45
config IP_VS_TAB_BITS
46
46
int "IPVS connection table size (the Nth power of 2)"
47
- range 8 20
47
+ range 8 20 if !64BIT
48
+ range 8 27 if 64BIT
48
49
default 12
49
50
help
50
51
The IPVS connection hash table uses the chaining scheme to handle
@@ -54,24 +55,24 @@ config IP_VS_TAB_BITS
54
55
55
56
Note the table size must be power of 2. The table size will be the
56
57
value of 2 to the your input number power. The number to choose is
57
- from 8 to 20 , the default number is 12, which means the table size
58
- is 4096. Don't input the number too small, otherwise you will lose
59
- performance on it. You can adapt the table size yourself, according
60
- to your virtual server application. It is good to set the table size
61
- not far less than the number of connections per second multiplying
62
- average lasting time of connection in the table. For example, your
63
- virtual server gets 200 connections per second, the connection lasts
64
- for 200 seconds in average in the connection table, the table size
65
- should be not far less than 200x200, it is good to set the table
66
- size 32768 (2**15).
58
+ from 8 to 27 for 64BIT(20 otherwise) , the default number is 12,
59
+ which means the table size is 4096. Don't input the number too
60
+ small, otherwise you will lose performance on it. You can adapt the
61
+ table size yourself, according to your virtual server application.
62
+ It is good to set the table size not far less than the number of
63
+ connections per second multiplying average lasting time of
64
+ connection in the table. For example, your virtual server gets 200
65
+ connections per second, the connection lasts for 200 seconds in
66
+ average in the connection table, the table size should be not far
67
+ less than 200x200, it is good to set the table size 32768 (2**15).
67
68
68
69
Another note that each connection occupies 128 bytes effectively and
69
70
each hash entry uses 8 bytes, so you can estimate how much memory is
70
71
needed for your box.
71
72
72
73
You can overwrite this number setting conn_tab_bits module parameter
73
- or by appending ip_vs.conn_tab_bits=? to the kernel command line
74
- if IP VS was compiled built-in.
74
+ or by appending ip_vs.conn_tab_bits=? to the kernel command line if
75
+ IP VS was compiled built-in.
75
76
76
77
comment "IPVS transport protocol load balancing support"
77
78
0 commit comments