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: Roberto Nibali <ratz@xxxxxxxxxxxx>
Date: Wed, 24 Dec 2003 09:26:17 +0100
Hi,

what does the "size" mean?

He's actually got a point :)

This refers to the number of hash buckets in the IPVS connection table.

So what about this:

diff -Nur linux-2.4.23-preX-orig/net/ipv4/ipvs/ip_vs_conn.c linux-2.4.23-preX-ratz/net/ipv4/ipvs/ip_vs_conn.c --- linux-2.4.23-preX-orig/net/ipv4/ipvs/ip_vs_conn.c 2003-11-03 17:26:50.000000000 +0100 +++ linux-2.4.23-preX-ratz/net/ipv4/ipvs/ip_vs_conn.c 2003-12-24 09:21:37.000000000 +0100
@@ -1519,7 +1519,7 @@
                return -ENOMEM;

        IP_VS_INFO("Connection hash table configured "
-                  "(size=%d, memory=%ldKbytes)\n",
+                  "(hash buckets=%d, memory=%ldKbytes)\n",
                   IP_VS_CONN_TAB_SIZE,
(long)(IP_VS_CONN_TAB_SIZE*sizeof(struct list_head))/1024);
        IP_VS_DBG(0, "Each connection entry needs %d bytes at least\n",
diff -Nur linux-2.4.23-preX-orig/net/ipv4/ipvs/ip_vs_ctl.c linux-2.4.23-preX-ratz/net/ipv4/ipvs/ip_vs_ctl.c --- linux-2.4.23-preX-orig/net/ipv4/ipvs/ip_vs_ctl.c 2003-11-03 17:26:50.000000000 +0100 +++ linux-2.4.23-preX-ratz/net/ipv4/ipvs/ip_vs_ctl.c 2003-12-24 09:22:47.000000000 +0100
@@ -1488,7 +1488,7 @@
        pos = 192;
        if (pos > offset) {
                sprintf(temp,
-                       "IP Virtual Server version %d.%d.%d (size=%d)",
+ "IP Virtual Server version %d.%d.%d (hash buckets=%d)",
                        NVERSION(IP_VS_VERSION_CODE), IP_VS_CONN_TAB_SIZE);
                len += sprintf(buf+len, "%-63s\n", temp);
                len += sprintf(buf+len, "%-63s\n",
@@ -1942,7 +1942,7 @@
        {
                char buf[64];

-               sprintf(buf, "IP Virtual Server version %d.%d.%d (size=%d)",
+ sprintf(buf, "IP Virtual Server version %d.%d.%d (hash buckets=%d)",
                        NVERSION(IP_VS_VERSION_CODE), IP_VS_CONN_TAB_SIZE);
                if (*len < strlen(buf)+1) {
                        ret = -EINVAL;


Best regards,
Roberto Nibali, ratz
--
echo '[q]sa[ln0=aln256%Pln256/snlbx]sb3135071790101768542287578439snlbxq'|dc

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