AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 898959
Accepted
dorian
dorian
Asked: 2018-02-27 09:29:59 +0800 CST2018-02-27 09:29:59 +0800 CST 2018-02-27 09:29:59 +0800 CST

iproute2 接口统计信息似乎错误

  • 772

出于某种原因,ip -s link不显示与 相同的数字/proc/net/dev,特别是溢出计数。

对于给定的接口,ip 显示没有溢出数据包:

$ ip -s link show eth-ext1
7: eth-ext1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
    link/ether 00:08:a2:0d:00:74 brd ff:ff:ff:ff:ff:ff
    RX: bytes  packets  errors  dropped overrun mcast   
    1038103044434 1099087192 0       0       0       401298  
    TX: bytes  packets  errors  dropped carrier collsns 
    543051882227 844808055 0       0       0       0       

虽然proc我们看到非零溢出(这是我假设fifo所指的):

$ cat /proc/net/dev
Inter-|   Receive                                                |  Transmit
face |bytes    packets errs drop fifo frame compressed multicast|bytes    packets errs drop fifo colls carrier compressed
[...]
eth-ext1: 1038106099296 1099090833    0    0 467554     0          0    401301 543052535442 844810749    0    0    0     0       0          0

我倾向于相信接口上实际上有溢出的数据包,所以看起来输出ip link不正确。有什么我想念的吗?

linux
  • 1 1 个回答
  • 2651 Views

1 个回答

  • Voted
  1. Best Answer
    Валерий Заподовников
    2018-10-10T22:53:34+08:002018-10-10T22:53:34+08:00

    fifo 和 overrun 是不一样的。只需输入 ip -s -sa,就会有这样的东西

    RX: bytes  packets  errors  dropped overrun mcast
    53152      864      0       0       0       0
    RX errors: length   crc     frame   fifo    missed
               0        0       0       0       0
    TX: bytes  packets  errors  dropped carrier collsns
    53152      864      0       0       0       0
    TX errors: aborted  fifo   window heartbeat transns
               0        0       0       0       0
    

    overrun — 导致丢包的接收器溢出总数。通常,如果接口溢出,则意味着内核中存在严重问题,或者您的机器对于该接口来说太慢了。

    fifo(文件输入文件输出)错误

    • 3

相关问题

  • Linux 主机到主机迁移

  • 如何在 Linux 机器上找到有关硬件的详细信息?

  • 如何在 Linux 下监控每个进程的网络 I/O 使用情况?

  • 在 RHEL4 上修改 CUPS 中的现有打印机设置

  • 为本地网络中的名称解析添加自定义 dns 条目

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve