Bug 1414765

Summary: ifconfig inaccurately rounds exabytes
Product: [Fedora] Fedora Reporter: Petr Sklenar <psklenar>
Component: net-toolsAssignee: Michal Ruprich <mruprich>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jpopelka, mruprich, zdohnal
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-24 11:57:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petr Sklenar 2017-01-19 11:55:29 UTC
Description of problem:
Do over 0.8 EiB of traffic over an interface and see packet flow

Version-Release number of selected component (if applicable):
net-tools-2.0-0.38.20160329git.fc25.x86_64

How reproducible:
always

Steps to Reproduce:
1.  Do over 0.8 EiB of traffic over an interface

Actual results:
test is comparing this data:


===========
============
:: [   PASS   ] :: 1.0 PiB (Assert: expected 0, got 0)
ens3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1400
        inet 172.16.36.127  netmask 255.255.255.0  broadcast 172.16.36.255
        ether fa:16:3e:03:e9:79  txqueuelen 1000  (Ethernet)

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        loop  txqueuelen 1  (Local Loopback)
        RX packets 690  bytes 1125899906842625 (1.0 PiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

===========
============
:: [   FAIL   ] :: 1.8 EiB (Assert: expected 0, got 1)
ens3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1400
        inet 172.16.36.127  netmask 255.255.255.0  broadcast 172.16.36.255
        ether fa:16:3e:03:e9:79  txqueuelen 1000  (Ethernet)

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        loop  txqueuelen 1  (Local Loopback)
        RX packets 690  bytes 2154408931384050514 (1913.4 PiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

===========
============
:: [   FAIL   ] :: 8.0 EiB (Assert: expected 0, got 1)
ens3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1400
        inet 172.16.36.127  netmask 255.255.255.0  broadcast 172.16.36.255
        ether fa:16:3e:03:e9:79  txqueuelen 1000  (Ethernet)

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        loop  txqueuelen 1  (Local Loopback)
        RX packets 690  bytes 9223372036854775807 (8192.0 PiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

===========
============
:: [   FAIL   ] :: 16.0 EiB (Assert: expected 0, got 1)
ens3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1400
        inet 172.16.36.127  netmask 255.255.255.0  broadcast 172.16.36.255
        ether fa:16:3e:03:e9:79  txqueuelen 1000  (Ethernet)

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        loop  txqueuelen 1  (Local Loopback)
        RX packets 690  bytes 18446744073709551615 (16384.0 PiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

===========




Expected results:

2154408931384050514:1.8 EiB
9223372036854775807:8.0 EiB
9999999999999999999999999999992154408931384050514:16.0 EiB

Additional info: