procfs
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的更多相关文章
- 3.10.17 procfs示例
/* * wesley * the linux module sample of procfs * * wesley for testing * 2013-12-23 ...
- Non Lasting Storage File System、procfs、sysfs
catalog . 引言 . proc文件系统 . 简单的文件系统 . sysfs 0. 引言 传统上,文件系统用于在块设备上持久存储数据,但也可以使用文件系统来组织.提供.交换并不存储在块设备上的信 ...
- (转)Linux 文件系统:procfs, sysfs, debugfs 用法简介
网址:http://www.tinylab.org/show-the-usage-of-procfs-sysfs-debugfs/ 1 前言 内核中有三个常用的伪文件系统:procfs,debugfs ...
- Linux procfs详解
1.0 proc文件系统总览在类Unix系统中体现了一种良好的抽象哲学,就是几乎所有的数据实体都被抽象成一个统一的接口--文件来看待,这样我们就可以用一些简单的基本工具完成大量复杂的操作.在Linux ...
- linux内核debug的一种方式:procfs
#include <linux/module.h> #include <linux/compat.h> #include <linux/types.h> #incl ...
- procfs、debugfs
procfs 是进程文件系统(file system) 的缩写,包含一个伪文件系统,用于通过内核访问进程信息 这个文件系统通常被挂载到 /proc 目录.由于 /proc 不是一个真正的文件系统,它也 ...
- Linux proc filesystem (procfs)
参考:/proc /proc简介 本文着重关注/proc目录,查看其中文件并熟悉它. /proc目录存在于所有Linux系统上,无论什么发行版或体系结构.首先,必须澄清一个误解: 就文件系统这一术语而 ...
- Linux驱动开发3——devfs udev procfs sysfs debugfs傻傻地分不清楚
Linux调试文件系统 1.1.procfs 早期的Linux内核中,内核通过procfs输出调试信息,可以在用户态通过读写procfs节点与内核进行交互,用来获取处理器.内存.设备驱动.进程等各种信 ...
- Proc-fs 编程
一.简介 Proc文件系统是Linux系统上的一种伪文件系统(也即虚拟文件系统),存储的是当前内核运行状态的一系列特殊文件,用户可以通过这些文件查看有关系统硬件及当前正在运行进程的信息,甚至可以通过更 ...
随机推荐
- PLSQL_性能优化系列17_Oracle Merge Into和Update更新效率
2015-05-21 Created By BaoXinjian 一.摘要 以前只考虑 merge into 只是在特定场合下方便才使用的,今天才发现,merge into 竟然会比 update 在 ...
- 【JavaScript】字符串处理函数集合
var $string = {}, toString, template, parseURL, buildURL, mapQuery, test, contains, trim, clean, cam ...
- JAVA 界面 - 记事本
代码: import java.awt.*; import javax.swing.*; import java.awt.event.*; public class Jiemian10 extends ...
- viewpage的使用
http://blog.csdn.net/loongggdroid/article/details/19970523
- java反射生成ORM
package com.wzh.jdbc; import java.lang.reflect.Field;import java.sql.Connection;import java.sql.Prep ...
- ruby中将数组转换成hash
class Arraydef to_h(default=nil)Hash[ *inject([]) { |a, value| a.push value, default || yield(value) ...
- DSS 搭建手机流媒体服务器
最近研究了一下手机流媒体服务器的搭建,目的是实现通过3G手机看在线视频. 开始的时候研究了一下 Tudou手机版 ,可它哪并没有实现在线播放,因为视频地址是 http 协议的.参看了许多文章,终于了解 ...
- [ActionScript 3.0] Away3D 天空盒(skybox)例子
/* SkyBox example in Away3d Demonstrates: How to use a CubeTexture to create a SkyBox object. How to ...
- flask test_client设置cookies
class TestCase(unittest.TestCase): session = None def setUp(self): self.app = create_app() self.app. ...
- Android——主流分辨率
VGA:480*640 QVGA:240*320 HVGA:320*480 WVGA:480*800 FWVGA:480*854 IntelHaxm.exe 模拟器加速器