Difference between revisions of "HowTo Read ProcFS"
From Linux-VServer
(migrated from old wiki HowTo+Read+ProcFS) |
(+{{Languages|HowTo Read ProcFS}}) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{Languages|HowTo Read ProcFS}} | ||
+ | |||
==Information in /proc/virtual== | ==Information in /proc/virtual== | ||
/proc/virtual | /proc/virtual | ||
Line 51: | Line 53: | ||
====/proc/virtual/<xid>/cvirt ==== | ====/proc/virtual/<xid>/cvirt ==== | ||
− | BiasUptime: | + | BiasUptime: 16.87 |
− | + | nr_threads: 119 | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | nr_threads: | + | |
nr_running: 0 | nr_running: 0 | ||
nr_unintr: 0 | nr_unintr: 0 | ||
nr_onhold: 0 | nr_onhold: 0 | ||
− | load_updates: | + | load_updates: 383736593 |
− | loadavg: 0.00 0. | + | loadavg: 0.00 0.02 0.02 |
− | total_forks: | + | total_forks: 3763748 |
+ | |||
+ | this contains the uptime bias, the number of threads, thread stats (running, uninterruptible, on hold), the number of load updates, the load averages (1,5,15) and the number of forks | ||
+ | |||
+ | ==== /proc/virtual/<xid>/nsproxy ==== | ||
+ | NSProxy: f7d7a4f0 [f7c91280,f783e200,f7824dc0] | ||
+ | Namespace: f7c91280 [#3] | ||
+ | RootPath: / | ||
+ | SysName: Linux | ||
+ | NodeName: XXXX.test.org | ||
+ | Release: 2.6.26-1-vserver-686 | ||
+ | Version: #1 SMP Sat Jan 10 21:26:14 UTC 2009 | ||
+ | Machine: i686 | ||
+ | DomainName: (none) | ||
+ | SEMS: 250 32000 32 128 123 | ||
+ | MSG: 8192 16384 145 | ||
+ | SHM: 33554432 2097152 4096 2556 | ||
+ | |||
+ | This contains the utsname settings (sys, node, rel, vers, machine, domain) | ||
− | |||
==== /proc/virtual/<xid>/limit ==== | ==== /proc/virtual/<xid>/limit ==== | ||
Line 117: | Line 130: | ||
===/proc/sys/vserver/debug_nid=== | ===/proc/sys/vserver/debug_nid=== | ||
===/proc/sys/vserver/debug_net=== | ===/proc/sys/vserver/debug_net=== | ||
+ | |||
+ | [[Category:ProcFS]] |
Latest revision as of 22:48, 21 October 2011
Contents |
[edit] Information in /proc/virtual
/proc/virtual .../info /proc/virtual/<pid> .../info .../status .../sched .../cvirt .../cacct .../limit
[edit] /proc/virtual/info
[edit] /proc/virtual/<xid>
This directory contains several files which can provide valuable information on the current context state and settings.
[edit] /proc/virtual/<xid>/info
ID: 1001 Info: 83c37000 Init: 0
this shows the context id, vx_info location and init pid
[edit] /proc/virtual/<xid>/status
UseCnt: 38 Tasks: 16 Flags: 0000000000000000 BCaps: 00000000d46c04ff CCaps: 0000000000000000 Ticks: 0
this contains the usage count (references) and task count, as well as the context flags, capability boundary and context capabilities
[edit] /proc/virtual/<xid>/sched
Token: 0 FillRate: 1 Interval: 4 TokensMin: 6 TokensMax: 50 PrioBias: 0 VaVaVoom: 0 cpu 0: 0 0 0
shows the current amount of tokens, scheduler parameters (fill rate, interval, min/max), the priority bias and the calculated vavavoom (priority bonus)
[edit] /proc/virtual/<xid>/cacct
UNSPEC: 0/0 0/0 0/0 UNIX: 35/2375 35/2375 0/0 INET: 12/531 56/1937 57/1705 INET6: 0/0 0/0 0/0 OTHER: 0/0 0/0 0/0 forks: 0
this accounts socket messages for the listed protocols, as incoming messages/bytes and outgoing messages/bytes
[edit] /proc/virtual/<xid>/cvirt
BiasUptime: 16.87 nr_threads: 119 nr_running: 0 nr_unintr: 0 nr_onhold: 0 load_updates: 383736593 loadavg: 0.00 0.02 0.02 total_forks: 3763748
this contains the uptime bias, the number of threads, thread stats (running, uninterruptible, on hold), the number of load updates, the load averages (1,5,15) and the number of forks
[edit] /proc/virtual/<xid>/nsproxy
NSProxy: f7d7a4f0 [f7c91280,f783e200,f7824dc0] Namespace: f7c91280 [#3] RootPath: / SysName: Linux NodeName: XXXX.test.org Release: 2.6.26-1-vserver-686 Version: #1 SMP Sat Jan 10 21:26:14 UTC 2009 Machine: i686 DomainName: (none) SEMS: 250 32000 32 128 123 MSG: 8192 16384 145 SHM: 33554432 2097152 4096 2556
This contains the utsname settings (sys, node, rel, vers, machine, domain)
[edit] /proc/virtual/<xid>/limit
PROC: 16 17 -1 0 VM: 14440 15331 -1 0 VML: 0 0 -1 0 RSS: 5478 5847 -1 0 ANON: 1516 1516 -1 0 FILES: 140 155 -1 0 OFD: 122 122 -1 0 LOCKS: 1 3 -1 0 SOCK: 9 9 -1 0 MSGQ: 0 0 -1 0 SHM: 0 0 -1 0
limit columns are:
- current
- max observed
- limit
- number of hits
limit rows are:
- processes,
- virtual memory,
- locked memory,
- resident set size,
- anonymous memory,
- number of files,
- filedescriptors,
- locks,
- sockets,
- message queues,
- shared memory
[edit] Debug settings in /proc/sys/vserver
/proc/sys/vserver .../debug_switch .../debug_xid .../debug_cvirt .../debug_limit .../debug_dlim .../debug_nid .../debug_net