Koozali.org: home of the SME Server

Server not calculating traffic through interfaces

Dave

Server not calculating traffic through interfaces
« on: June 30, 2003, 05:55:51 PM »
Here's a dump from ifconfig:

[root@diaboli main]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:E0:18:0A:88:4E
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:13429117 errors:0 dropped:0 overruns:0 frame:0
          TX packets:17439457 errors:0 dropped:0 overruns:0 carrier:0
          collisions:230427
          RX bytes:1602864140 (1528.6 Mb)  TX bytes:957472890 (913.1 Mb)

eth1      Link encap:Ethernet  HWaddr 00:E0:18:0A:88:4F
          inet addr:10.0.0.1  Bcast:10.0.0.255  Mask:255.255.255.0
          EtherTalk Phase 2 addr:65280/51
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:51016532 errors:0 dropped:0 overruns:0 frame:0
          TX packets:43718918 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0
          RX bytes:2640847292 (2518.5 Mb)  TX bytes:1679509941 (1601.7 Mb)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          EtherTalk Phase 2 addr:0/0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:849969 errors:0 dropped:0 overruns:0 frame:0
          TX packets:849969 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0
          RX bytes:272830913 (260.1 Mb)  TX bytes:272830913 (260.1 Mb)

ppp0      Link encap:Point-to-Point Protocol
          inet addr:X.X.X.X  P-t-P:Y.Y.Y.Y  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:1383796 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2021379 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0
          RX bytes:351961690 (335.6 Mb)  TX bytes:2348232289 (2239.4 Mb)


Looks fine, doesn't it? Well, here's the uptime:

[root@diaboli main]# uptime
 10:48pm  up 30 days, 22:12,  1 user,  load average: 0.94, 0.77, 0.39

Hmmm. Small amount of data for a month's worth of running, no? Actually, terabytes of data have passed through the internal interface in the last month. Heck, only half an hour before these dumps I had transferred another 15GB to the server.

Has anyone else noticed that the traffic figures don't seem to update?

Dave

Re: Server not calculating traffic through interfaces
« Reply #1 on: June 30, 2003, 05:57:21 PM »
Oh, 5.6U4

Jon Blakely

Re: Server not calculating traffic through interfaces
« Reply #2 on: July 01, 2003, 02:31:09 AM »
Dave,

Those figures are 1 minute, 5 minute and 15 minute system load figures not traffic

# man uptime

Jon

Dave

Re: Server not calculating traffic through interfaces
« Reply #3 on: July 01, 2003, 12:48:55 PM »
Jon Blakely wrote:
>
> Dave,
>
> Those figures are 1 minute, 5 minute and 15 minute system
> load figures not traffic
>
> # man uptime
>
> Jon

Yes, I am well aware of the meaning of the uptime load average figures. The salient information is the uptime, not the load. There's a full month of uptime. That then directs you to the output from ifconfig. Notice the traffic. It's low. I mentioned this in the first post.

Per Smith

Re: Server not calculating traffic through interfaces
« Reply #4 on: July 03, 2003, 02:39:00 AM »
That's because the traffic counters are only 32 bit wide, and counting bytes, which means that the counters will wrap when about 4.2 GB of data is transferred.

Best regards

Per Smith