← Back to team overview

kernel-packages team mailing list archive

[Bug 1292509] Re: Missing statistics for `tx_bytes`, `tx_packets`, `rx_bytes` and `rx_packets` since Ubuntu 13.10

 

** Also affects: linux (Arch Linux)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1292509

Title:
  Missing statistics for `tx_bytes`, `tx_packets`, `rx_bytes` and
  `rx_packets` since Ubuntu 13.10

Status in “linux” package in Ubuntu:
  Confirmed
Status in “linux” package in Arch Linux:
  New
Status in “linux” package in Fedora:
  New

Bug description:
  I am using Ubuntu 13.10 and have an Ethernet connection to connect to
  the Internet.

  If I set my ISP username and password in router-cum-modem (ADSL)
  itself (i.e.; I get connected to internet automatically by just
  powering on my router); I don't get the information about `tx_bytes`,
  `tx_packets`, `rx_bytes` and `rx_packets` anymore.

  If I don't put the username and password in router; and instead use
  `sudo pppoeconf` to configure my connection by providing my ISP
  username and password;  I get the information about `tx_bytes`,
  `tx_packets`, `rx_bytes` and `rx_packets` as expected.

  It is probably because of this bug, that Gnome System Monitor doesn't
  update Network History as reported earlier:
  https://bugs.launchpad.net/ubuntu/+source/gnome-system-
  monitor/+bug/1241894

  
  ===================================================================================

  I have run the following commands on Ubuntu 13.10 installed on my
  system as per the answers given to this question:
  http://serverfault.com/questions/533513/how-to-get-tx-rx-bytes-
  without-ifconfig

      $ uname -a
      Linux aditya-desktop 3.11.0-18-generic #32-Ubuntu SMP Tue Feb 18 21:13:28 UTC 2014 i686 athlon i686 GNU/Linux

      $ ifconfig
      eth0      Link encap:Ethernet  HWaddr 94:de:80:34:47:7b  
                inet addr:192.168.1.8  Bcast:192.168.1.255  Mask:255.255.255.0
                inet6 addr: fe80::96de:80ff:fe34:477b/64 Scope:Link
                UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
                RX packets:0 errors:0 dropped:0 overruns:0 frame:0
                TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
                collisions:0 txqueuelen:1000 
                RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
                Interrupt:18 

      lo        Link encap:Local Loopback  
                inet addr:127.0.0.1  Mask:255.0.0.0
                inet6 addr: ::1/128 Scope:Host
                UP LOOPBACK RUNNING  MTU:65536  Metric:1
                RX packets:49 errors:0 dropped:0 overruns:0 frame:0
                TX packets:49 errors:0 dropped:0 overruns:0 carrier:0
                collisions:0 txqueuelen:0 
                RX bytes:4819 (4.8 KB)  TX bytes:4819 (4.8 KB)

      $ route -n
      Kernel IP routing table
      Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
      0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth0
      192.168.1.0     0.0.0.0         255.255.255.0   U     1      0        0 eth0

      $ cat /proc/net/dev
      Inter-|   Receive                                                |  Transmit
       face |bytes    packets errs drop fifo frame compressed multicast|bytes    packets errs drop fifo colls carrier compressed
          lo:  190070    1601    0    0    0     0          0         0   190070    1601    0    0    0     0       0          0
        eth0:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0

      $ netstat -i
      Kernel Interface table
      Iface   MTU Met   RX-OK RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR TX-DRP TX-OVR Flg
      eth0       1500 0         0      0      0 0             0      0      0      0 BMRU
      lo        65536 0      1601      0      0 0          1601      0      0      0 LRU

      $ ip -s link
      1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT 
          link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
          RX: bytes  packets  errors  dropped overrun mcast   
          190070     1601     0       0       0       0      
          TX: bytes  packets  errors  dropped carrier collsns 
          190070     1601     0       0       0       0      
      2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT qlen 1000
          link/ether 94:de:80:34:47:7b brd ff:ff:ff:ff:ff:ff
          RX: bytes  packets  errors  dropped overrun mcast   
          0          0        0       0       0       0      
          TX: bytes  packets  errors  dropped carrier collsns 
          0          0        0       0       0       0      

      $ cat /sys/class/net/eth0/statistics/rx_bytes
      0

      $ cat /sys/class/net/eth0/statistics/rx_packets
      0

      $ cat /sys/class/net/eth0/statistics/tx_bytes
      0

      $ cat /sys/class/net/eth0/statistics/tx_packets
      0

  
  ===================================================================================

  It is working upto Ubuntu 12.04.3 and Ubuntu 13.04. I have run the
  following commands in Ubuntu 12.04.3 Live environment, which reports
  those statistics:

      $ uname -a
      Linux this 3.8.0-29-generic #42~precise1-Ubuntu SMP Wed Aug 14 15:31:16 UTC 2013 i686 athlon i386 GNU/Linux

      $ ifconfig
      eth0      Link encap:Ethernet  HWaddr 94:de:80:34:47:7b  
                inet addr:192.168.1.8  Bcast:192.168.1.255  Mask:255.255.255.0
                inet6 addr: fe80::96de:80ff:fe34:477b/64 Scope:Link
                UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
                RX packets:49 errors:0 dropped:0 overruns:0 frame:0
                TX packets:109 errors:0 dropped:0 overruns:0 carrier:0
                collisions:0 txqueuelen:1000 
                RX bytes:26744 (26.7 KB)  TX bytes:14380 (14.3 KB)
                Interrupt:18 

      lo        Link encap:Local Loopback  
                inet addr:127.0.0.1  Mask:255.0.0.0
                inet6 addr: ::1/128 Scope:Host
                UP LOOPBACK RUNNING  MTU:65536  Metric:1
                RX packets:25 errors:0 dropped:0 overruns:0 frame:0
                TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
                collisions:0 txqueuelen:0 
                RX bytes:2175 (2.1 KB)  TX bytes:2175 (2.1 KB)

      $ route -n
      Kernel IP routing table
      Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
      0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth0
      169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eth0
      192.168.1.0     0.0.0.0         255.255.255.0   U     1      0        0 eth0

  
  ===================================================================================

  The bug was introduced in 13.10 and is still present in the
  development version of 14.04 as of today.

  ProblemType: Bug
  DistroRelease: Ubuntu 13.10
  Package: linux-image-3.11.0-18-generic 3.11.0-18.32
  ProcVersionSignature: Ubuntu 3.11.0-18.32-generic 3.11.10.4
  Uname: Linux 3.11.0-18-generic i686
  ApportVersion: 2.12.5-0ubuntu2.2
  Architecture: i386
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC0:  aditya     1390 F.... pulseaudio
  CurrentDmesg: [   44.202948] systemd-hostnamed[1875]: Warning: nss-myhostname is not installed. Changing the local hostname might make it unresolveable. Please install nss-myhostname!
  Date: Fri Mar 14 17:55:53 2014
  HibernationDevice: RESUME=UUID=3d3ddc24-09de-4fd8-8d48-3fb947c0fc74
  InstallationDate: Installed on 2014-03-06 (8 days ago)
  InstallationMedia: This
  IwConfig:
   lo        no wireless extensions.
   
   eth0      no wireless extensions.
  MachineType: Gigabyte Technology Co., Ltd. GA-78LMT-S2PT
  MarkForUpload: True
  ProcFB: 0 radeondrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.11.0-18-generic root=UUID=b36eb8ca-34bb-41af-8b4f-c9514488396f ro quiet splash vt.handoff=7
  RelatedPackageVersions:
   linux-restricted-modules-3.11.0-18-generic N/A
   linux-backports-modules-3.11.0-18-generic  N/A
   linux-firmware                             1.116.2
  RfKill:
   0: hci0: Bluetooth
   	Soft blocked: yes
   	Hard blocked: no
  SourcePackage: linux
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 11/05/2012
  dmi.bios.vendor: Award Software International, Inc.
  dmi.bios.version: FC
  dmi.board.name: GA-78LMT-S2PT
  dmi.board.vendor: Gigabyte Technology Co., Ltd.
  dmi.chassis.type: 3
  dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
  dmi.modalias: dmi:bvnAwardSoftwareInternational,Inc.:bvrFC:bd11/05/2012:svnGigabyteTechnologyCo.,Ltd.:pnGA-78LMT-S2PT:pvr:rvnGigabyteTechnologyCo.,Ltd.:rnGA-78LMT-S2PT:rvr:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvr:
  dmi.product.name: GA-78LMT-S2PT
  dmi.sys.vendor: Gigabyte Technology Co., Ltd.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1292509/+subscriptions


References