aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/filesystems/proc.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/filesystems/proc.txt')
-rw-r--r--Documentation/filesystems/proc.txt65
1 files changed, 58 insertions, 7 deletions
diff --git a/Documentation/filesystems/proc.txt b/Documentation/filesystems/proc.txt
index 8756a07f4dc3..460b892d089e 100644
--- a/Documentation/filesystems/proc.txt
+++ b/Documentation/filesystems/proc.txt
@@ -171,7 +171,9 @@ read the file /proc/PID/status:
171This shows you nearly the same information you would get if you viewed it with 171This shows you nearly the same information you would get if you viewed it with
172the ps command. In fact, ps uses the proc file system to obtain its 172the ps command. In fact, ps uses the proc file system to obtain its
173information. The statm file contains more detailed information about the 173information. The statm file contains more detailed information about the
174process memory usage. Its seven fields are explained in Table 1-2. 174process memory usage. Its seven fields are explained in Table 1-2. The stat
175file contains details information about the process itself. Its fields are
176explained in Table 1-3.
175 177
176 178
177Table 1-2: Contents of the statm files (as of 2.6.8-rc3) 179Table 1-2: Contents of the statm files (as of 2.6.8-rc3)
@@ -188,16 +190,65 @@ Table 1-2: Contents of the statm files (as of 2.6.8-rc3)
188 dt number of dirty pages (always 0 on 2.6) 190 dt number of dirty pages (always 0 on 2.6)
189.............................................................................. 191..............................................................................
190 192
193
194Table 1-3: Contents of the stat files (as of 2.6.22-rc3)
195..............................................................................
196 Field Content
197 pid process id
198 tcomm filename of the executable
199 state state (R is running, S is sleeping, D is sleeping in an
200 uninterruptible wait, Z is zombie, T is traced or stopped)
201 ppid process id of the parent process
202 pgrp pgrp of the process
203 sid session id
204 tty_nr tty the process uses
205 tty_pgrp pgrp of the tty
206 flags task flags
207 min_flt number of minor faults
208 cmin_flt number of minor faults with child's
209 maj_flt number of major faults
210 cmaj_flt number of major faults with child's
211 utime user mode jiffies
212 stime kernel mode jiffies
213 cutime user mode jiffies with child's
214 cstime kernel mode jiffies with child's
215 priority priority level
216 nice nice level
217 num_threads number of threads
218 start_time time the process started after system boot
219 vsize virtual memory size
220 rss resident set memory size
221 rsslim current limit in bytes on the rss
222 start_code address above which program text can run
223 end_code address below which program text can run
224 start_stack address of the start of the stack
225 esp current value of ESP
226 eip current value of EIP
227 pending bitmap of pending signals (obsolete)
228 blocked bitmap of blocked signals (obsolete)
229 sigign bitmap of ignored signals (obsolete)
230 sigcatch bitmap of catched signals (obsolete)
231 wchan address where process went to sleep
232 0 (place holder)
233 0 (place holder)
234 exit_signal signal to send to parent thread on exit
235 task_cpu which CPU the task is scheduled on
236 rt_priority realtime priority
237 policy scheduling policy (man sched_setscheduler)
238 blkio_ticks time spent waiting for block IO
239..............................................................................
240
241
1911.2 Kernel data 2421.2 Kernel data
192--------------- 243---------------
193 244
194Similar to the process entries, the kernel data files give information about 245Similar to the process entries, the kernel data files give information about
195the running kernel. The files used to obtain this information are contained in 246the running kernel. The files used to obtain this information are contained in
196/proc and are listed in Table 1-3. Not all of these will be present in your 247/proc and are listed in Table 1-4. Not all of these will be present in your
197system. It depends on the kernel configuration and the loaded modules, which 248system. It depends on the kernel configuration and the loaded modules, which
198files are there, and which are missing. 249files are there, and which are missing.
199 250
200Table 1-3: Kernel info in /proc 251Table 1-4: Kernel info in /proc
201.............................................................................. 252..............................................................................
202 File Content 253 File Content
203 apm Advanced power management info 254 apm Advanced power management info
@@ -473,10 +524,10 @@ IDE devices:
473 524
474More detailed information can be found in the controller specific 525More detailed information can be found in the controller specific
475subdirectories. These are named ide0, ide1 and so on. Each of these 526subdirectories. These are named ide0, ide1 and so on. Each of these
476directories contains the files shown in table 1-4. 527directories contains the files shown in table 1-5.
477 528
478 529
479Table 1-4: IDE controller info in /proc/ide/ide? 530Table 1-5: IDE controller info in /proc/ide/ide?
480.............................................................................. 531..............................................................................
481 File Content 532 File Content
482 channel IDE channel (0 or 1) 533 channel IDE channel (0 or 1)
@@ -486,11 +537,11 @@ Table 1-4: IDE controller info in /proc/ide/ide?
486.............................................................................. 537..............................................................................
487 538
488Each device connected to a controller has a separate subdirectory in the 539Each device connected to a controller has a separate subdirectory in the
489controllers directory. The files listed in table 1-5 are contained in these 540controllers directory. The files listed in table 1-6 are contained in these
490directories. 541directories.
491 542
492 543
493Table 1-5: IDE device information 544Table 1-6: IDE device information
494.............................................................................. 545..............................................................................
495 File Content 546 File Content
496 cache The cache 547 cache The cache