* 64bit counters: iproute(netlink) vs ifconfig
@ 2008-02-13 20:20 Krzysztof Oledzki
2008-02-13 20:35 ` Stephen Hemminger
0 siblings, 1 reply; 2+ messages in thread
From: Krzysztof Oledzki @ 2008-02-13 20:20 UTC (permalink / raw)
To: netdev
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1212 bytes --]
Hello,
Just discovered that counters returned by the "ip" tool are truncated:
# ip -s link show bond0
1: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue
link/ether 00:1d:09:67:6e:2f brd ff:ff:ff:ff:ff:ff
RX: bytes packets errors dropped overrun mcast
2485605521 9010211 0 0 0 6
TX: bytes packets errors dropped carrier collsns
3023237974 9345397 0 0 0 0
# ifconfig bond0
bond0 Link encap:Ethernet HWaddr 00:1D:09:67:6E:2F
inet addr:192.168.152.62 Bcast:192.168.152.255 Mask:255.255.255.0
inet6 addr: fe80::21d:9ff:fe67:6e2f/64 Scope:Link
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:9010367 errors:0 dropped:351 overruns:0 frame:0
TX packets:9345521 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2485631020 (2370.4 Mb) TX bytes:7318232294 (6979.2 Mb)
Is it possible to get 64-bit counters in ip via netlink? Struct
rtnl_link_stats does not look very optimistic, as it has rx_bytes/tx_bytes
defined with __u32.
Best regards,
Krzysztof Olędzki
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: 64bit counters: iproute(netlink) vs ifconfig
2008-02-13 20:20 64bit counters: iproute(netlink) vs ifconfig Krzysztof Oledzki
@ 2008-02-13 20:35 ` Stephen Hemminger
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2008-02-13 20:35 UTC (permalink / raw)
To: netdev
On Wed, 13 Feb 2008 21:20:59 +0100 (CET)
Krzysztof Oledzki <olel@ans.pl> wrote:
> Hello,
>
> Just discovered that counters returned by the "ip" tool are truncated:
>
> # ip -s link show bond0
> 1: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue
> link/ether 00:1d:09:67:6e:2f brd ff:ff:ff:ff:ff:ff
> RX: bytes packets errors dropped overrun mcast
> 2485605521 9010211 0 0 0 6
> TX: bytes packets errors dropped carrier collsns
> 3023237974 9345397 0 0 0 0
>
> # ifconfig bond0
> bond0 Link encap:Ethernet HWaddr 00:1D:09:67:6E:2F
> inet addr:192.168.152.62 Bcast:192.168.152.255 Mask:255.255.255.0
> inet6 addr: fe80::21d:9ff:fe67:6e2f/64 Scope:Link
> UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
> RX packets:9010367 errors:0 dropped:351 overruns:0 frame:0
> TX packets:9345521 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:2485631020 (2370.4 Mb) TX bytes:7318232294 (6979.2 Mb)
>
> Is it possible to get 64-bit counters in ip via netlink? Struct
> rtnl_link_stats does not look very optimistic, as it has rx_bytes/tx_bytes
> defined with __u32.
>
> Best regards,
>
> Krzysztof Olędzki
The problem is the kernel binary API is now hard coded to 32 bit values.
--
Stephen Hemminger <stephen.hemminger@vyatta.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-02-13 20:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-13 20:20 64bit counters: iproute(netlink) vs ifconfig Krzysztof Oledzki
2008-02-13 20:35 ` Stephen Hemminger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).