diff options
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/filesystems/proc.txt | 65 |
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: | |||
171 | This shows you nearly the same information you would get if you viewed it with | 171 | This shows you nearly the same information you would get if you viewed it with |
172 | the ps command. In fact, ps uses the proc file system to obtain its | 172 | the ps command. In fact, ps uses the proc file system to obtain its |
173 | information. The statm file contains more detailed information about the | 173 | information. The statm file contains more detailed information about the |
174 | process memory usage. Its seven fields are explained in Table 1-2. | 174 | process memory usage. Its seven fields are explained in Table 1-2. The stat |
175 | file contains details information about the process itself. Its fields are | ||
176 | explained in Table 1-3. | ||
175 | 177 | ||
176 | 178 | ||
177 | Table 1-2: Contents of the statm files (as of 2.6.8-rc3) | 179 | Table 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 | |||
194 | Table 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 | |||
191 | 1.2 Kernel data | 242 | 1.2 Kernel data |
192 | --------------- | 243 | --------------- |
193 | 244 | ||
194 | Similar to the process entries, the kernel data files give information about | 245 | Similar to the process entries, the kernel data files give information about |
195 | the running kernel. The files used to obtain this information are contained in | 246 | the 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 |
197 | system. It depends on the kernel configuration and the loaded modules, which | 248 | system. It depends on the kernel configuration and the loaded modules, which |
198 | files are there, and which are missing. | 249 | files are there, and which are missing. |
199 | 250 | ||
200 | Table 1-3: Kernel info in /proc | 251 | Table 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 | ||
474 | More detailed information can be found in the controller specific | 525 | More detailed information can be found in the controller specific |
475 | subdirectories. These are named ide0, ide1 and so on. Each of these | 526 | subdirectories. These are named ide0, ide1 and so on. Each of these |
476 | directories contains the files shown in table 1-4. | 527 | directories contains the files shown in table 1-5. |
477 | 528 | ||
478 | 529 | ||
479 | Table 1-4: IDE controller info in /proc/ide/ide? | 530 | Table 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 | ||
488 | Each device connected to a controller has a separate subdirectory in the | 539 | Each device connected to a controller has a separate subdirectory in the |
489 | controllers directory. The files listed in table 1-5 are contained in these | 540 | controllers directory. The files listed in table 1-6 are contained in these |
490 | directories. | 541 | directories. |
491 | 542 | ||
492 | 543 | ||
493 | Table 1-5: IDE device information | 544 | Table 1-6: IDE device information |
494 | .............................................................................. | 545 | .............................................................................. |
495 | File Content | 546 | File Content |
496 | cache The cache | 547 | cache The cache |