Updated with Tizen:Base source codes
[external/procps.git] / top.1
1 .ig
2 . manual page for NEW top
3 . Copyright (c) 2002, by:      JC Warner & Associates, Ltd.
4 .
5 . Permission is granted to copy, distribute and/or modify this document
6 . under the terms of the GNU Free Documentation License, Version 1.1 or
7 . any later version published by the Free Software Foundation;
8 . with no Front-Cover Texts, no Back-Cover Texts, and with the following
9 . Invariant Sections (and any sub-sections therein):
10 .   all .ig sections, including this one
11 .   STUPID TRICKS Sampler
12 .   AUTHOR
13 .
14 . A copy of the Free Documentation License is included in the section
15 . entitled "GNU Free Documentation License".
16 .
17 . [ that section is found near the end of this document & ]
18 . [ can be made printable by disabling the .ig directive! ]
19 .
20 ..
21 .\" Setup ////////////////////////////////////////////////////////////////
22 \#  ** Comment out '.nr' or set to 0 to eliminate WIDTH fiddlin' !
23 .nr half_xtra 4
24 .
25 .ll +(\n[half_xtra] + \n[half_xtra])
26 .
27 \#                      Our darn Bullet style ----------------------------
28 .de Jbu
29 .IP "-" 3
30 ..
31 \#                          - bullet continuation paragraph
32 .de Jp
33 .IP "" 3
34 ..
35 \#                      New features/differences style -------------------
36 .de New
37 .IP "-*-" 5
38 ..
39 .
40 \#                      Commonly used strings (for consistency) ----------
41 \#                          - a real em-dash, darn-it
42 .ds EM \ \fB\-\-\ \fR
43 \#                          - these two are for chuckles, makes great grammar
44 .ds Me top
45 .ds ME \fBtop\fR
46 \#                          - other misc strings for consistent usage/emphasis
47 .ds F \fIOff\fR
48 .ds O \fIOn\fR
49 .
50 .ds AM alternate\-display mode
51 .ds AS asterisk ('*')
52 .ds CF configuration file
53 .ds CI interactive command
54 .ds CO command\-line option
55 .ds CW \'current' window
56 .ds FM full\-screen mode
57 .ds MP \fBphysical\fR memory
58 .ds MS \fBshared\fR memory
59 .ds MV \fBvirtual\fR memory
60 .ds NT \fBNote\fR:
61 .ds PU CPU
62 .ds Pu cpu
63 .ds SA summary area
64 .ds TA task area
65 .ds TD task display
66 .ds TW task window
67 \#                          - xref's that depend on commands or topic names
68 .ds XC See the
69 .ds Xc see the
70 .ds XT See topic
71 .ds Xt see topic
72 .
73 .\" //////////////////////////////////////////////////////////////////////
74 .\" ----------------------------------------------------------------------
75 .TH TOP 1 "September 2002" "Linux" "Linux User's Manual"
76 .\" ----------------------------------------------------------------------
77
78
79 .\" ----------------------------------------------------------------------
80 .SH NAME
81 .\" ----------------------------------------------------------------------
82 top \- display Linux tasks
83
84
85 .\" ----------------------------------------------------------------------
86 .SH SYNOPSIS
87 .\" ----------------------------------------------------------------------
88 \*(ME \-\fBhv\fR | \-\fBbcHisS\fR \-\fBd\fI delay\fR \-\fBn\fI
89 iterations\fR \-\fBp\fI pid\fR [,\fI pid\fR ...]
90
91 The traditional switches '-' and whitespace are optional.
92
93
94 .\" ----------------------------------------------------------------------
95 .SH DESCRIPTION
96 .\" ----------------------------------------------------------------------
97 The \*(ME program provides a dynamic real-time view of a running system.
98 It can display\fB system\fR summary information as well as a list of\fB
99 tasks\fR currently being managed by the Linux kernel.
100 The types of system summary information shown and the types, order and
101 size of information displayed for tasks are all user configurable and
102 that configuration can be made persistent across restarts.
103
104 The program provides a limited interactive interface for process
105 manipulation as well as a much more extensive interface for personal
106 configuration \*(EM encompassing every aspect of its operation.
107 And while \*(ME is referred to throughout this document, you are free
108 to name the program anything you wish.
109 That new name, possibly an alias, will then be reflected on \*(Me's display
110 and used when reading and writing a \*(CF.
111
112
113 .\" ----------------------------------------------------------------------
114 .SH OVERVIEW
115 .\" ----------------------------------------------------------------------
116 .\" ......................................................................
117 .SS Documentation
118 .\" ----------------------------------------------------------------------
119 The remaining Table of Contents
120     1. COMMAND\-LINE Options
121     2. FIELDS / Columns
122        a. DESCRIPTIONS of Fields
123        b. SELECTING and ORDERING Columns
124     3. INTERACTIVE Commands
125        a. GLOBAL Commands
126        b. SUMMARY Area Commands
127        c. TASK Area Commands
128        d. COLOR Mapping
129     4. ALTERNATE\-DISPLAY Mode
130        a. WINDOWS Overview
131        b. COMMANDS for Windows
132     5. FILES
133        a. SYSTEM Configuration File
134        b. PERSONAL Configuration File
135     6. STUPID TRICKS Sampler
136        a. Kernel Magic
137        b. Bouncing Windows
138        c. The Big Bird Window
139     7. BUGS, 8. HISTORY Former top, 9. AUTHOR, 10. SEE ALSO
140
141 .\" ......................................................................
142 .SS Operation
143 .\" ----------------------------------------------------------------------
144 When operating \*(Me, the two most important keys are help ('h' or '?') and
145 quit ('q') key.
146 Alternatively, you could simply use the traditional interrupt key ('^C')
147 when you're done.
148
149 When you start \*(Me for the first time, you'll be presented with the
150 traditional screen elements: 1) Summary Area; 2) Message/Prompt Line;
151 3) Columns Header; 4) Task Area.
152 There will, however, be some differences when compared to the former top.
153
154 .TP 3
155 .B Highlighting
156 .I Summary_Area\fR:
157 There is no highlighting for load/uptime and only values are highlighted for
158 other elements.
159
160 .I Task_Area\fR:
161 Tasks running (or ready to run) will be highlighted, and bold is only one way
162 of emphasizing such processes.
163
164 .TP 3
165 .B Content/Labels
166 .I Summary_Area\fR:
167 The program name is shown, perhaps a symlink or alias.
168 The Cpu(s) state label hints at other possibilities.
169 The memory stats use a lower case 'k'.
170
171 .I Columns_Header\fR:
172 Will show a new field and some changed labels.
173 More new fields will be found as you customize your \*(Me.
174
175 .PP
176 \*(NT the width of \*(Me's display will be limited to 512 positions.
177 Displaying all fields requires a minimum of 160 characters.
178 The remaining width could be used for the 'Command' column.
179
180 .\" ......................................................................
181 .SS Startup Defaults
182 .\" ----------------------------------------------------------------------
183 The following startup defaults assume no \*(CF, thus no user customizations.
184 Even so, items shown with an \*(AS could be overridden through the
185 command-line.
186
187     \fIGlobal_defaults\fR
188        'A' - Alt display      Off (full-screen)
189      * 'd' - Delay time       3.0 seconds
190        'I' - Irix mode        On\ \ (no, 'solaris' smp)
191      * 'p' - PID monitoring   Off
192      * 's' - Secure mode      Off (unsecured)
193        'B' - Bold disable     Off
194     \fISummary_Area_defaults\fR
195        'l' - Load Avg/Uptime  On\ \ (thus program name)
196        't' - Task/Cpu states  On\ \ (1+1 lines, see '1')
197        'm' - Mem/Swap usage   On\ \ (2 lines worth)
198        '1' - Single Cpu       On\ \ (thus 1 line if smp)
199     \fITask_Area_defaults\fR
200        'b' - Bold hilite      On\ \ (not 'reverse')
201      * 'c' - Command line     Off (name, not cmdline)
202      * 'H' - Threads          Off\ (show all threads)
203      * 'i' - Idle tasks       On\ \ (show all tasks)
204        'R' - Reverse sort     On\ \ (pids high-to-low)
205      * 'S' - Cumulative time  Off (no, dead children)
206        'x' - Column hilite    Off\ (no, sort field)
207        'y' - Row hilite       On\ \ (yes, running tasks)
208        'z' - color/mono       Off\ (no, colors)
209
210
211 .\" ----------------------------------------------------------------------
212 .SH 1. COMMAND-LINE Options
213 .\" ----------------------------------------------------------------------
214 The command-line syntax for \*(Me consists of:
215
216      \-\fBhv\fR\ |\ -\fBbcHisS\fR\ \-\fBd\fI\ delay\fR\ \-\fBn\fI\ iterations\
217 \fR\ \-\fBp\fI\ pid\fR\ [,\fIpid\fR...]
218
219 The typically mandatory switches ('-') and even whitespace are completely
220 optional.
221
222 .TP 5
223 \-\fBb\fR :\fB Batch mode\fR operation
224 Starts \*(Me in 'Batch mode', which could be useful for sending output
225 from \*(Me to other programs or to a file.
226 In this mode, \*(Me will not accept input and runs until the iterations
227 limit you've set with the '-n' \*(CO or until killed.
228
229 .TP 5
230 \-\fBc\fR :\fB Command line/Program name\fR toggle
231 Starts \*(Me with the last remembered 'c' state reversed.
232 Thus, if \*(Me was displaying command lines, now that field will show program
233 names, and visa versa.
234 \*(XC 'c' \*(CI for additional information.
235
236 .TP 5
237 \-\fBd\fR :\fB Delay time\fR interval as:\ \ \fB-d ss.tt\fR (\fIseconds\fR.\fItenths\fR)
238 Specifies the delay between screen updates, and overrides the corresponding
239 value in one's personal \*(CF or the startup default.
240 Later this can be changed with the 'd' or 's' \*(CIs.
241
242 Fractional seconds are honored, but a negative number is not allowed.
243 In all cases, however, such changes are prohibited if \*(Me is running
244 in 'Secure mode', except for root (unless the 's' \*(CO was used).
245 For additional information on 'Secure mode' \*(Xt 5a. SYSTEM Configuration File.
246
247
248 .TP 5
249 \-\fBh\fR :\fB Help\fR
250 Show library version and the usage prompt, then quit.
251
252 .TP 5
253 \-\fBH\fR :\fB Threads\fR toggle
254 Starts \*(Me with the last remembered 'H' state reversed.
255 When this toggle is \*O, all individual threads will be displayed.  Otherwise, \*(Me displays a summation of all threads in a process.
256
257 .TP 5
258 \-\fBi\fR :\fB Idle Processes\fR toggle
259 Starts \*(Me with the last remembered 'i' state reversed.
260 When this toggle is \*F, tasks that are idled or zombied will not be displayed.
261
262 .TP 5
263 \-\fBn\fR :\fB Number of iterations\fR limit as:\fB\ \ -n number\fR
264 Specifies the maximum number of iterations, or frames, \*(Me should
265 produce before ending.
266
267 .TP 5
268 \-\fBu\fR :\fB Monitor by user\fR as:\fB\ \ -u somebody
269 Monitor only processes with an effective UID or user name
270 matching that given.
271
272 .TP 5
273 \-\fBU\fR :\fB Monitor by user\fR as:\fB\ \ -U somebody
274 Monitor only processes with a UID or user name matching that given.
275 This matches real, effective, saved, and filesystem UIDs.
276
277 .TP 5
278 \-\fBp\fR :\fB Monitor PIDs\fR as:\fB\ \ -pN1 -pN2 ...\fR\ \ or\fB\ \ -pN1, N2 [,...]
279 Monitor only processes with specified process IDs.
280 This option can be given up to 20 times, or you can provide a comma delimited
281 list with up to 20 pids.
282 Co-mingling both approaches is permitted.
283
284 This is a \*(CO only.
285 And should you wish to return to normal operation, it is not necessary
286 to quit and and restart \*(Me \*(EM just issue the '=' \*(CI.
287
288 .TP 5
289 \-\fBs\fR :\fB Secure mode\fR operation
290 Starts \*(Me with secure mode forced, even for root.
291 This mode is far better controlled through the system \*(CF
292 (\*(Xt 5. FILES).
293
294 .TP 5
295 \-\fBS\fR :\fB Cumulative time mode\fR toggle
296 Starts \*(Me with the last remembered 'S' state reversed.
297 When 'Cumulative mode' is \*O, each process is listed with the \*(Pu
298 time that it and its dead children have used.
299 \*(XC 'S' \*(CI for additional information regarding this mode.
300
301 .TP 5
302 \-\fBv\fR :\fB Version\fR
303 Show library version and the usage prompt, then quit.
304
305
306 .\" ----------------------------------------------------------------------
307 .SH 2. FIELDS / Columns
308 .\" ----------------------------------------------------------------------
309 .\" ......................................................................
310 .SS 2a. DESCRIPTIONS of Fields
311 .\" ----------------------------------------------------------------------
312 Listed below are \*(Me's available fields.
313 They are always associated with the letter shown, regardless of the position
314 you may have established for them with the 'o' (Order fields) \*(CI.
315
316 Any field is selectable as the sort field, and you control whether they
317 are sorted high-to-low or low-to-high.
318 For additional information on sort provisions \*(Xt 3c. TASK Area Commands.
319
320 .TP 3
321 a:\fB PID\fR \*(EM Process Id\fR
322 The task's unique process ID, which periodically wraps,
323 though never restarting at zero.
324
325 .TP 3
326 b:\fB PPID\fR \*(EM Parent Process Pid\fR
327 The process ID of a task's parent.
328
329 .TP 3
330 c:\fB RUSER\fR \*(EM Real User Name\fR
331 The real user name of the task's owner.
332
333 .TP 3
334 d:\fB UID\fR \*(EM User Id\fR
335 The effective user ID of the task's owner.
336
337 .TP 3
338 e:\fB USER\fR \*(EM User Name\fR
339 The effective user name of the task's owner.
340
341 .TP 3
342 f:\fB GROUP\fR \*(EM Group Name\fR
343 The effective group name of the task's owner.
344
345 .TP 3
346 g:\fB TTY\fR \*(EM Controlling Tty
347 The name of the controlling terminal.
348 This is usually the device (serial port, pty, etc.) from which the
349 process was started, and which it uses for input or output.
350 However, a task need not be associated with a terminal, in which case
351 you'll see '?' displayed.
352
353 .TP 3
354 h:\fB PR\fR \*(EM Priority
355 The priority of the task.
356
357 .TP 3
358 i:\fB NI\fR \*(EM Nice value
359 The nice value of the task.
360 A negative nice value means higher priority, whereas a positive nice value
361 means lower priority.
362 Zero in this field simply means priority will not be adjusted in determining a
363 task's dispatchability.
364
365 .TP 3
366 j:\fB P\fR \*(EM Last used \*(PU (SMP)
367 A number representing the last used processor.
368 In a true SMP environment this will likely change frequently since the kernel
369 intentionally uses weak affinity.
370 Also, the very act of running \*(Me may break this weak affinity and cause more
371 processes to change \*(PUs more often (because of the extra demand for
372 \*(Pu time).
373
374 .TP 3
375 k:\fB %CPU\fR \*(EM \*(PU usage
376 The task's share of the elapsed \*(PU time since the last screen update,
377 expressed as a percentage of total \*(PU time.
378 In a true SMP environment, if 'Irix mode' is \*F, \*(Me will operate
379 in 'Solaris mode' where a task's \*(Pu usage will be divided by the total
380 number of \*(PUs.
381 You toggle 'Irix/Solaris' modes with the 'I' \*(CI.
382
383 .TP 3
384 l:\fB TIME\fR \*(EM \*(PU Time
385 Total \*(PU time the task has used since it started.
386 When 'Cumulative mode' is \*O, each process is listed with the \*(Pu
387 time that it and its dead children has used.
388 You toggle 'Cumulative mode' with 'S', which is a \*(CO and an \*(CI.
389 \*(XC 'S' \*(CI for additional information regarding this mode.
390
391 .TP 3
392 m:\fB TIME+\fR \*(EM \*(PU Time, hundredths
393 The same as 'TIME', but reflecting more granularity through hundredths of
394 a second.
395
396 .TP 3
397 n:\fB %MEM\fR \*(EM Memory usage (RES)
398 A task's currently used share of available \*(MP.
399
400 .TP 3
401 o:\fB VIRT\fR \*(EM Virtual Image (kb)
402 The total amount of \*(MV used by the task.
403 It includes all code, data and shared libraries plus pages that have been
404 swapped out.
405
406 VIRT = SWAP + RES.
407
408 .TP 3
409 p:\fB SWAP\fR \*(EM Swapped size (kb)
410 The swapped out portion of a task's total \*(MV image.
411
412 .TP 3
413 q:\fB RES\fR \*(EM Resident size (kb)
414 The non-swapped \*(MP a task has used.
415
416 RES = CODE + DATA.
417
418 .TP 3
419 r:\fB CODE\fR \*(EM Code size (kb)
420 The amount of \*(MP devoted to executable code, also known as
421 the 'text resident set' size or TRS.
422
423 .TP 3
424 s:\fB DATA\fR \*(EM Data+Stack size (kb)
425 The amount of \*(MP devoted to other than executable code, also known as
426 the 'data resident set' size or DRS.
427
428 .TP 3
429 t:\fB SHR\fR \*(EM Shared Mem size (kb)
430 The amount of \*(MS used by a task.
431 It simply reflects memory that could be potentially shared with
432 other processes.
433
434 .TP 3
435 u:\fB nFLT\fR \*(EM Page Fault count
436 The number of\fB major\fR page faults that have occurred for a task.
437 A page fault occurs when a process attempts to read from or write to a virtual
438 page that is not currently present in its address space.
439 A major page fault is when disk access is involved in making that
440 page available.
441
442 .TP 3
443 v:\fB nDRT\fR \*(EM Dirty Pages count
444 The number of pages that have been modified since they were last
445 written to disk.
446 Dirty pages must be written to disk before the corresponding physical memory
447 location can be used for some other virtual page.
448
449 .TP 3
450 w:\fB S\fR \*(EM Process Status
451 The status of the task which can be one of:
452    '\fBD\fR' = uninterruptible sleep
453    '\fBR\fR' = running
454    '\fBS\fR' = sleeping
455    '\fBT\fR' = traced or stopped
456    '\fBZ\fR' = zombie
457
458 Tasks shown as running should be more properly thought of as 'ready to run'
459 \*(EM their task_struct is simply represented on the Linux run-queue.
460 Even without a true SMP machine, you may see numerous tasks in this state
461 depending on \*(Me's delay interval and nice value.
462
463 .TP 3
464 x:\fB Command\fR \*(EM Command\fB line\fR or Program\fB name\fR
465 Display the command line used to start a task or the name of the associated
466 program.
467 You toggle between command\fI line\fR and\fI name\fR with 'c', which is both
468 a \*(CO and an \*(CI.
469
470 When you've chosen to display command lines, processes without a command
471 line (like kernel threads) will be shown with only the program name in
472 parentheses, as in this example:
473       \fR( mdrecoveryd )
474
475 Either form of display is subject to potential truncation if it's too long to
476 fit in this field's current width.
477 That width depends upon other fields selected, their order and the current
478 screen width.
479
480 \*(NT The 'Command' field/column is unique, in that it is not fixed-width.
481 When displayed, this column will be allocated all remaining screen width (up
482 to the maximum 512 characters) to provide for the potential growth of program
483 names into command lines.
484
485 .TP 3
486 y:\fB WCHAN\fR \*(EM Sleeping in Function
487 Depending on the availability of the kernel link map ('System.map'), this field
488 will show the name or the address of the kernel function in which the task is
489 currently sleeping.
490 Running tasks will display a dash ('-') in this column.
491
492 \*(NT By displaying this field, \*(Me's own working set will be increased by
493 over 700Kb.
494 Your only means of reducing that overhead will be to stop and restart \*(Me.
495
496 .TP 3
497 z:\fB Flags\fR \*(EM Task Flags
498 This column represents the task's current scheduling flags which are
499 expressed in hexadecimal notation and with zeros suppressed.
500 These flags are officially documented in <linux/sched.h>.
501 Less formal documentation can also be found on the 'Fields select'
502 and 'Order fields' screens.
503
504 .\" ......................................................................
505 .SS 2b. SELECTING and ORDERING Columns
506 .\" ----------------------------------------------------------------------
507 After pressing the \*(CIs 'f' (Fields select) or \'o' (Order fields) you will
508 be shown a screen containing the current \fBfields string\fR followed by names
509 and descriptions for all fields.
510
511 Here is a sample\fB fields string\fR from one of \*(Me's four windows/field
512 groups and an explanation of the conventions used:
513 .Jbu
514 Sample fields string:
515    \fIANOPQRSTUVXbcdefgjlmyzWHIK\fR
516 .Jbu
517 The order of displayed fields corresponds to the order of the letters
518 in that string.
519 .Jbu
520 If the letter is\fI upper case\fR the corresponding field itself will
521 then be shown as part of the \*(TD (screen width permitting).
522 This will also be indicated by a leading \*(AS, as in this excerpt:
523     \fR...
524     \fB* K: %CPU       = CPU usage
525     \fR  l: TIME       = CPU Time
526     \fR  m: TIME+      = CPU Time, hundredths
527     \fB* N: %MEM       = Memory usage (RES)
528     \fB* O: VIRT       = Virtual Image (kb)
529     \fR...
530
531 .TP
532 .B Fields select\fR screen \*(EM the 'f' \*(CI
533 You\fI toggle\fR the\fB display\fR of a field by simply pressing the
534 corresponding letter.
535
536 .TP
537 .B Order fields\fR screen \*(EM the 'o' \*(CI
538 You\fI move\fR a field to the\fB left\fR by pressing the corresponding\fB
539 upper case\fR letter and to the\fB right\fR with the\fB lower case\fR
540 letter.
541
542
543 .\" ----------------------------------------------------------------------
544 .SH 3. INTERACTIVE Commands
545 .\" ----------------------------------------------------------------------
546 Listed below is a brief index of commands within categories.
547 Some commands appear more than once \*(EM their meaning or scope may vary
548 depending on the context in which they are issued.
549
550   3a.\fI GLOBAL_Commands\fR
551         <Ret/Sp> ?, =, A, B, d, G, h, I, k, q, r, s, W, Z
552   3b.\fI SUMMARY_Area_Commands\fR
553         l, m, t, 1
554   3c.\fI TASK_Area_Commands\fR
555         Appearance:  b, x, y, z
556         Content:     c, f, H, o, S, u
557         Size:        #, i, n
558         Sorting:     <, >, F, O, R
559   3d.\fI COLOR_Mapping\fR
560         <Ret>, a, B, b, H, M, q, S, T, w, z, 0 - 7
561   4b.\fI COMMANDS_for_Windows\fR
562         -, _, =, +, A, a, G, g, w
563
564 .\" ......................................................................
565 .SS 3a. GLOBAL Commands
566 The global \*(CIs are\fB always\fR available\fR in both \*(FM and \*(AM.
567 However, some of these \*(CIs are\fB not available\fR when running
568 in 'Secure mode'.
569
570 If you wish to know in advance whether or not your \*(Me has been secured,
571 simply ask for help and view the system summary on the second line.
572
573 .TP 7
574 \ \ \<\fBEnter\fR> or <\fBSpace\fR> :\fIRefresh_Display\fR
575 These commands do nothing, they are simply ignored.
576 However, they will awaken \*(Me and following receipt of any input
577 the entire display will be repainted.
578
579 Use either of these keys if you have a large delay interval and wish to
580 see current status,
581
582 .TP 7
583 \ \ \'\fB?\fR\' or \'\fBh\fR\' :\fIHelp\fR
584 There are two help levels available.
585 The first will provide a reminder of all the basic \*(CIs.
586 If \*(Me is\fI secured\fR, that screen will be abbreviated.
587
588 Typing 'h' or '?' on that help screen will take you to help for those \*(CIs
589 applicable to \*(AM.
590
591 .TP 7
592 \ \ \'\fB=\fR\' :\fIExit_Task_Limits\fR
593 Removes restrictions on which tasks are shown.
594 This command will reverse any 'i' (idle tasks) and 'n' (max tasks) commands
595 that might be active.
596 It also provides for an 'exit' from PID monitoring.
597 See the '-p' \*(CO for a discussion of PID monitoring.
598
599 When operating in \*(AM this command has a slightly broader meaning.
600
601 .TP 7
602 \ \ \'\fBA\fR\' :\fIAlternate_Display_Mode_toggle\fR
603 This command will switch between \*(FM and \*(AM.
604 \*(XT 4. ALTERNATE\-DISPLAY Mode and the 'G' \*(CI for insight into
605 \*(CWs and field groups.
606
607 .TP 7
608 \ \ \'\fBB\fR\' :\fIBold_Disable/Enable_toggle\fR
609 This command will influence use of the 'bold' terminfo capability and
610 alters\fB both\fR the \*(SA and \*(TA for the \*(CW.
611 While it is intended primarily for use with dumb terminals, it can be
612 applied anytime.
613
614 \*(NT When this toggle is \*O and \*(Me is operating in monochrome mode,
615 the\fB entire display\fR will appear as normal text.
616 Thus, unless the 'x' and/or 'y' toggles are using reverse for emphasis,
617 there will be no visual confirmation that they are even on.
618
619 .TP 7
620 *\ \'\fBd\fR\' or \'\fBs\fR\' :\fIChange_Delay_Time_interval\fR
621 You will be prompted to enter the delay time, in seconds, between
622 display updates.
623
624 Fractional seconds are honored, but a negative number is not allowed.
625 Entering 0 causes (nearly) continuous updates, with an unsatisfactory
626 display as the system and tty driver try to keep up with \*(Me's demands.
627 The delay value is inversely proportional to system loading,
628 so set it with care.
629
630 If at any time you wish to know the current delay time, simply ask for help
631 and view the system summary on the second line.
632
633 .TP 7
634 \ \ \'\fBG\fR\' :\fIChoose_Another_Window/Field_Group\fR
635 You will be prompted to enter a number between 1 and 4 designating the
636 window/field group which should be made the \*(CW.
637 You will soon grow comfortable with these 4 windows, especially after
638 experimenting with \*(AM.
639
640 .TP 7
641 \ \ \'\fBI\fR\' :\fIIrix/Solaris_Mode_toggle\fR
642 When operating in 'Solaris mode' ('I' toggled \*F), a task's \*(Pu usage
643 will be divided by the total number of \*(PUs.
644 After issuing this command, you'll be informed of the new state of this toggle.
645
646 .TP 7
647 \ \ \'\fBu\fR\' :\fIselect a user\fR
648 You will be prompted for a UID or username. Only processes
649 belonging to the selected user will be displayed. This option
650 matches on the effective UID.
651
652 .TP 7
653 \ \ \'\fBU\fR\' :\fIselect a user\fR
654 You will be prompted for a UID or username. Only processes
655 belonging to the selected user will be displayed. This option
656 matches on the real, effective, saved, and filesystem UID.
657
658 .TP 7
659 *\ \'\fBk\fR\' :\fIKill_a_task\fR
660 You will be prompted for a PID and then the signal to send.
661 The default signal, as reflected in the prompt, is SIGTERM.
662 However, you can send any signal, via number or name.
663
664 If you wish to abort the kill process, do one of the following
665 depending on your progress:
666    1) at the pid prompt, just press <Enter>
667    2) at the signal prompt, type 0
668
669 .TP 7
670 \ \ \'\fBq\fR\' :\fIQuit\fR
671
672 .TP 7
673 *\ \'\fBr\fR\' :\fIRenice_a_Task\fR
674 You will be prompted for a PID and then the value to nice it to.
675 Entering a positive value will cause a process to lose priority.
676 Conversely, a negative value will cause a process to be viewed more
677 favorably by the kernel.
678
679 .TP 7
680 \ \ \'\fBW\fR\' :\fIWrite_the_Configuration_File\fR
681 This will save all of your options and toggles plus the current
682 display mode and delay time.
683 By issuing this command just before quitting \*(Me, you will be able restart
684 later in exactly that same state.
685
686 .TP 7
687 \ \ \'\fBZ\fR\' :\fIChange_Color_Mapping
688 This key will take you to a separate screen where you can change the
689 colors for the \*(CW, or for all windows.
690 For details regarding this \*(CI \*(Xt 3d. COLOR Mapping.
691
692 .IP "*" 3
693 The commands shown with an \*(AS are not available in 'Secure mode',
694 nor will they be shown on the level-1 help screen.
695
696 .\" ......................................................................
697 .SS 3b. SUMMARY Area Commands
698 The \*(SA \*(CIs are\fB always available\fR in both \*(FM and \*(AM.
699 They affect the beginning lines of your display and will determine the position
700 of messages and prompts.
701
702 These commands always impact just the \*(CW/field group.
703 \*(XT 4. ALTERNATE\-DISPLAY Mode and the 'G' \*(CI for insight into
704 \*(CWs and field groups.
705
706 .TP 7
707 \ \ \'\fBl\fR\' :\fIToggle_Load_Average/Uptime\fR \*(EM On/Off
708 This is also the line containing the program name (possibly an alias) when
709 operating in \*(FM or the \*(CW name when operating in \*(AM.
710
711 .TP 7
712 \ \ \'\fBm\fR\' :\fIToggle_Memory/Swap_Usage\fR \*(EM On/Off
713 This command affects two \*(SA lines.
714
715 .TP 7
716 \ \ \'\fBt\fR\' :\fIToggle_Task/Cpu_States\fR \*(EM On/Off
717 This command affects from 2 to many \*(SA lines, depending on the state
718 of the '1' toggle and whether or not \*(Me is running under true SMP.
719
720 .TP 7
721 \ \ \'\fB1\fR\' :\fIToggle_Single/Separate_Cpu_States\fR \*(EM On/Off
722 This command affects how the 't' command's Cpu States portion is shown.
723 Although this toggle exists primarily to serve massively-parallel SMP machines,
724 it is not restricted to solely SMP environments.
725
726 When you see 'Cpu(s):' in the \*(SA, the '1' toggle is \*O and all
727 \*(Pu information is gathered in a single line.
728 Otherwise, each \*(Pu is displayed separately as: 'Cpu0, Cpu1, ...'
729
730 .PP
731 \*(NT If the entire \*(SA has been toggled \*F for any window, you would be left
732 with just the\fB message line\fR.
733 In that way, you will have maximized available task rows but (temporarily)
734 sacrificed the program name in \*(FM or the \*(CW name when in \*(AM.
735
736 .\" ......................................................................
737 .SS 3c. TASK Area Commands
738 The \*(TA \*(CIs are\fB always\fR available in \*(FM.
739
740 The \*(TA \*(CIs are\fB never available\fR in \*(AM\fI if\fR the \*(CW's
741 \*(TD has been toggled \*F (\*(Xt 4. ALTERNATE\-DISPLAY Mode).
742
743 .PP
744 .\" .........................
745 .B APPEARANCE\fR of \*(TW
746 .br
747 .in +2
748 The following commands will also be influenced by the state of the
749 global 'B' (bold disable) toggle.
750 .in
751
752 .TP 7
753 \ \ \'\fBb\fR\' :\fIBold/Reverse_toggle\fR
754 This command will impact how the 'x' and 'y' toggles are displayed.
755 Further, it will only be available when at least one of those toggles is \*O.
756
757 .TP 7
758 \ \ \'\fBx\fR\' :\fIColumn_Highlight_toggle\fR
759 Changes highlighting for the current sort field.
760 You probably don't need a constant visual reminder of the sort field and
761 \*(Me hopes that you always run with 'column highlight' \*F, due to the cost
762 in path-length.
763
764 If you forget which field is being sorted this command can serve as a quick
765 visual reminder.
766
767 .TP 7
768 \ \ \'\fBy\fR\' :\fIRow_Highlight_toggle\fR
769 Changes highlighting for "running" tasks.
770 For additional insight into this task state, \*(Xt 2a. DESCRIPTIONS of Fields,
771 Process Status.
772
773 Use of this provision provides important insight into your system's health.
774 The only costs will be a few additional tty escape sequences.
775
776 .TP 7
777 \ \ \'\fBz\fR\' :\fIColor/Monochrome_toggle\fR
778 Switches the \*(CW between your last used color scheme and the older form
779 of black-on-white or white-on-black.
780 This command will alter\fB both\fR the \*(SA and \*(TA but does not affect the
781 state of the 'x', 'y' or 'b' toggles.
782
783 .PP
784 .\" .........................
785 .B CONTENT\fR of \*(TW
786 .PD 0
787 .TP 7
788 \ \ \'\fBc\fR\' :\fICommand_Line/Program_Name_toggle\fR
789 This command will be honored whether or not the 'Command' column
790 is currently visible.
791 Later, should that field come into view, the change you applied will be seen.
792
793 .TP 7
794 \ \ \'\fBf\fR\' and \'\fBo\fR\' :\fIFields_select\fR or \fIOrder_fields\fR
795 These keys display separate screens where you can change which
796 fields are displayed and their order.
797 For additional information on these \*(CIs
798 \*(Xt 2b. SELECTING and ORDERING Columns.
799
800 .TP 7
801 \ \ \'\fBH\fR\' :\fIThreads_toggle\fR
802 When this toggle is \*O, all individual threads will be displayed.  Otherwise, \*(Me displays a summation of all threads in a process.
803
804 .TP 7
805 \ \ \'\fBS\fR\' :\fICumulative_Time_Mode_toggle\fR
806 When 'Cumulative mode' is \*O, each process is listed with the \*(Pu
807 time that it and its dead children have used.
808
809 When \*F, programs that fork into many separate tasks will appear
810 less demanding.
811 For programs like 'init' or a shell this is appropriate but for others,
812 like compilers, perhaps not.
813 Experiment with two \*(TWs sharing the same sort field but with different 'S'
814 states and see which representation you prefer.
815
816 After issuing this command, you'll be informed of the new state of this toggle.
817 If you wish to know in advance whether or not 'Cumulative mode' is in
818 effect, simply ask for help and view the window summary on the second line.
819
820 .TP 7
821 \ \ \'\fBu\fR\' :\fIShow_Specific_User_Only\fR
822 You will be prompted to enter the name of the user to display.
823 Thereafter, in that \*(TW only matching User ID's will be shown, or possibly
824 no tasks will be shown.
825
826 Later, if you wish to monitor all tasks again, re-issue this command but
827 just press <Enter> at the prompt, without providing a name.
828
829 .PP
830 .\" .........................
831 .B SIZE\fR of \*(TW
832 .PD 0
833 .TP 7
834 \ \ \'\fBi\fR\' :\fIIdle_Processes_toggle\fR
835 Displays all tasks or just active tasks.
836 When this toggle is \*F, idled or zombied processes will not be displayed.
837
838 If this command is applied to the last \*(TD when in \*(AM, then it will not
839 affect the window's size, as all prior \*(TDs will have already been painted.
840
841 .TP 7
842 \ \ \'\fBn\fR\' or \'#\' :\fISet_Maximum_Tasks\fR
843 You will be prompted to enter the number of tasks to display.
844 The lessor of your number and available screen rows will be used.
845
846 When used in \*(AM, this is the command that gives you precise control over
847 the size of each currently visible \*(TD, except for the very last.
848 It will not affect the last window's size, as all prior \*(TDs will have
849 already been painted.
850
851 \*(NT If you wish to increase the size of the last visible \*(TD when in \*(AM,
852 simply decrease the size of the \*(TD(s) above it.
853
854 .PP
855 .\" .........................
856 .B SORTING\fR of \*(TW
857 .br
858 .in +2
859 For compatibility, this \*(Me supports most of the former \*(Me sort keys.
860 Since this is primarily a service to former \*(Me users, these commands do
861 not appear on any help screen.
862    command   sorted field                  supported
863      A         start time (non-display)      No
864      M         %MEM                          Yes
865      N         PID                           Yes
866      P         %CPU                          Yes
867      T         TIME+                         Yes
868
869 Before using any of the following sort provisions, \*(Me suggests that you
870 temporarily turn on column highlighting using the 'x' \*(CI.
871 That will help ensure that the actual sort environment matches your intent.
872
873 The following \*(CIs will\fB only\fR be honored when the
874 current sort field is\fB visible\fR.
875 The sort field might\fI not\fR be visible because:
876      1) there is insufficient\fI Screen Width\fR
877      2) the 'f' \*(CI turned it \*F
878 .in
879
880 .TP 7
881 \ \ \'\fB<\fR\' :\fIMove_Sort_Field_Left\fR
882 Moves the sort column to the left unless the current sort field is
883 the first field being displayed.
884
885 .TP 7
886 \ \ \'\fB>\fR\' :\fIMove_Sort_Field_Right\fR
887 Moves the sort column to the right unless the current sort field is
888 the last field being displayed.
889
890 .PP
891 .in +2
892 The following \*(CIs will\fB always\fR be honored whether or not
893 the current sort field is visible.
894 .in
895
896 .TP 7
897 \ \ \'\fBF\fR\' or \'\fBO\fR\' :\fISelect_Sort_Field\fR
898 These keys display a separate screen where you can change which field
899 is used as the sort column.
900
901 If a field is selected which was not previously being displayed, it will
902 be forced \*O when you return to the \*(Me display.
903 However, depending upon your screen width and the order of your fields,
904 this sort field may not be displayable.
905
906 This \*(CI can be a convenient way to simply verify the current sort field,
907 when running \*(Me with column highlighting turned \*F.
908
909 .TP 7
910 \ \ \'\fBR\fR\' :\fIReverse/Normal_Sort_Field_toggle\fR
911 Using this \*(CI you can alternate between high-to-low and low-to-high sorts.
912
913 .PP
914 .in +2
915 \*(NT Field sorting uses internal values, not those in column display.
916 Thus, the TTY and WCHAN fields will violate strict ASCII collating sequence.
917 .in
918
919 .\" ......................................................................
920 .SS 3d. COLOR Mapping
921 When you issue the 'Z' \*(CI, you will be presented with a separate screen.
922 That screen can be used to change the colors in just the \*(CW or
923 in all four windows before returning to the \*(Me display.
924
925 .P
926 .B Available \*(CIs
927     \fB4\fR upper case letters to select a\fB target\fR
928     \fB8\fR numbers to select a\fB color\fR
929     normal toggles available\fR
930         'B'       :bold disable/enable
931         'b'       :running tasks "bold"/reverse
932         'z'       :color/mono
933     other commands available\fR
934         'a'/'w'   :apply, then go to next/prior
935         <Enter>   :apply and exit
936         'q'       :abandon current changes and exit
937
938 If your use 'a' or 'w' to cycle the targeted window, you will
939 have applied the color scheme that was displayed when you left that window.
940 You can, of course, easily return to any window and reapply different
941 colors or turn colors \*F completely with the 'z' toggle.
942
943 The Color Mapping screen can also be used to change the \*(CW/field group
944 in either \*(FM or \*(AM.
945 Whatever was targeted when 'q' or <Enter> was pressed will be made current
946 as you return to the \*(Me display.
947
948
949 .\" ----------------------------------------------------------------------
950 .SH 4. ALTERNATE\-DISPLAY Mode
951 .\" ----------------------------------------------------------------------
952 .\" ......................................................................
953 .SS 4a. WINDOWS Overview
954 .TP
955 .B Field Groups/Windows\fR:
956 .br
957 In \*(FM there is a single window represented by the entire screen.
958 That single window can still be changed to display 1 of 4 different\fB field
959 groups\fR (\*(Xc 'G' \*(CI, repeated below).
960 Each of the 4 field groups has a unique separately configurable\fB \*(SA\fR
961 and its own configurable\fB \*(TA\fR.
962
963 In \*(AM, those 4 underlying field groups can now be made visible
964 simultaneously, or can be turned \*F individually at your command.
965
966 The \*(SA will always exist, even if it's only the message line.
967 At any given time only\fI one\fR \*(SA can be displayed.
968 However, depending on your commands, there could be from\fI zero\fR
969 to\fI four\fR separate \*(TDs currently showing on the screen.
970
971 .TP
972 .B Current Window\fR:
973 .br
974 The \*(CW is the window associated with the \*(SA and the window to which
975 task related commands are always directed.
976 Since in \*(AM you can toggle the \*(TD \*F, some commands might be
977 restricted for the \*(CW.
978
979 A further complication arises when you have toggled the first \*(SA
980 line \*F.
981 With the loss of the window name (the 'l' toggled line), you'll not easily
982 know what window is the \*(CW.
983
984 .\" ......................................................................
985 .SS 4b. COMMANDS for Windows
986 .TP 7
987 \ \ \'\fB-\fR\' and \'\fB_\fR\' :\fIShow/Hide_Window(s)_toggles\fR
988 The '-' key turns the \*(CW's \*(TD \*O and \*F.
989 When \*O, that \*(TA will show a minimum of the columns header you've
990 established with the 'f' and 'o' commands.
991 It will also reflect any other \*(TA options/toggles you've applied yielding
992 zero or more tasks.
993
994 The '_' key does the same for all \*(TDs.
995 In other words, it switches between the currently visible \*(TD(s) and any
996 \*(TD(s) you had toggled \*F.
997 If all 4 \*(TDs are currently visible, this \*(CI will leave the \*(SA
998 as the only display element.
999
1000 .TP 7
1001 *\ \'\fB=\fR\' and \'\fB+\fR\' :\fIEqualize_(re-balance)_Window(s)\fR
1002 The '=' key forces the \*(CW's \*(TD to be visible.
1003 It also reverses any 'i' (idle tasks) and 'n' (max tasks) commands that might
1004 be active.
1005
1006 The '+' key does the same for all windows.
1007 The four \*(TDs will reappear, evenly balanced.
1008 They will also have retained any customizations you had previously applied,
1009 except for the 'i' (idle tasks) and 'n' (max tasks) commands.
1010
1011 .TP 7
1012 *\ \'\fBA\fR\' :\fIAlternate_Display_Mode_toggle\fR
1013 This command will switch between \*(FM and \*(AM.
1014
1015 The first time you issue this command, all four \*(TDs will be shown.
1016 Thereafter when you switch modes, you will see only the \*(TD(s) you've
1017 chosen to make visible.
1018
1019 .TP 7
1020 *\ \'\fBa\fR\' and \'\fBw\fR\' :\fINext_Window_Forward/Backward\fR
1021 This will change the \*(CW, which in turn changes the window to which
1022 commands are directed.
1023 These keys act in a circular fashion so you can reach any desired \*(CW
1024 using either key.
1025
1026 Assuming the window name is visible (you have not toggled 'l' \*F),
1027 whenever the \*(CW name loses its emphasis/color, that's a reminder
1028 the \*(TD is \*F and many commands will be restricted.
1029
1030 .TP 7
1031 *\ \'\fBG\fR\' :\fIChoose_Another_Window/Field_Group\fR
1032 You will be prompted to enter a number between 1 and 4 designating the
1033 window/field group which should be made the \*(CW.
1034
1035 In \*(FM, this command is necessary to alter the \*(CW.
1036 In \*(AM, it is simply a less convenient alternative to the 'a' and 'w'
1037 commands.
1038
1039 .TP 7
1040 \ \ \'\fBg\fR\' :\fIChange_Window/Field_Group_Name\fR
1041 You will be prompted for a new name to be applied to the \*(CW.
1042 It does not require that the window name be visible
1043 (the 'l' toggle to be \*O).
1044
1045 .IP "*" 3
1046 The \*(CIs shown with an \*(AS have use beyond \*(AM.
1047     \'=', 'A', 'G'  are always available
1048     \'a', 'w'       act the same when color mapping
1049
1050
1051 .\" ----------------------------------------------------------------------
1052 .SH 5. FILES
1053 .\" ----------------------------------------------------------------------
1054 .\" ......................................................................
1055 .SS 5a. SYSTEM Configuration File
1056 The presence of this file will influence which version of the 'help' screen
1057 is shown to an ordinary user.
1058 More importantly, it will limit what ordinary users are allowed
1059 to do when \*(Me is running.
1060 They will not be able to issue the following commands.
1061    k         Kill a task
1062    r         Renice a task
1063    d or s    Change delay/sleep interval
1064
1065 The system \*(CF is\fB not\fR created by \*(Me.
1066 Rather, you create this file manually and place it in the \fI/etc\fR
1067 directory.
1068 Its name must be 'toprc' and must have no leading '.' (period).
1069 It must have only two lines.
1070
1071 Here is an example of the contents of\fI /etc/toprc\fR:
1072    s         # line 1: 'secure' mode switch
1073    5.0       # line 2: 'delay'\ \ interval in seconds
1074
1075 .\" ......................................................................
1076 .SS 5b. PERSONAL Configuration File
1077 This file is written as '$HOME/.your-name-4-top' + 'rc'.
1078 Use the 'W' \*(CI to create it or update it.
1079
1080 Here is the general layout:
1081    global    # line 1: the program name/alias notation
1082      "       # line 2: id,altscr,irixps,delay,curwin
1083    per ea    # line a: winname,fieldscur
1084    window    # line b: winflags,sortindx,maxtasks
1085      "       # line c: summclr,msgsclr,headclr,taskclr
1086
1087 If the $HOME variable is not present, \*(Me will try to write the
1088 personal \*(CF to the current directory, subject to permissions.
1089
1090
1091 .\" ----------------------------------------------------------------------
1092 .SH 6. STUPID TRICKS Sampler
1093 .\" ----------------------------------------------------------------------
1094 Many of these 'tricks' work best when you give \*(Me a scheduling boost.
1095 So plan on starting him with a nice value of -10, assuming you've got
1096 the authority.
1097
1098 .\" ......................................................................
1099 .SS 6a. Kernel Magic
1100 .\" sorry, just can't help it -- don't ya love the sound of this?
1101 For these stupid tricks, \*(Me needs \*(FM.
1102 .\" ( apparently AM static was a potential concern )
1103
1104 .New
1105 The user interface, through prompts and help, intentionally implies
1106 that the delay interval is limited to tenths of a second.
1107 However, you're free to set any desired delay.
1108 If you want to see Linux at his scheduling best, try a delay of .09
1109 seconds or less.
1110
1111 For this experiment, under x-windows open an xterm and maximize it.
1112 Then do the following:
1113   . provide a scheduling boost and tiny delay via:
1114       nice -n -10 top -d.09
1115   . keep sorted column highlighting \*F to minimize
1116     path length
1117   . turn \*O reverse row highlighting for emphasis
1118   . try various sort columns (TIME/MEM work well),
1119     and normal or reverse sorts to bring the most
1120     active processes into view
1121
1122 What you'll see is a very busy Linux doing what he's always done for you,
1123 but there was no program available to illustrate this.
1124
1125 .New
1126 Under an xterm using 'white-on-black' colors, try setting \*(Me's task color
1127 to black and be sure that task highlighting is set to bold, not reverse.
1128 Then set the delay interval to around .3 seconds.
1129
1130 After bringing the most active processes into view, what you'll see are
1131 the ghostly images of just the currently running tasks.
1132
1133 .New
1134 Delete the existing rcfile, or create a new symlink.
1135 Start this new version then type 'T' (a secret key, \*(Xt 3c. TASK Area
1136 Commands, Sorting) followed by 'W' and 'q'.
1137 Finally, restart the program with -d0 (zero delay).
1138
1139 Your display will be refreshed at three times the rate of the former \*(Me,
1140 a 300% speed advantage.
1141 As \*(Me climbs the TIME ladder, be as patient as you can while speculating
1142 on whether or not \*(Me will ever reach the \*(Me.
1143
1144 .\" ......................................................................
1145 .SS 6b. Bouncing Windows
1146 For these stupid tricks, \*(Me needs \*(AM.
1147
1148 .New
1149 With 3 or 4 \*(TDs visible, pick any window other than the last
1150 and turn idle processes \*F.
1151 Depending on where you applied 'i', sometimes several \*(TDs are bouncing and
1152 sometimes it's like an accordion, as \*(Me tries his best to allocate space.
1153
1154 .New
1155 Set each window's summary lines differently: one with no memory; another with
1156 no states; maybe one with nothing at all, just the message line.
1157 Then hold down 'a' or 'w' and watch a variation on bouncing windows \*(EM
1158 hopping windows.
1159
1160 .New
1161 Display all 4 windows and for each, in turn, set idle processes to \*F.
1162 You've just entered the "extreme bounce" zone.
1163
1164 .\" ......................................................................
1165 .SS 6c. The Big Bird Window
1166 This stupid trick also requires \*(AM.
1167
1168 .New
1169 Display all 4 windows and make sure that 1:Def is the \*(CW.
1170 Then, keep increasing window size until the all the other \*(TDs
1171 are "pushed out of the nest".
1172
1173 When they've all been displaced, toggle between all visible/invisible windows.
1174 Then ponder this:
1175 .br
1176    is \*(Me fibbing or telling honestly your imposed truth?
1177
1178
1179 .\" ----------------------------------------------------------------------
1180 .SH 7. BUGS
1181 .\" ----------------------------------------------------------------------
1182 Send bug reports to:
1183    Albert D\. Cahalan, <albert@users.sf.net>
1184
1185
1186 .\" ----------------------------------------------------------------------
1187 .SH 8. HISTORY Former top
1188 .\" ----------------------------------------------------------------------
1189 The original top was written by Roger Binns,
1190 based on Branko Lankester's <lankeste@fwi.uva.nl> ps program.
1191
1192 Robert Nation <nation@rocket.sanders.lockheed.com>
1193 adapted it for the proc file system.
1194
1195 Helmut Geyer <Helmut.Geyer@iwr.uni-heidelberg.de>
1196 added support for configurable fields.
1197
1198 Plus many other individuals contributed over the years.
1199
1200
1201 .\" ----------------------------------------------------------------------
1202 .SH 9. AUTHOR
1203 .\" ----------------------------------------------------------------------
1204 This entirely new and enhanced replacement was written by:
1205    Jim / James C. Warner, <warnerjc@worldnet.att.net>
1206 .ig
1207    ( as a means to learn Linux, can you believe it? )
1208    ( & he accidentally learned a little groff, too! )
1209 ..
1210
1211 With invaluable help from:
1212    Albert D\. Cahalan, <albert@users.sf.net>
1213    Craig Small, <csmall@small.dropbear.id.au>
1214
1215 .ig
1216 .rj 2
1217 .B -*-\fR few though they are, some yet believe\fB -*-\fR
1218 .B -*-\~\~\~\~\~\~\~\fRin-the-\fBart\fR-of-programming\~\~\~\~\~\~\~\fB-*-\fR
1219 ..
1220
1221 .\" ----------------------------------------------------------------------
1222 .SH 10. SEE ALSO
1223 .\" ----------------------------------------------------------------------
1224 .BR free (1),
1225 .BR ps (1),
1226 .BR uptime (1),
1227 .BR atop (1),
1228 .BR slabtop (1),
1229 .BR vmstat (8),
1230 .BR w (1).
1231
1232
1233 .\" ----------------------------------------------------------------------
1234 .ig
1235 .rj 1
1236 \-*-
1237 .PD
1238 .in -3
1239 Copyright (c) 2002 \*(EM JC Warner & Associates, Ltd.
1240
1241 Permission is granted to copy, distribute and/or modify this document
1242 under the terms of the GNU Free Documentation License, Version 1.1 or
1243 any later version published by the Free Software Foundation;
1244 with no Front-Cover Texts, no Back-Cover Texts, and with the following
1245 Invariant Sections and any sub-sections therein:
1246 .na
1247 .hy 0
1248 .in +3
1249 STUPID\ TRICKS\ Sampler;
1250 .br
1251 AUTHOR
1252 .in
1253 A copy of the license is included in the section entitled
1254 \(dqGNU Free Documentation License\(dq.
1255 ..
1256 .
1257 .\" end: active doc ||||||||||||||||||||||||||||||||||||||||||||||||||
1258 .\" ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1259
1260 .ig
1261 .\" ----------------------------------------------------------------------
1262 .SH GNU Free Documentation License
1263 Version 1.1, March 2000
1264
1265 Copyright (C) 2000  Free Software Foundation, Inc.
1266     59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
1267
1268 Everyone is permitted to copy and distribute verbatim copies
1269 of this license document, but changing it is not allowed.
1270
1271 .SS 0. PREAMBLE
1272 The purpose of this License is to make a manual, textbook, or other
1273 written document "free" in the sense of freedom: to assure everyone
1274 the effective freedom to copy and redistribute it, with or without
1275 modifying it, either commercially or noncommercially.  Secondarily,
1276 this License preserves for the author and publisher a way to get
1277 credit for their work, while not being considered responsible for
1278 modifications made by others.
1279
1280 This License is a kind of "copyleft", which means that derivative
1281 works of the document must themselves be free in the same sense.  It
1282 complements the GNU General Public License, which is a copyleft
1283 license designed for free software.
1284
1285 We have designed this License in order to use it for manuals for free
1286 software, because free software needs free documentation: a free
1287 program should come with manuals providing the same freedoms that the
1288 software does.  But this License is not limited to software manuals;
1289 it can be used for any textual work, regardless of subject matter or
1290 whether it is published as a printed book.  We recommend this License
1291 principally for works whose purpose is instruction or reference.
1292
1293 .SS 1. APPLICABILITY AND DEFINITIONS
1294 This License applies to any manual or other work that contains a
1295 notice placed by the copyright holder saying it can be distributed
1296 under the terms of this License.  The "Document", below, refers to any
1297 such manual or work.  Any member of the public is a licensee, and is
1298 addressed as "you".
1299
1300 A "Modified Version" of the Document means any work containing the
1301 Document or a portion of it, either copied verbatim, or with
1302 modifications and/or translated into another language.
1303
1304 A "Secondary Section" is a named appendix or a front-matter section of
1305 the Document that deals exclusively with the relationship of the
1306 publishers or authors of the Document to the Document's overall subject
1307 (or to related matters) and contains nothing that could fall directly
1308 within that overall subject.  (For example, if the Document is in part a
1309 textbook of mathematics, a Secondary Section may not explain any
1310 mathematics.)  The relationship could be a matter of historical
1311 connection with the subject or with related matters, or of legal,
1312 commercial, philosophical, ethical or political position regarding
1313 them.
1314
1315 The "Invariant Sections" are certain Secondary Sections whose titles
1316 are designated, as being those of Invariant Sections, in the notice
1317 that says that the Document is released under this License.
1318
1319 The "Cover Texts" are certain short passages of text that are listed,
1320 as Front-Cover Texts or Back-Cover Texts, in the notice that says that
1321 the Document is released under this License.
1322
1323 A "Transparent" copy of the Document means a machine-readable copy,
1324 represented in a format whose specification is available to the
1325 general public, whose contents can be viewed and edited directly and
1326 straightforwardly with generic text editors or (for images composed of
1327 pixels) generic paint programs or (for drawings) some widely available
1328 drawing editor, and that is suitable for input to text formatters or
1329 for automatic translation to a variety of formats suitable for input
1330 to text formatters.  A copy made in an otherwise Transparent file
1331 format whose markup has been designed to thwart or discourage
1332 subsequent modification by readers is not Transparent.  A copy that is
1333 not "Transparent" is called "Opaque".
1334
1335 Examples of suitable formats for Transparent copies include plain
1336 ASCII without markup, Texinfo input format, LaTeX input format, SGML
1337 or XML using a publicly available DTD, and standard-conforming simple
1338 HTML designed for human modification.  Opaque formats include
1339 PostScript, PDF, proprietary formats that can be read and edited only
1340 by proprietary word processors, SGML or XML for which the DTD and/or
1341 processing tools are not generally available, and the
1342 machine-generated HTML produced by some word processors for output
1343 purposes only.
1344
1345 The "Title Page" means, for a printed book, the title page itself,
1346 plus such following pages as are needed to hold, legibly, the material
1347 this License requires to appear in the title page.  For works in
1348 formats which do not have any title page as such, "Title Page" means
1349 the text near the most prominent appearance of the work's title,
1350 preceding the beginning of the body of the text.
1351
1352 .SS 2. VERBATIM COPYING
1353 You may copy and distribute the Document in any medium, either
1354 commercially or noncommercially, provided that this License, the
1355 copyright notices, and the license notice saying this License applies
1356 to the Document are reproduced in all copies, and that you add no other
1357 conditions whatsoever to those of this License.  You may not use
1358 technical measures to obstruct or control the reading or further
1359 copying of the copies you make or distribute.  However, you may accept
1360 compensation in exchange for copies.  If you distribute a large enough
1361 number of copies you must also follow the conditions in section 3.
1362
1363 You may also lend copies, under the same conditions stated above, and
1364 you may publicly display copies.
1365
1366 .SS 3. COPYING IN QUANTITY
1367 If you publish printed copies of the Document numbering more than 100,
1368 and the Document's license notice requires Cover Texts, you must enclose
1369 the copies in covers that carry, clearly and legibly, all these Cover
1370 Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on
1371 the back cover.  Both covers must also clearly and legibly identify
1372 you as the publisher of these copies.  The front cover must present
1373 the full title with all words of the title equally prominent and
1374 visible.  You may add other material on the covers in addition.
1375 Copying with changes limited to the covers, as long as they preserve
1376 the title of the Document and satisfy these conditions, can be treated
1377 as verbatim copying in other respects.
1378
1379 If the required texts for either cover are too voluminous to fit
1380 legibly, you should put the first ones listed (as many as fit
1381 reasonably) on the actual cover, and continue the rest onto adjacent
1382 pages.
1383
1384 If you publish or distribute Opaque copies of the Document numbering
1385 more than 100, you must either include a machine-readable Transparent
1386 copy along with each Opaque copy, or state in or with each Opaque copy
1387 a publicly-accessible computer-network location containing a complete
1388 Transparent copy of the Document, free of added material, which the
1389 general network-using public has access to download anonymously at no
1390 charge using public-standard network protocols.  If you use the latter
1391 option, you must take reasonably prudent steps, when you begin
1392 distribution of Opaque copies in quantity, to ensure that this
1393 Transparent copy will remain thus accessible at the stated location
1394 until at least one year after the last time you distribute an Opaque
1395 copy (directly or through your agents or retailers) of that edition to
1396 the public.
1397
1398 It is requested, but not required, that you contact the authors of the
1399 Document well before redistributing any large number of copies, to give
1400 them a chance to provide you with an updated version of the Document.
1401
1402 .SS 4. MODIFICATIONS
1403 You may copy and distribute a Modified Version of the Document under
1404 the conditions of sections 2 and 3 above, provided that you release
1405 the Modified Version under precisely this License, with the Modified
1406 Version filling the role of the Document, thus licensing distribution
1407 and modification of the Modified Version to whoever possesses a copy
1408 of it.  In addition, you must do these things in the Modified Version:
1409
1410 .HP 3
1411 .B A\fR.\ Use in the Title Page (and on the covers, if any) a title distinct
1412 from that of the Document, and from those of previous versions (which should,
1413 if there were any, be listed in the History section of the Document).
1414 You may use the same title as a previous version if the original publisher of
1415 that version gives permission.
1416 .HP 3
1417 .B B\fR.\ List on the Title Page, as authors, one or more persons or entities
1418 responsible for authorship of the modifications in the Modified Version,
1419 together with at least five of the principal authors of the Document
1420 (all of its principal authors, if it has less than five).
1421 .HP 3
1422 .B C\fR.\ State on the Title page the name of the publisher of the Modified
1423 Version, as the publisher.
1424 .HP 3
1425 .B D\fR.\ Preserve all the copyright notices of the Document.
1426 .HP 3
1427 .B E\fR.\ Add an appropriate copyright notice for your modifications adjacent
1428 to the other copyright notices.
1429 .HP 3
1430 .B F\fR.\ Include, immediately after the copyright notices, a license notice
1431 giving the public permission to use the Modified Version under the terms of
1432 this License, in the form shown in the Addendum below.
1433 .HP 3
1434 .B G\fR.\ Preserve in that license notice the full lists of Invariant Sections
1435 and required Cover Texts given in the Document's license notice.
1436 .HP 3
1437 .B H\fR.\ Include an unaltered copy of this License.
1438 .HP 3
1439 .B I\fR.\ Preserve the section entitled "History", and its title, and add to it
1440 an item stating at least the title, year, new authors, and publisher of the
1441 Modified Version as given on the Title Page.
1442 If there is no section entitled "History" in the Document, create one stating
1443 the title, year, authors, and publisher of the Document as given on its Title
1444 Page, then add an item describing the Modified Version as stated in the
1445 previous sentence.
1446 .HP 3
1447 .B J\fR.\ Preserve the network location, if any, given in the Document for
1448 public access to a Transparent copy of the Document, and likewise the network
1449 locations given in the Document for previous versions it was based on.
1450 These may be placed in the "History" section.
1451 You may omit a network location for a work that was published at least four
1452 years before the Document itself, or if the original publisher of the version
1453 it refers to gives permission.
1454 .HP 3
1455 .B K\fR.\ In any section entitled "Acknowledgements" or "Dedications", preserve
1456 the section's title, and preserve in the section all the substance and tone of
1457 each of the contributor acknowledgements and/or dedications given therein.
1458 .HP 3
1459 .B L\fR.\ Preserve all the Invariant Sections of the Document, unaltered in their
1460 text and in their titles.
1461 Section numbers or the equivalent are not considered part of the section titles.
1462 .HP 3
1463 .B M\fR.\ Delete any section entitled "Endorsements".
1464 Such a section may not be included in the Modified Version.
1465 .HP 3
1466 .B N\fR.\ Do not retitle any existing section as "Endorsements" or to conflict
1467 in title with any Invariant Section.
1468
1469 .PP
1470 If the Modified Version includes new front-matter sections or
1471 appendices that qualify as Secondary Sections and contain no material
1472 copied from the Document, you may at your option designate some or all
1473 of these sections as invariant.  To do this, add their titles to the
1474 list of Invariant Sections in the Modified Version's license notice.
1475 These titles must be distinct from any other section titles.
1476
1477 You may add a section entitled "Endorsements", provided it contains
1478 nothing but endorsements of your Modified Version by various
1479 parties--for example, statements of peer review or that the text has
1480 been approved by an organization as the authoritative definition of a
1481 standard.
1482
1483 You may add a passage of up to five words as a Front-Cover Text, and a
1484 passage of up to 25 words as a Back-Cover Text, to the end of the list
1485 of Cover Texts in the Modified Version.  Only one passage of
1486 Front-Cover Text and one of Back-Cover Text may be added by (or
1487 through arrangements made by) any one entity.  If the Document already
1488 includes a cover text for the same cover, previously added by you or
1489 by arrangement made by the same entity you are acting on behalf of,
1490 you may not add another; but you may replace the old one, on explicit
1491 permission from the previous publisher that added the old one.
1492
1493 The author(s) and publisher(s) of the Document do not by this License
1494 give permission to use their names for publicity for or to assert or
1495 imply endorsement of any Modified Version.
1496
1497 .SS 5. COMBINING DOCUMENTS
1498 You may combine the Document with other documents released under this
1499 License, under the terms defined in section 4 above for modified
1500 versions, provided that you include in the combination all of the
1501 Invariant Sections of all of the original documents, unmodified, and
1502 list them all as Invariant Sections of your combined work in its
1503 license notice.
1504
1505 The combined work need only contain one copy of this License, and
1506 multiple identical Invariant Sections may be replaced with a single
1507 copy.  If there are multiple Invariant Sections with the same name but
1508 different contents, make the title of each such section unique by
1509 adding at the end of it, in parentheses, the name of the original
1510 author or publisher of that section if known, or else a unique number.
1511 Make the same adjustment to the section titles in the list of
1512 Invariant Sections in the license notice of the combined work.
1513
1514 In the combination, you must combine any sections entitled "History"
1515 in the various original documents, forming one section entitled
1516 "History"; likewise combine any sections entitled "Acknowledgements",
1517 and any sections entitled "Dedications".  You must delete all sections
1518 entitled "Endorsements."
1519
1520 .SS 6. COLLECTIONS OF DOCUMENTS
1521 You may make a collection consisting of the Document and other documents
1522 released under this License, and replace the individual copies of this
1523 License in the various documents with a single copy that is included in
1524 the collection, provided that you follow the rules of this License for
1525 verbatim copying of each of the documents in all other respects.
1526
1527 You may extract a single document from such a collection, and distribute
1528 it individually under this License, provided you insert a copy of this
1529 License into the extracted document, and follow this License in all
1530 other respects regarding verbatim copying of that document.
1531
1532 .SS 7. AGGREGATION WITH INDEPENDENT WORKS
1533 A compilation of the Document or its derivatives with other separate
1534 and independent documents or works, in or on a volume of a storage or
1535 distribution medium, does not as a whole count as a Modified Version
1536 of the Document, provided no compilation copyright is claimed for the
1537 compilation.  Such a compilation is called an "aggregate", and this
1538 License does not apply to the other self-contained works thus compiled
1539 with the Document, on account of their being thus compiled, if they
1540 are not themselves derivative works of the Document.
1541
1542 If the Cover Text requirement of section 3 is applicable to these
1543 copies of the Document, then if the Document is less than one quarter
1544 of the entire aggregate, the Document's Cover Texts may be placed on
1545 covers that surround only the Document within the aggregate.
1546 Otherwise they must appear on covers around the whole aggregate.
1547
1548 .SS 8. TRANSLATION
1549 Translation is considered a kind of modification, so you may
1550 distribute translations of the Document under the terms of section 4.
1551 Replacing Invariant Sections with translations requires special
1552 permission from their copyright holders, but you may include
1553 translations of some or all Invariant Sections in addition to the
1554 original versions of these Invariant Sections.  You may include a
1555 translation of this License provided that you also include the
1556 original English version of this License.  In case of a disagreement
1557 between the translation and the original English version of this
1558 License, the original English version will prevail.
1559
1560 .SS 9. TERMINATION
1561 You may not copy, modify, sublicense, or distribute the Document except
1562 as expressly provided for under this License.  Any other attempt to
1563 copy, modify, sublicense or distribute the Document is void, and will
1564 automatically terminate your rights under this License.  However,
1565 parties who have received copies, or rights, from you under this
1566 License will not have their licenses terminated so long as such
1567 parties remain in full compliance.
1568
1569 .SS 10. FUTURE REVISIONS OF THIS LICENSE
1570 The Free Software Foundation may publish new, revised versions
1571 of the GNU Free Documentation License from time to time.  Such new
1572 versions will be similar in spirit to the present version, but may
1573 differ in detail to address new problems or concerns.  See
1574 http://www.gnu.org/copyleft/.
1575
1576 Each version of the License is given a distinguishing version number.
1577 If the Document specifies that a particular numbered version of this
1578 License "or any later version" applies to it, you have the option of
1579 following the terms and conditions either of that specified version or
1580 of any later version that has been published (not as a draft) by the
1581 Free Software Foundation.  If the Document does not specify a version
1582 number of this License, you may choose any version ever published (not
1583 as a draft) by the Free Software Foundation.
1584
1585 .SS ADDENDUM: How to use this License for your documents
1586 To use this License in a document you have written, include a copy of
1587 the License in the document and put the following copyright and
1588 license notices just after the title page:
1589
1590 .IP "" 3
1591 Copyright (c)  YEAR  YOUR NAME.
1592
1593 Permission is granted to copy, distribute and/or modify this document under the
1594 terms of the GNU Free Documentation License, Version 1.1 or any later version
1595 published by the Free Software Foundation;\ \ with the Invariant Sections being
1596 LIST THEIR TITLES, with the Front-Cover Texts being LIST, and with the
1597 Back-Cover Texts being LIST.
1598 A copy of the license is included in the section entitled "GNU
1599 Free Documentation License".
1600
1601 If you have no Invariant Sections, write "with no Invariant Sections"
1602 instead of saying which ones are invariant.  If you have no
1603 Front-Cover Texts, write "no Front-Cover Texts" instead of
1604 "Front-Cover Texts being LIST"; likewise for Back-Cover Texts.
1605
1606 If your document contains nontrivial examples of program code, we
1607 recommend releasing these examples in parallel under your choice of
1608 free software license, such as the GNU General Public License,
1609 to permit their use in free software.
1610
1611 .\" ----------------------------------------------------------------------
1612 .SH \fRend of\fB GNU Free Documentation License
1613 .IP ""
1614 .PP
1615 ..
1616 .\" end: gfdl license ||||||||||||||||||||||||||||||||||||||||||||||||
1617 .\" ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||