linux – / proc / net / udp中字段的含义

前端之家收集整理的这篇文章主要介绍了linux – / proc / net / udp中字段的含义前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我想了解/ proc / net / udp和/ proc / net / snmp中每个字段的含义:
# cat /proc/net/udp
 sl  local_address rem_address   st tx_queue rx_queue tr tm->when retrnsmt   uid  timeout inode ref pointer drops
  4: 00000000:006F 00000000:0000 07 00000000:00000000 00:00000000 00000000     0        0 10777 2 ffff88023bbd3a80 0
110: 00000000:4959 00000000:0000 07 00000000:00000000 00:00000000 00000000     0        0 10975 2 ffff88023bbd30c0 0
122: 00000000:0265 00000000:0000 07 00000000:00000000 00:00000000 00000000     0        0 10781 2 ffff88023bbd3400 0

# cat /proc/net/snmp
Udp: InDatagrams NoPorts InErrors OutDatagrams RcvbufErrors SndbufErrors
Udp: 768010194 3069028933 1052487950 17032 68916498 0

解决方法

的/ proc /净/ UDP

保存UDP套接字表的转储.很多信息都没有
使用除了调试. “sl”值是内核哈希槽
对于套接字,“local_address”是本地地址和端口
数字对. “rem_address”是远程地址和端口号
对(如果连接). “St”是套接字的内部状态.该
“tx_queue”和“rx_queue”是传入和传入的数据队列
内核内存使用条款. “tr”,“tm-> when”和“rexmits”
UDP不使用这些字段. “uid”字段保存有效的UID
套接字的创建者.

另见https://stackoverflow.com/a/18322579/449347

的/ proc /网/ SNMP

文件包含SNMP代理的IP,ICMP,TCP和UDP管理信息库所需的ASCII数据.

http://linux.die.net/man/5/proc开始

原文链接:https://www.f2er.com/linux/394977.html

猜你在找的Linux相关文章