[lvs-users] Incorrect client connect statistics data after unsigned int overflow

Dongsheng Song dongsheng.song at gmail.com
Fri Jun 24 04:01:40 BST 2011


Hi,

Here is my statistics data:

[root at kyle-lvs01 net]# date -u; cat /proc/net/ip_vs_stats
Fri Jun 24 02:17:32 UTC 2011
   Total Incoming Outgoing         Incoming         Outgoing
   Conns  Packets  Packets            Bytes            Bytes
    635A  9AD7996        0        3E1921904                0

 Conns/s   Pkts/s   Pkts/s          Bytes/s          Bytes/s
       0      A70        0            42F9F                0

[root at kyle-lvs01 net]# date -u; cat /proc/net/ip_vs_stats
Fri Jun 24 02:22:40 UTC 2011
   Total Incoming Outgoing         Incoming         Outgoing
   Conns  Packets  Packets            Bytes            Bytes
    635A  9B9FC32        0        3E6967A1E                0

 Conns/s   Pkts/s   Pkts/s          Bytes/s          Bytes/s
       0      A62        0            42A01                0

The statistics data of 'Total Conns' and 'Conns/s' is invalid for not
changed
when there have many new clients coming.

I use RHEL5 family Linux version 2.6.18-238.12.1.el5, is this is a known
bug which fixed already ?

I have checked the IPVS commits, not found any related commits:
git log --no-merges v2.6.18..v3.0-rc4 net/netfilter/ipvs/
include/net/ip_vs.h include/linux/ip_vs.h

PS: After I zero counters, no good news:

[root at kyle-lvs01 net]# ipvsadm -Z

[root at kyle-lvs01 net]# date -u ; ipvsadm -Ln --stats
Fri Jun 24 02:59:07 UTC 2011
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port               Conns   InPkts  OutPkts  InBytes
OutBytes
  -> RemoteAddress:Port
TCP  192.168.18.50:2600                  0    68987        0  7083728
0
  -> 192.168.18.22:2600                  0    17233        0  1769690
0
  -> 192.168.18.25:2600                  0    17247        0  1770864
0
  -> 192.168.18.24:2600                  0    17208        0  1767012
0
  -> 192.168.18.23:2600                  0    17299        0  1776162
0

[root at kyle-lvs01 net]# date -u ; ipvsadm -Ln --stats
Fri Jun 24 03:01:04 UTC 2011
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port               Conns   InPkts  OutPkts  InBytes
OutBytes
  -> RemoteAddress:Port
TCP  192.168.18.50:2600                  0   381557        0 39173742
0
  -> 192.168.18.22:2600                  0    95405        0  9795126
0
  -> 192.168.18.25:2600                  0    95411        0  9795742
0
  -> 192.168.18.24:2600                  0    95323        0  9786606
0
  -> 192.168.18.23:2600                  0    95418        0  9796268
0

Thanks,
Dongsheng Song



More information about the lvs-users mailing list