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. python3读取文件

    #coding:utf-8 rfile = open('test.txt','r') str=[] for x in rfile: str = x.split(',') for x in str: p ...

  2. Objective-C中nil与release的区别与用法

    首先说一下他们两的作用,nil就是把一个对象的指针置为空,只是切断了指针与内存中对象的联系,它对内存的释放没有什么作用:而release才是真正用于内存释放的,release后系统会将该块内存标记为可 ...

  3. C语言sizeof

    一.关于sizeof 1.它是C的关键字.是一个运算符,不是函数: 2.一般用法为sizeof 变量或sizeof(数据类型):后边这种写法会让人误认为是函数,但这种写法是为了防止和C中类型修饰符(s ...

  4. 【转】H264编码原理以及I帧B帧P帧

    前言 H264是新一代的编码标准,以高压缩高质量和支持多种网络的流媒体传输著称,在编码方面,我理解的他的理论依据是:参照一段时间内图像的统计结果表明,在相邻几幅图像画面中,一般有差别的像素只有10%以 ...

  5. unsigned char 转字符串:

    通常送显示的都是字符串,对于int long float转字符串有对应的函数,还有sprintf进行格式输出,对于嵌入式和单片机大多都用unsigned char型变量,转字符串需要自己编写函数,需要 ...

  6. 树莓派用USB蓝牙适配器连接蓝牙设备

    下面分享如何配置蓝牙设备.1.连接蓝牙适配到Rpi板子usb上,安装相关蓝牙服务器和驱动 lsusb 查看设备是不是被发现 pi @RaspberryPi ~ $ lsusb Bus 001 Devi ...

  7. 学习git遇到的一些简单错误

    From:http://stackoverflow.com/questions/7574459/prompted-for-password-on-git-pull-origin-branch [roo ...

  8. mac下Android开发环境搭建

    之前一段时间在学习ios的开发,近一段时间想着也接触下Android开发,以来加深对移动端开发的理解.这里根据自己配置Android开发环境的过程,比较详细的来总结下自己的安装过程,希望对一些正准备配 ...

  9. [ActionScript 3.0] AS3 访问舞台上元件的方法

    文档类: package { import flash.display.MovieClip; public class Main extends MovieClip { public function ...

  10. [ActionScript 3.0] AS3 获取函数参数个数

    function createFunction(param1:String,param2:String,param3:int=0):void { trace(arguments.length);//a ...