https://www.kernel.org/doc/Documentation/filesystems/proc.txt

/proc/stat
cpu  493610 1050 955506 6140203935 227807 123 11036 0 0 0
cpu0 268666 64 334886 766935020 173591 1 398 0 0 0
cpu1 24279 70 87536 767591499 2804 0 329 0 0 0
cpu2 33643 371 94465 767576953 30516 19 1826 0 0 0
cpu3 35103 290 96698 767576504 2218 14 1323 0 0 0
cpu4 33836 45 97270 767592684 7115 29 2499 0 0 0
cpu5 37121 71 79464 767637237 3542 15 1788 0 0 0
cpu6 34686 62 80201 767680609 4734 35 1927 0 0 0
cpu7 26274 73 84983 767613424 3283 7 943 0 0 0
intr .......
ctxt 704806375
btime 1445592652
processes 67671
procs_running 1
procs_blocked 0
softirq 495681725 11 161892896 3202428 164102325 1327096 0 8948996 145284138 416950 10506885

cpu

  • user: normal processes executing in user mode
  • nice: niced processes executing in user mode
  • system: processes executing in kernel mode
  • idle: twiddling thumbs
  • iowait: waiting for I/O to complete
  • irq: servicing interrupts
  • softirq: servicing softirqs
  • steal: involuntary wait
  • guest: running a normal guest
  • guest_nice: running a niced guest
/proc/net/tcp
sl  local_address rem_address   st tx_queue rx_queue tr tm->when retrnsmt   uid  timeout inode
0: 00000000:006F 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0 0 13811 1 ffff880226d36d40 299 0 0 2 -1
1: 00000000:0050 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0 0 1729006482 1 ffff880111027640 299 0 0 2 -1
2: 00000000:0035 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0 0 14961 1 ffff8802282de0c0 299 0 0 2 -1
3: 00000000:0016 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0 0 111764978 1 ffff880237e1f1c0 299 0 0 2 -1
4: 0100007F:0019 00000000:0000 0A 00000000:00000000 00:00000000 00000000 0 0 15277 1 ffff8804296d3500 299 0 0 2 -1
5: 00000000:1622 00000000:0000 0A 00000000:00000000 00:00000000 00000000 497 0 2936653873 1 ffff880261576e00 299 0 0 2 -1
6: E20A140A:63CD A2751DDA:0050 01 00000000:00000000 00:00000000 00000000 0 0 2864810710 1 ffff880001856980 371 4 8 10 7
7: E20A140A:6687 A2751DDA:0050 01 000000BC:00000000 01:00000083 00000000 0 0 2864841200 2 ffff880261435900 131 0 0 10 7
8: E20A140A:F722 A2751DDA:0050 08 00000000:00000001 00:00000000 00000000 0 0 2839562255 1 ffff8804296d2180 23 3 0 10 7
0: 00000000:006F 00000000:0000 0A
* number of entry
* local IPv4 address
* local TCP port number
* remote IPv4 address
* remote TCP port number
* connection state 00000000:00000000 00:00000000 00000000
* transmit-queue
* receive-queue
* timer_active (see below)
* number of jiffies until timer expires
* number of unrecovered RTO timeouts 0 0 13811 1 ffff880226d36d40 299 0 0 2 -1
* uid
* unanswered 0-window probes
* inode
* socket reference count
* location of socket in memory
* retransmit timeout
* (delayed ACK control data)
* Predicted tick of soft clock
* (ack.quick<<1)|ack.pingpong
* sending congestion window
* is >= 0xFFFF
* or -1 if the treshold
* slow start size threshold
/proc/net/udp
  sl  local_address rem_address   st tx_queue rx_queue tr tm->when retrnsmt   uid  timeout inode ref pointer drops
9: 00000000:1F94 00000000:0000 07 00000000:00000000 00:00000000 00000000 99 0 1569496407 2 ffff8802264aeb00 0
40: 00000000:0333 00000000:0000 07 00000000:00000000 00:00000000 00000000 0 0 13810 2 ffff8802264af800 0
42: 00000000:0035 00000000:0000 07 00000000:00000000 00:00000000 00000000 0 0 14960 2 ffff88022830dbc0 0
100: 00000000:006F 00000000:0000 07 00000000:00000000 00:00000000 00000000 0 0 13806 2 ffff8802264afb40 0
00  "ERROR_STATUS",
01 "ESTABLISHED",
02 "SYN_SENT",
03 "SYN_RECV",
04 "FIN_WAIT1",
05 "FIN_WAIT2",
06 "TIME_WAIT",
07 "CLOSE",
08 "CLOSE_WAIT",
09 "LAST_ACK",
0A "LISTEN",
0B "CLOSING",

procfs的更多相关文章

  1. 3.10.17 procfs示例

    /* *    wesley *    the linux module sample of procfs *     *    wesley for testing *    2013-12-23 ...

  2. Non Lasting Storage File System、procfs、sysfs

    catalog . 引言 . proc文件系统 . 简单的文件系统 . sysfs 0. 引言 传统上,文件系统用于在块设备上持久存储数据,但也可以使用文件系统来组织.提供.交换并不存储在块设备上的信 ...

  3. (转)Linux 文件系统:procfs, sysfs, debugfs 用法简介

    网址:http://www.tinylab.org/show-the-usage-of-procfs-sysfs-debugfs/ 1 前言 内核中有三个常用的伪文件系统:procfs,debugfs ...

  4. Linux procfs详解

    1.0 proc文件系统总览在类Unix系统中体现了一种良好的抽象哲学,就是几乎所有的数据实体都被抽象成一个统一的接口--文件来看待,这样我们就可以用一些简单的基本工具完成大量复杂的操作.在Linux ...

  5. linux内核debug的一种方式:procfs

    #include <linux/module.h> #include <linux/compat.h> #include <linux/types.h> #incl ...

  6. procfs、debugfs

    procfs 是进程文件系统(file system) 的缩写,包含一个伪文件系统,用于通过内核访问进程信息 这个文件系统通常被挂载到 /proc 目录.由于 /proc 不是一个真正的文件系统,它也 ...

  7. Linux proc filesystem (procfs)

    参考:/proc /proc简介 本文着重关注/proc目录,查看其中文件并熟悉它. /proc目录存在于所有Linux系统上,无论什么发行版或体系结构.首先,必须澄清一个误解: 就文件系统这一术语而 ...

  8. Linux驱动开发3——devfs udev procfs sysfs debugfs傻傻地分不清楚

    Linux调试文件系统 1.1.procfs 早期的Linux内核中,内核通过procfs输出调试信息,可以在用户态通过读写procfs节点与内核进行交互,用来获取处理器.内存.设备驱动.进程等各种信 ...

  9. Proc-fs 编程

    一.简介 Proc文件系统是Linux系统上的一种伪文件系统(也即虚拟文件系统),存储的是当前内核运行状态的一系列特殊文件,用户可以通过这些文件查看有关系统硬件及当前正在运行进程的信息,甚至可以通过更 ...

随机推荐

  1. c# 甘蔗斗地主1.4存档修改器

           using System; using System.Collections.Generic; using System.ComponentModel; using System.Dat ...

  2. C/C++代码静态分析插件 SourceInsight_Scan

    sourceinsight-scan 是一款集成在 SourceInsight 中的c/c++代码静态分析插件,集成了cppcheck,coverity,pclint等业界优秀的静态分析工具的优点. ...

  3. UCOS-信号量(学习笔记)

    当事件控制块类型为OS_Event_Type_SEM类型时就是信号量,包含2个内容:信号量计数器OSEventcnt和等待列表OSEventTbl[]. 一创建信号量:OSSemCreat(int16 ...

  4. ylbtech-Unitity-cs:传递的字符串中数字字符的数目

    ylbtech-Unitity-cs:传递的字符串中数字字符的数目 1.A,效果图返回顶部   1.B,源代码返回顶部 1.B.1, using System; namespace Functions ...

  5. 20145305 《Java程序设计》第4周学习总结

    教材学习内容总结 1.子类只能继承一个父类 2.检查多态语法逻辑是否正确,方式是从=号右边往左读:右边是不是一种左边(右边类型是不是左边类型的一种子类) 3.可以使用abstract标示该方法为抽象方 ...

  6. Memcached常用命令及使用说明(转)

    一.存储命令 存储命令的格式: 1 2 <command name> <key> <flags> <exptime> <bytes> < ...

  7. SGU 194 【带上下界的无源汇的可行流】

    题意: 给点数n和边数m. 接下来m条有向边. a b c d 一次代表起点终点,下界上界. 求: 判断是否存在可行流,若存在则输出某可行流.否则输出IMPOSSIBLE 思路: <一种简易的方 ...

  8. POJ 2823【单调队列】

    题意: 给出序列,找出每个连续长度为k的子序列的最大值和最小值. 思路: 裸单调队列... 单调队列这东西用的真的非常局限,大概只能用到这种情景中== 简单说一下维护: 添加元素,为了保持单调性,排除 ...

  9. [HDU 4585] Shaolin (map应用)

    题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4585 题目大意:不停的插入数字,问你跟他相距近的ID号.如果有两个距离相近的话选择小的那个. 用map ...

  10. Asp.net树形递归算法

    using System;using System.Collections;using System.Configuration;using System.Data;using System.Linq ...