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. 单元测试(junit使用)

    1.测试的对象是一个类中的方法. 2.导入jar包. 3.单元测试方法时候,测试方法命名规则为 public void 方法名(){},注意:测试类不能命名为public class Test{},T ...

  2. 最大期望算法 Expectation Maximization概念

    在统计计算中,最大期望(EM,Expectation–Maximization)算法是在概率(probabilistic)模型中寻找参数最大似然估计的算法,其中概率模型依赖于无法观测的隐藏变量(Lat ...

  3. MST_kruskal

    kruskal是求最小生成树的算法. 首先,kruskal就是把所有边按照权值从小到大的顺序排列,这一步可以直接使用sort,然后依次考查每一条边,设w=(u,v)表示从u到v的一条边的权值为w,则有 ...

  4. 加密---公钥&密钥

    一直以来对公钥和私钥都理解得不是很透彻,感觉到模棱两可.今天在网上找了半天,通过查看对这个密钥对的理解,总算弄清楚了.      公钥和私钥就是俗称的不对称加密方式,是从以前的对称加密(使用用户名与密 ...

  5. MyBatis返回主键

    网上给的例子都很简单 , 只要用useGeneratedKey就行了. @Insert({ "INSERT INTO money_record_increasement (id, creat ...

  6. java的枚举

    package com.wzh.test.enum0; import org.junit.Test; public class demo1 { @Test public void testAb(){ ...

  7. Mybatis where 1=1 和 <where>标签

    <select id="selSampleListByIDX4" resultMap="BaseResultMap" parameterType=&quo ...

  8. 服务器安装MongoDB

    1.下载MongoDB安装包,如:mongodb-win32-i386-1.8.1.zip: 2.新建目录“D:\MongoDB”,将安装中的bin目录下全部.exe文件复制到“D:\MongoDB” ...

  9. .NET 添加/删除Cookie

    public class CookieHelper { /// <summary> /// 清除指定Cookie /// </summary> /// <param na ...

  10. clone代码

    例子1: