Debian Codegraph @

man/top.1

raw
1 .ig
2 . manual page for NEW and IMPROVED linux top
3 .
4 . Copyright (c) 2002-2026 Jim Warner <[email protected]
5 .
6 . This file may be copied under the terms of the GNU Public License.
7 ..
8 \# Setup ////////////////////////////////////////////////////////////////
9 \# Commonly used strings (for consistency) ----------
10 \# - our em-dashes
11 .ds Em \fR\ \-\-\ \fR
12 .ds EM \fB\ \-\-\ \fR
13 \# - our program name (makes great grammar)
14 .ds We top
15 .ds WE \fBtop\fR
16 \# - other misc strs for consistent usage
17 .ds F \fIOff\fR
18 .ds O \fIOn\fR
19 .
20 .ds AK asterisk (\[oq]*\[cq])
21 .ds AM alternate\-display mode
22 .ds AS auxiliary storage
23 .ds CF configuration file
24 .ds CG \[oq]current\[cq] window/field group
25 .ds CI interactive command
26 .ds CO command\-line option
27 .ds CT command toggle
28 .ds CW \[oq]current\[cq] window
29 .ds FG field group
30 .ds FM full\-screen mode
31 .ds KA arrow key
32 .ds KS scrolling key
33 .ds MP physical memory
34 .ds MS swap file
35 .ds MV virtual memory
36 .ds NT \fBNote\fR:
37 .ds PU CPU
38 .ds Pu cpu
39 .ds SA summary area
40 .ds TA task area
41 .ds TD task display
42 .ds TT \fBprocesses\fR or \fBthreads\fR
43 .ds TW task window
44 \# Reference to the various widths/sizes ------------
45 \# - the max screen width limit
46 .ds WX 512
47 \# - the header width w/ all fields
48 .ds WF approximately 580
49 \# - pid monitoring limit
50 \# Xref's that depend on/mention other stuff --------
51 .ds Xa see
52 .ds XC See the
53 .ds Xc see the
54 .ds XT See topic
55 .ds Xt see topic
56 .ds XX See \[oq]OVERVIEW, Linux Memory Types\[cq] for additional details
57 .ds ZX Accessing smaps values is 10x more costly than other \
58 memory statistics and data for other users requires root privileges
59 .
60 .\" Document /////////////////////////////////////////////////////////////
61 .\" ----------------------------------------------------------------------
62 .TH TOP 1 2025-03-13 procps-ng
63 .\" ----------------------------------------------------------------------
64 .nh
65
66 .\" ----------------------------------------------------------------------
67 .SH NAME
68 .\" ----------------------------------------------------------------------
69 top \- display Linux processes
70
71 .\" ----------------------------------------------------------------------
72 .SH SYNOPSIS
73 .\" ----------------------------------------------------------------------
74 \*(WE
75 .RI [ option " .\|.\|.]"
76
77 .\" ----------------------------------------------------------------------
78 .SH DESCRIPTION
79 .\" ----------------------------------------------------------------------
80 The \*(WE program provides a dynamic real-time view of a running system.
81 It can display\fB system\fR summary information as well as a list of
82 \*(TT currently being managed by the Linux kernel.
83 The types of system summary information shown and the types, order and
84 size of information displayed for processes are all user configurable
85 and that configuration can be made persistent across restarts.
86
87 The program provides a limited interactive interface for process
88 manipulation as well as a much more extensive interface for personal
89 configuration \*(Em encompassing every aspect of its operation.
90 And while \*(WE is referred to throughout this document, you are free
91 to name the program anything you wish.
92 That new name, possibly an alias, will then be reflected on \*(We's
93 display and used when reading and writing a \*(CF.
94
95 .\" ----------------------------------------------------------------------
96 .SH OVERVIEW
97 .\" ----------------------------------------------------------------------
98 .\" ......................................................................
99 .SS Documentation
100 .\" ----------------------------------------------------------------------
101 The remaining Table of Contents
102
103 .nf
104 OVERVIEW
105 Operation
106 Linux Memory Types
107 1. COMMAND\-LINE Options
108 2. SUMMARY Display
109 a. UPTIME and LOAD Averages
110 b. TASK and CPU States
111 c. MEMORY Usage
112 3. FIELDS / Columns Display
113 a. DESCRIPTIONS of Fields
114 b. MANAGING Fields
115 4. INTERACTIVE Commands
116 a. GLOBAL Commands
117 b. SUMMARY AREA Commands
118 c. TASK AREA Commands
119 1. Appearance
120 2. Content
121 3. Size
122 4. Sorting
123 d. BOTTOM WINDOW Commands
124 e. COLOR Mapping
125 5. ALTERNATE\-DISPLAY Provisions
126 a. WINDOWS Overview
127 b. COMMANDS for Windows
128 c. SCROLLING a Window
129 d. SEARCHING in a Window
130 e. FILTERING in a Window
131 6. FILES
132 a. PERSONAL Configuration File
133 b. ADDING INSPECT Entries
134 c. SYSTEM Configuration File
135 d. SYSTEM Restrictions File
136 7. ENVIRONMENT VARIABLE(S)
137 8. STUPID TRICKS Sampler
138 a. Kernel Magic
139 b. Bouncing Windows
140 c. The Big Bird Window
141 d. The Ol' Switcheroo
142 9. BUGS, 10. SEE Also
143 .fi
144
145 .\" ......................................................................
146 .SS Operation
147 .\" ----------------------------------------------------------------------
148 When operating \*(We, the two most important keys are the help (h or ?)
149 key and quit (\[oq]q\[cq]) key.
150 Alternatively, you could simply use the traditional interrupt key (^C)
151 when you're done.
152
153 When started for the first time, you'll be presented with these traditional
154 elements on the main \*(We screen: 1) Summary Area; 2) Fields/Columns Header;
155 3) Task Area.
156 Each of these will be explored in the sections that follow.
157 There is also an Input/Message line between the Summary Area and Columns
158 Header which needs no further explanation.
159
160 The main \*(We screen is \fIgenerally\fR quite adaptive to changes in
161 terminal dimensions under X-Windows.
162 Other \*(We screens may be less so, especially those with static text.
163 It ultimately depends, however, on your particular window manager and
164 terminal emulator.
165 There may be occasions when their view of terminal size and current contents
166 differs from \*(We's view, which is always based on operating system calls.
167
168 Following any re-size operation, if a \*(We screen is corrupted, appears
169 incomplete or disordered, simply typing something innocuous like a
170 punctuation character or cursor motion key will usually restore it.
171 In extreme cases, the following sequence almost certainly will:
172 .nf
173 \fIkey/cmd objective \fR
174 ^Z \fBsuspend\fR \*(We
175 fg \fBresume\fR \*(We
176 <Left> force a screen \fBredraw\fR (if necessary)
177 .fi
178
179 But if the display is still corrupted, there is one more step you could try.
180 Insert this command after \*(We has been suspended but before resuming it.
181 .nf
182 \fIkey/cmd objective \fR
183 reset restore your \fBterminal settings\fR
184 .fi
185
186 \*(NT the width of \*(We's output will be limited to \*(WX positions.
187 While not possible, displaying all fields would require \*(WF characters.
188 Any remaining output width is allocated to visible variable width fields.
189 Those variable width columns, such as COMMAND, are noted in topic
190 3a. DESCRIPTIONS of Fields.
191 Actual output width may also be influenced by the \-w switch, which is
192 discussed in topic 1. COMMAND\-LINE Options.
193
194 Lastly, some of \*(We's screens or functions require the use of cursor
195 motion keys like the standard \*(KAs plus the Home, End, PgUp and PgDn keys.
196 If your terminal or emulator does not provide those keys, the following
197 combinations are accepted as alternatives:
198 .nf
199 \fI key equivalent-keys \fR
200 Left alt +\fB h \fR
201 Down alt +\fB j \fR
202 Up alt +\fB k \fR
203 Right alt +\fB l \fR
204 Home alt + ctrl +\fB h \fR
205 PgDn alt + ctrl +\fB j \fR
206 PgUp alt + ctrl +\fB k \fR
207 End alt + ctrl +\fB l \fR
208 .fi
209
210 The \fBUp\fR and \fBDown\fR \*(KAs have special significance when prompted
211 for line input terminated with the <Enter> key.
212 Those keys, or their aliases, can be used to retrieve previous input lines
213 which can then be edited and re-input.
214 And there are four additional keys available with line oriented input.
215 .nf
216 \fI key special-significance \fR
217 Up recall \fBolder\fR strings for re-editing
218 Down recall \fBnewer\fR strings or \fBerase\fR entire line
219 Insert toggle between \fBinsert\fR and \fBovertype\fR modes
220 Delete character \fBremoved\fR at cursor, moving others left
221 Home jump to \fBbeginning\fR of input line
222 End jump to \fBend\fR of input line
223 .fi
224
225 .\" ......................................................................
226 .SS Linux Memory Types
227 .\" ----------------------------------------------------------------------
228 For our purposes there are three types of memory, and one is optional.
229 First is \*(MP, a limited resource where code and data must
230 reside when executed or referenced.
231 Next is the optional \*(MS, where modified (dirty) memory can be saved
232 and later retrieved if too many demands are made on \*(MP.
233 Lastly we have \*(MV, a nearly unlimited resource serving the
234 following goals:
235
236 .nf
237 1. abstraction, free from physical memory addresses/limits
238 2. isolation, every process in a separate address space
239 3. sharing, a single mapping can serve multiple needs
240 4. flexibility, assign a virtual address to a file
241 .fi
242
243 Regardless of which of these forms memory may take, all are managed as
244 pages (typically 4096 bytes) but expressed by default in \*(We as
245 KiB (kibibyte).
246 The memory discussed under topic \[oq]2c. MEMORY Usage\[cq] deals with
247 \*(MP and the \*(MS for the system as a whole.
248 The memory reviewed in topic \[oq]3. FIELDS / Columns Display\[cq]
249 embraces all three memory types, but for individual processes.
250
251 For each such process, every memory page is restricted to a single
252 quadrant from the table below.
253 Both \*(MP and \*(MV can include any of the four, while the \*(MS only
254 includes #1 through #3.
255 The memory in quadrant #4, when modified, acts as its own dedicated \*(MS.
256
257 .nf
258 \fBPrivate\fR | \fBShared\fR
259 \fB1\fR | \fB2\fR
260 \fBAnonymous\fR . stack |
261 . malloc() |
262 . brk()/sbrk() | . POSIX shm*
263 . mmap(PRIVATE, ANON) | . mmap(SHARED, ANON)
264 -----------------------+----------------------
265 . mmap(PRIVATE, fd) | . mmap(SHARED, fd)
266 \fBFile-backed\fR . pgms/shared libs |
267 \fB3\fR | \fB4\fR
268 .fi
269
270 The following may help in interpreting process level memory values displayed
271 as scalable columns and discussed under topic \[oq]3a. DESCRIPTIONS of
272 Fields\[cq].
273
274 .nf
275 %MEM \- simply RES divided by total \*(MP
276 CODE \- the \[oq]pgms\[cq] portion of quadrant \fB3\fR
277 DATA \- the entire quadrant \fB1\fR portion of VIRT plus all
278 explicit mmap file-backed pages of quadrant \fB3\fR
279 RES \- anything occupying \*(MP which, beginning with
280 Linux-4.5, is the sum of the following three fields:
281 RSan \- quadrant \fB1\fR pages, which include any
282 former quadrant \fB3\fR pages if modified
283 RSfd \- quadrant \fB3\fR and quadrant \fB4\fR pages
284 RSsh \- quadrant \fB2\fR pages
285 RSlk \- subset of RES which cannot be swapped out (any quadrant)
286 SHR \- subset of RES (excludes \fB1\fR, includes all \fB2\fR & \fB4\fR, some \fB3\fR)
287 SWAP \- potentially any quadrant except \fB4\fR
288 USED \- simply the sum of RES and SWAP
289 VIRT \- everything in-use and/or reserved (all quadrants)
290 .fi
291
292 \*(NT Even though program images and shared libraries are considered
293 \fIprivate\fR to a process, they will be accounted for as \fIshared\fR
294 (SHR) by the kernel.
295
296 .\" ----------------------------------------------------------------------
297 .SH 1. COMMAND-LINE Options
298 .\" ----------------------------------------------------------------------
299 Mandatory\fI arguments\fR to long options are mandatory for short
300 options too.
301
302 Although not required, the equals sign can be used with either option
303 form and whitespace before and/or after the \[oq]=\[cq] is permitted.
304
305 .TP 3
306 \-\fBA\fR, \fB\-\-apply-defaults\fR
307 Run \*(We with build defaults only, ignoring all configuration files except
308 /etc/toprc.
309 This option, when specified, must be the only command line option present.
310
311 .TP 3
312 \-\fBb\fR, \fB\-\-batch\fR
313 Starts \*(We in Batch mode, which could be useful for sending output
314 from \*(We to other programs or to a file.
315 In this mode, \*(We will not accept input and runs until the iterations
316 limit you've set with the \[oq]\-n\[cq] \*(CO or until killed.
317
318 .TP 3
319 \-\fBc\fR, \fB\-\-cmdline\-toggle\fR
320 Starts \*(We with the last remembered \[oq]c\[cq] state reversed.
321 Thus, if \*(We was displaying command lines, now that field will show program
322 names, and vice versa.
323 \*(XC \[oq]c\[cq] \*(CI for additional information.
324
325 .TP 3
326 \-\fBd\fR, \fB\-\-delay\fR = \fISECS\fR [\fI.TENTHS\fR]\fR
327 Specifies the delay between screen updates, and overrides the corresponding
328 value in one's personal \*(CF or the startup default.
329 Later this can be changed with the \[oq]d\[cq] or \[oq]s\[cq] \*(CIs.
330
331 Fractional seconds are honored, but a negative number is not allowed.
332 In all cases, however, such changes are prohibited if \*(We is running
333 in Secure mode, except for root (unless the \[oq]s\[cq] \*(CO was used).
334 For additional information on Secure mode \*(Xt 6d. SYSTEM Restrictions File.
335
336 .TP 3
337 \-\fBE\fR, \fB\-\-scale-summary-mem\fR = \fIk\fR | \fIm\fR | \fIg\fR | \fIt\fR | \fIp\fR | \fIe\fR
338 Instructs \*(We to force \*(SA memory to be scaled as:
339 .nf
340 k \- kibibytes
341 m \- mebibytes
342 g \- gibibytes
343 t \- tebibytes
344 p \- pebibytes
345 e \- exbibytes
346 .fi
347
348 Later this can be changed with the \[oq]E\[cq] \*(CT.
349
350 .TP 3
351 \-\fBe\fR, \fB\-\-scale-task-mem\fR = \fIk\fR | \fIm\fR | \fIg\fR | \fIt\fR | \fIp\fR
352 Instructs \*(We to force \*(TA memory to be scaled as:
353 .nf
354 k \- kibibytes
355 m \- mebibytes
356 g \- gibibytes
357 t \- tebibytes
358 p \- pebibytes
359 .fi
360
361 Later this can be changed with the \[oq]e\[cq] \*(CT.
362
363 .TP 3
364 \-\fBH\fR, \fB\-\-threads-show\fR
365 Instructs \*(We to display individual threads.
366 Without this \*(CO a summation of all threads in each process is shown.
367 Later this can be changed with the \[oq]H\[cq] \*(CI.
368
369 .TP 3
370 \-\fBh\fR, \fB\-\-help\fR
371 Display usage help text, then quit.
372
373 .TP 3
374 \-\fBi\fR, \fB\-\-idle-toggle\fR
375 Starts \*(We with the last remembered \[oq]i\[cq] state reversed.
376 When this toggle is \*F, tasks that have not used any \*(PU since the
377 last update will not be displayed.
378 For additional information regarding this toggle
379 \*(Xt 4c. TASK AREA Commands, SIZE.
380
381 .TP 3
382 \-\fBn\fR, \fB\-\-iterations\fR = \fINUMBER\fR
383 Specifies the maximum number of iterations, or frames, \*(We should
384 produce before ending.
385
386 .TP 3
387 \-\fBO\fR, \fB\-\-list-fields\fR
388 This option acts as a form of help for the \-o option shown below.
389 It will cause \*(We to print each of the available field names on a
390 separate line, then quit.
391 Such names are subject to NLS (National Language Support) translation.
392
393 .TP 3
394 \-\fBo\fR, \fB\-\-sort-override\fR = \fIFIELDNAME\fR
395 Specifies the name of the field on which tasks will be sorted, independent
396 of what is reflected in the configuration file.
397 You can prepend a \[oq]+\[cq] or \[oq]\-\[cq] to the field name to also
398 override the sort direction.
399 A leading \[oq]+\[cq] will force sorting high to low,
400 whereas a \[oq]\-\[cq] will ensure a low to high ordering.
401
402 This option exists primarily to support automated/scripted batch mode
403 operation.
404
405 .TP 3
406 \-\fBp\fR, \fB\-\-pid\fR = \fIPIDLIST\fR \
407 (as: \fI1\fR,\fI2\fR,\fI3\fR, .\|.\|.\fR or
408 \fR-p\fI1\fR -p\fI2\fR -p\fI3\fR .\|.\|.)
409 Monitor only processes with specified process IDs.
410 However, when combined with Threads mode (\[oq]H\[cq]),
411 all processes in the thread group (\*(Xa TGID) of each monitored PID
412 will also be shown.
413
414 This option can be given up to 20 times, or you can provide a comma delimited
415 list with up to 20 pids.
416 Co-mingling both approaches is permitted.
417
418 A pid value of zero will be treated as the process id of the \*(We program
419 itself once it is running.
420
421 This is a \*(CO only and should you wish to return to normal operation,
422 it is not necessary to quit and restart \*(We \*(Em just issue any
423 of these \*(CIs: \[oq]=\[cq], \[oq]u\[cq] or \[oq]U\[cq].
424
425 The \[oq]p\[cq],
426 \[oq]u\[cq] and \[oq]U\[cq] \*(COs are mutually exclusive.
427
428 .TP 3
429 \-\fBS\fR, \fB\-\-accum-time-toggle\fR
430 Starts \*(We with the last remembered \[oq]S\[cq] state reversed.
431 When Cumulative time mode is \*O, each process is listed with the \*(Pu
432 time that it and its dead children have used.
433 \*(XC \[oq]S\[cq] \*(CI for additional information regarding this mode.
434
435 .TP 3
436 \-\fBs\fR, \fB\-\-secure-mode\fR
437 Starts \*(We with secure mode forced, even for root.
438 This mode is far better controlled through a system \*(CF
439 (\*(Xt 6. FILES).
440
441 .TP 3
442 \-\fBU\fR, \fB\-\-filter-any-user\fR = \fIUSER\fR (as: \fInumber\fR or \fIname\fR)
443 Display only processes with a user id or user name matching that given.
444 This option matches on\fI any\fR user (\fIreal\fR, \fIeffective\fR,
445 \fIsaved\fR, or \fIfilesystem\fR).
446
447 Prepending an exclamation point (\[oq]!\[cq]) to the user id or name
448 instructs \*(We to display only processes with users not matching the
449 one provided.
450
451 The \[oq]p\[cq],
452 \[oq]U\[cq] and \[oq]u\[cq] \*(COs are mutually exclusive.
453
454 .TP 3
455 \-\fBu\fR, \fB\-\-filter-only-euser\fR = \fIUSER\fR (as: \fInumber\fR or \fIname\fR)
456 Display only processes with a user id or user name matching that given.
457 This option matches on the\fI effective\fR user id only.
458
459 Prepending an exclamation point (\[oq]!\[cq]) to the user id or name
460 instructs \*(We to display only processes with users not matching the
461 one provided.
462
463 The \[oq]p\[cq],
464 \[oq]U\[cq] and \[oq]u\[cq] \*(COs are mutually exclusive.
465
466 .TP 3
467 \-\fBV\fR, \fB\-\-version\fR
468 Display version information, then quit.
469
470 .TP 3
471 \-\fBw\fR, \fB\-\-width\fR [=\fICOLUMNS\fR]
472 In Batch mode, when used without an argument \*(We will format
473 output using the COLUMNS= and LINES= environment variables, if set.
474 Otherwise, width will be fixed at the maximum \*(WX columns.
475 With an argument, output width can be decreased or increased (up to \*(WX)
476 but the number of rows is considered unlimited.
477
478 In normal display mode, when used without an argument \*(We will\fI attempt\fR
479 to format output using the COLUMNS= and LINES= environment variables, if set.
480 With an argument, output width can only be decreased, not increased.
481 Whether using environment variables or an argument with \-w, when\fI not\fR
482 in Batch mode actual terminal dimensions can never be exceeded.
483
484 \*(NT Without the use of this \*(CO, output width is always based on the
485 terminal at which \*(We was invoked whether or not in Batch mode.
486
487 .TP 3
488 \-\fB1\fR, \fB\-\-single-cpu-toggle\fR
489 Starts \*(We with the last remembered Cpu States portion of the \*(SA reversed.
490 Either all \*(Pu information will be displayed in a single line or
491 each \*(Pu will be displayed separately, depending on the state of the NUMA Node
492 \*(CT (\[oq]2\[cq]).
493
494 \*(XC \[oq]1\[cq] and \[oq]2\[cq] \*(CIs for additional information.
495
496 .\" ----------------------------------------------------------------------
497 .SH 2. SUMMARY Display
498 .\" ----------------------------------------------------------------------
499 Each of the following three areas are individually controlled through
500 one or more \*(CIs.
501 \*(XT 4b. SUMMARY AREA Commands for additional information regarding
502 these provisions.
503
504 .\" ......................................................................
505 .SS 2a. UPTIME and LOAD Averages
506 .\" ----------------------------------------------------------------------
507 This portion consists of a single line containing:
508 .nf
509 \fBprogram\fR or\fB window\fR name, depending on display mode
510 current time and length of time since last boot
511 total number of users
512 system load avg over the last 1, 5 and 15 minutes
513 .fi
514
515 .\" ......................................................................
516 .SS 2b. TASK and CPU States
517 .\" ----------------------------------------------------------------------
518 This portion consists of a minimum of two lines.
519 In an SMP environment, additional lines can reflect individual \*(PU
520 state percentages.
521
522 Line 1 shows total\fB tasks\fR or\fB threads\fR, depending on the state
523 of the Threads-mode toggle.
524 That total is further classified according to task state as follows:
525 .nf
526 displayed process status (\[oq]S\[cq])
527 --------- --------------------
528 running R
529 sleep S + any remaining
530 d-sleep D
531 stopped T + t
532 zombie Z
533 .fi
534
535 Line 2 shows \*(PU state percentages based on the interval since the
536 last refresh.
537
538 As a default, percentages for these individual categories are displayed.
539 Depending on your kernel version, the \fBst\fR field may not be shown.
540 .nf
541 \fBus\fR : time running un-niced user processes
542 \fBsy\fR : time running kernel processes
543 \fBni\fR : time running niced user processes
544 \fBid\fR : time spent in the kernel idle handler
545 \fBwa\fR : time waiting for I/O completion
546 \fBhi\fR : time spent servicing hardware interrupts
547 \fBsi\fR : time spent servicing software interrupts
548 \fBst\fR : time stolen from this vm by the hypervisor
549 .fi
550
551 Beyond the first tasks/threads line, there are alternate \*(PU display
552 modes available via the 4-way \[oq]t\[cq] \*(CT.
553 They show an abbreviated summary consisting of these elements:
554 .nf
555 \fR a \fR b \fR c \fR d
556 %Cpu(s): \fB75.0\fR/25.0 \fB100\fR[ .\|.\|. ]
557
558 .fi
559
560 Where: a) is the \[oq]user\[cq] (us + ni) percentage;
561 b) is the \[oq]system\[cq] (sy + hi + si + guests) percentage;
562 c) is the total percentage;
563 and d) is one of two visual graphs of those representations.
564 Such graphs also reflect separate \[oq]user\[cq] and \[oq]system\[cq]
565 portions.
566
567 If the \[oq]4\[cq] \*(CT is used to yield more than two cpus per line,
568 results will be further abridged eliminating the a) and b) elements.
569 However, that information is still reflected in the graph itself
570 assuming color is active or, if not, bars vs. blocks are being shown.
571
572 \*(XT 4b. SUMMARY AREA Commands for additional information on the
573 \[oq]t\[cq] and \[oq]4\[cq] \*(CTs.
574
575 .\" ......................................................................
576 .SS 2c. MEMORY Usage
577 .\" ----------------------------------------------------------------------
578 This portion consists of two lines which may express values in kibibytes (KiB)
579 through exbibytes (EiB) depending on the scaling factor enforced
580 with the \[oq]E\[cq] \*(CI. The /proc/meminfo source fields are shown in
581 parenthesis.
582
583 Line 1 reflects \*(MP, classified as:
584 .nf
585 total ( MemTotal )
586 free ( MemFree )
587 used ( MemTotal - MemAvailable )
588 buff/cache ( Buffers + Cached + SReclaimable )
589 .fi
590
591 Line 2 reflects mostly \*(MV, classified as:
592 .nf
593 total ( SwapTotal )
594 free ( SwapFree )
595 used ( SwapTotal - SwapFree )
596 avail ( MemAvailable, which is \*(MP )
597 .fi
598
599 The \fBavail\fR number on line 2 is an estimation of \*(MP available for
600 starting new applications, without swapping.
601 Unlike the \fBfree\fR field, it attempts to account for readily reclaimable
602 page cache and memory slabs.
603 It is available on kernels 3.14, emulated on kernels 2.6.27+, otherwise
604 the same as \fBfree\fR.
605
606 In the alternate memory display modes, two abbreviated summary lines
607 are shown consisting of these elements:
608 .nf
609 \fR a \fR b c
610 GiB Mem : \fB18.7\fR/15.738 [ .\|.\|. ]
611 GiB Swap: \fB 0.0\fR/7.999 [ .\|.\|. ]
612 .fi
613
614 Where: a) is the percentage used; b) is the total available; and c) is one of two
615 visual graphs of those representations.
616
617 In the case of \*(MP, the percentage represents the \fBtotal\fR minus the estimated
618 \fBavail\fR noted above.
619 The \[oq]Mem\[cq] graph itself is divided between the non-cached portion
620 of \fBused\fR and any remaining memory not otherwise accounted for by
621 \fBavail\fR.
622 \*(XT 4b. SUMMARY AREA Commands and the \[oq]m\[cq] command for
623 additional information on that special 4-way toggle.
624
625 This table may help in interpreting the scaled values displayed:
626 .nf
627 KiB = kibibyte = 1024 bytes
628 MiB = mebibyte = 1024 KiB = 1,048,576 bytes
629 GiB = gibibyte = 1024 MiB = 1,073,741,824 bytes
630 TiB = tebibyte = 1024 GiB = 1,099,511,627,776 bytes
631 PiB = pebibyte = 1024 TiB = 1,125,899,906,842,624 bytes
632 EiB = exbibyte = 1024 PiB = 1,152,921,504,606,846,976 bytes
633 .fi
634
635 .\" ----------------------------------------------------------------------
636 .SH 3. FIELDS / Columns
637 .\" ----------------------------------------------------------------------
638 .\" ......................................................................
639 .SS 3a. DESCRIPTIONS of Fields
640 .\" ----------------------------------------------------------------------
641 Listed below are \*(We's available process fields (columns).
642 They are shown in strict ascii alphabetical order.
643 You may customize their position and whether or not they are displayable
644 with the \[oq]f\[cq] (Fields Management) \*(CI.
645
646 Any field is selectable as the sort field, and you control whether they
647 are sorted high-to-low or low-to-high.
648 For additional information on sort provisions
649 \*(Xt 4c. TASK AREA Commands, SORTING.
650
651 The fields related to \*(MP or \*(MV reference \[oq](KiB)\[cq] which is
652 the unsuffixed display mode.
653 Such fields may, however, be scaled from KiB through PiB.
654 That scaling is influenced via the \[oq]e\[cq] \*(CI or established for
655 startup through a build option.
656
657 .TP 4
658 \fB%CPU \*(Em \*(PU Usage \fR
659 The task's share of the elapsed \*(PU time since the last screen update,
660 expressed as a percentage of total \*(PU time.
661
662 In a true SMP environment, if a process is multi-threaded and \*(We is
663 \fInot\fR operating in Threads mode, amounts greater than 100% may be
664 reported.
665 You toggle Threads mode with the \[oq]H\[cq] \*(CI.
666
667 Also for multi-processor environments, if Irix mode is \*F, \*(We
668 will operate in Solaris mode where a task's \*(Pu usage will be
669 divided by the total number of \*(PUs.
670 You toggle Irix/Solaris modes with the \[oq]I\[cq] \*(CI.
671
672 \*(NT When running in forest view mode (\[oq]V\[cq]) with children
673 collapsed (\[oq]v\[cq]), this field will also include the \*(PU time of
674 those unseen children.
675 \*(XT 4c. TASK AREA Commands, CONTENT for more information regarding
676 the \[oq]V\[cq] and \[oq]v\[cq] toggles.
677
678 .TP 4
679 \fB%CUC \*(Em \*(PU Utilization \fR
680 This field is identical to %CUU below, except the percentage also
681 reflects reaped child processes.
682
683 .TP 4
684 \fB%CUU \*(Em \*(PU Utilization \fR
685 A task's total \*(PU usage divided by its elapsed running time,
686 expressed as a percentage.
687
688 If a process currently displays high \*(PU usage, this field can help
689 determine if such behavior is normal.
690 Conversely, if a process has low \*(PU usage currently, %CUU may reflect
691 historically higher demands over its lifetime.
692
693 .TP 4
694 \fB%MEM \*(Em Memory Usage (RES) \fR
695 A task's currently resident share of available \*(MP.
696
697 \*(XX.
698
699 .TP 4
700 \fBAGID \*(Em Autogroup Identifier \fR
701 The autogroup identifier associated with a process.
702 This feature operates in conjunction with the CFS scheduler
703 to improve interactive desktop performance.
704
705 When /proc/sys/kernel/sched_autogroup_enabled is set, a new
706 autogroup is created with each new session (\*(Xa SID).
707 All subsequently forked processes in that session inherit membership in
708 this autogroup.
709 The kernel then attempts to equalize distribution of CPU cycles
710 across such groups.
711 Thus, an autogroup with many \*(PU intensive processes (e.g make -j)
712 will not dominate an autogroup with only one or two processes.
713
714 When -1 is displayed it means this information is not available.
715
716 .TP 4
717 \fBAGNI \*(Em Autogroup Nice Value \fR
718 The autogroup nice value which affects scheduling of all processes
719 in that group.
720 A negative nice value means higher priority, whereas a positive nice
721 value means lower priority.
722
723 .TP 4
724 \fBCGNAME \*(Em Control Group Name \fR
725 The name of the control group to which a process belongs,
726 or \[oq]\-\[cq] if not applicable for that process.
727
728 Available with cgroup v1 only, this will typically be the last entry in
729 the full list of control groups as displayed under the CGROUPS heading.
730 And as is true there, this field is also variable width.
731
732 .TP 4
733 \fBCGROUPS \*(Em Control Groups \fR
734 The names of the control group(s) to which a process belongs,
735 or \[oq]\-\[cq] if not applicable for that process.
736
737 Control Groups provide for allocating resources (cpu, memory, network
738 bandwidth, etc.) among installation-defined groups of processes.
739 They enable fine-grained control over allocating, denying, prioritizing,
740 managing and monitoring those resources.
741
742 Many different hierarchies of cgroups can exist simultaneously on a system
743 and each hierarchy is attached to one or more subsystems.
744 A subsystem represents a single resource.
745
746 \*(NT The CGROUPS field, unlike most columns, is not fixed-width.
747 When displayed, it plus any other variable width columns will be allocated
748 all remaining screen width (up to the maximum \*(WX characters).
749 Even so, such variable width fields could still suffer truncation.
750 \*(XT 5c. SCROLLING a Window for additional information on accessing
751 any truncated data.
752
753 .TP 4
754 \fBCLS \*(Em Scheduling Class \fR
755 The task's current scheduling policy which can be one of:
756 \fB- \fR = not reported
757 \fBTS \fR = SCHED_OTHER
758 \fBFF \fR = SCHED_FIFO
759 \fBRR \fR = SCHED_RR
760 \fBB \fR = SCHED_BATCH
761 \fBISO\fR = SCHED_ISO
762 \fBIDL\fR = SCHED_IDLE
763 \fBDLN\fR = SCHED_DEADLINE
764 \fB? \fR = unknown value
765
766 .TP 4
767 \fBCODE \*(Em Code Size (KiB) \fR
768 The amount of \*(MP currently devoted to executable code, also known
769 as the Text Resident Set size or TRS.
770
771 \*(XX.
772
773 .TP 4
774 \fBCOMMAND \*(Em Command\fB Name\fR or Command\fB Line \fR
775 Display the command line used to start a task or the name of the associated
776 program.
777 You toggle between command\fI line\fR and\fI name\fR with \[oq]c\[cq],
778 which is both a \*(CO and an \*(CI.
779
780 When you've chosen to display command lines, processes without a command
781 line (like kernel threads) will be shown with only the program name in
782 brackets, as in this example:
783 \fR[kthreadd]
784
785 This field may also be impacted by the forest view display mode.
786 \*(XC \[oq]V\[cq] \*(CI for additional information regarding that mode.
787
788 \*(NT The COMMAND field, unlike most columns, is not fixed-width.
789 When displayed, it plus any other variable width columns will be allocated
790 all remaining screen width (up to the maximum \*(WX characters).
791 Even so, such variable width fields could still suffer truncation.
792 This is especially true for this field when command lines are being
793 displayed (the \[oq]c\[cq] \*(CI.)
794 \*(XT 5c. SCROLLING a Window for additional information on accessing
795 any truncated data.
796
797 .TP 4
798 \fBDATA \*(Em Data + Stack Size (KiB) \fR
799 The amount of private memory \fIreserved\fR by a process.
800 It is also known as the Data Resident Set or DRS.
801 Such memory may not yet be mapped to \*(MP (RES) but will always be
802 included in the \*(MV (VIRT) amount.
803
804 \*(XX.
805
806 .TP 4
807 \fBDocker\*(Em Docker Container ID \fR
808 The identity (abbreviated hash) of the docker container within which a task
809 is running.
810 If a process is not running inside a container,
811 a dash (\[oq]\-\[cq]) will be shown.
812
813 .TP 4
814 \fBELAPSED \*(Em Elapsed Running Time\fR
815 The length of time since a process was started.
816 Thus, the most recently started task will display the smallest time interval.
817
818 The value will be expressed as \[oq]HH,MM\[cq]
819 (hours,minutes)
820 but is subject to additional scaling if the interval becomes too great
821 to fit column width.
822 At that point it will be scaled to \[oq]DD+HH\[cq]
823 (days+hours)
824 and possibly beyond.
825
826 .TP 4
827 \fBENVIRON \*(Em Environment variables \fR
828 Display all of the environment variables, if any, as seen by the
829 respective processes.
830 These variables will be displayed in their raw native order,
831 not the sorted order you are accustomed to seeing with an unqualified
832 \[oq]set\[cq].
833
834 \*(NT The ENVIRON field, unlike most columns, is not fixed-width.
835 When displayed, it plus any other variable width columns will be allocated
836 all remaining screen width (up to the maximum \*(WX characters).
837 Even so, such variable width fields could still suffer truncation.
838 This is especially true for this field.
839 \*(XT 5c. SCROLLING a Window for additional information on accessing
840 any truncated data.
841
842 .TP 4
843 \fBEXE \*(Em Executable Path \fR
844 Where available, this is the full path to the executable,
845 including the program name.
846
847 \*(NT The EXE field, unlike most columns, is not fixed-width.
848 When displayed, it plus any other variable width columns will be allocated
849 all remaining screen width (up to the maximum \*(WX characters).
850
851 .TP 4
852 \fBFlags \*(Em Task Flags \fR
853 This column represents the task's current scheduling flags which are
854 expressed in hexadecimal notation and with zeros suppressed.
855 These flags are officially documented in <linux/sched.h>.
856
857 .TP 4
858 \fBGID \*(Em Group Id \fR
859 The\fI effective\fR group ID.
860
861 .TP 4
862 \fBGROUP \*(Em Group Name \fR
863 The\fI effective\fR group name.
864
865 .TP 4
866 \fBLOGID \*(Em Login User Id \fR
867 The user ID used at\fI login\fR.
868 When -1 is displayed it means this information is not available.
869
870 .TP 4
871 \fBLXC \*(Em Lxc Container Name \fR
872 The name of the lxc container within which a task is running.
873 If a process is not running inside a container,
874 a dash (\[oq]\-\[cq]) will be shown.
875
876 .TP 4
877 \fBNI \*(Em Nice Value \fR
878 The nice value of the task.
879 A negative nice value means higher priority, whereas a positive nice value
880 means lower priority.
881 Zero in this field simply means priority will not be adjusted in determining
882 a task's dispatch-ability.
883
884 \*(NT This value only affects scheduling priority relative to other processes
885 in the same autogroup.
886 \*(XC \[oq]AGID\[cq] and \[oq]AGNI\[cq] fields for additional
887 information on autogroups.
888
889 .TP 4
890 \fBNU \*(Em Last known NUMA node \fR
891 A number representing the NUMA node associated with the last used
892 processor (\[oq]P\[cq]).
893 When -1 is displayed it means that NUMA information is not available.
894
895 \*(XC \[oq]2\[cq] and \[oq]3\[cq] \*(CIs for additional NUMA provisions
896 affecting the \*(SA.
897
898 .TP 4
899 \fBOOMa \*(Em Out of Memory Adjustment Factor \fR
900 The value, ranging from -1000 to +1000, added to the current out of memory
901 score (OOMs) which is then used to determine which task to kill when memory
902 is exhausted.
903
904 .TP 4
905 \fBOOMs \*(Em Out of Memory Score \fR
906 The value, ranging from 0 to +1000, used to select task(s) to kill when memory
907 is exhausted.
908 Zero translates to \[oq]never kill\[cq] whereas 1000 means \[oq]always
909 kill\[cq].
910
911 .TP 4
912 \fBP \*(Em Last used \*(PU (SMP) \fR
913 A number representing the last used processor.
914 In a true SMP environment this will likely change frequently since the kernel
915 intentionally uses weak affinity.
916 Also, the very act of running \*(We may break this weak affinity and cause more
917 processes to change \*(PUs more often (because of the extra demand for
918 \*(Pu time).
919
920 .TP 4
921 \fBPGRP \*(Em Process Group Id \fR
922 Every process is member of a unique process group which is used for
923 distribution of signals and by terminals to arbitrate requests for their
924 input and output.
925 When a process is created (forked), it becomes a member of the process
926 group of its parent.
927 By convention, this value equals the process ID (\*(Xa PID) of the first
928 member of a process group, called the process group leader.
929
930 .TP 4
931 \fBPID \*(Em Process Id \fR
932 The task's unique process ID, which periodically wraps, though never
933 restarting at zero.
934 In kernel terms, it is a dispatchable entity defined by a task_struct.
935
936 This value may also be used as: a process group ID (\*(Xa PGRP);
937 a session ID for the session leader (\*(Xa SID);
938 a thread group ID for the thread group leader (\*(Xa TGID);
939 and a TTY process group ID for the process group leader (\*(Xa TPGID).
940
941 .TP 4
942 \fBPPID \*(Em Parent Process Id \fR
943 The process ID (pid) of a task's parent.
944
945 .TP 4
946 \fBPR \*(Em Priority \fR
947 The scheduling priority of the task.
948 If you see \[oq]rt\[cq] in this field, it means the task is running
949 under real time scheduling priority.
950
951 Under linux, real time priority is somewhat misleading since traditionally
952 the operating itself was not preemptible.
953 And while the 2.6 kernel can be made mostly preemptible, it is not always so.
954
955 .TP 4
956 \fBPSS \*(Em Proportional Resident Memory, smaps (KiB) \fR
957 The proportion of this task's share of \[oq]RSS\[cq] where each page is
958 divided by the number of processes sharing it.
959 It is also the sum of the \[oq]PSan\[cq],
960 \[oq]PSfd\[cq] and \[oq]PSsh\[cq] fields.
961
962 For example,
963 if a process has 1000 resident pages alone and 1000 resident pages
964 shared with another process,
965 its \[oq]PSS\[cq] would be 1500 (times page size).
966
967 \*(ZX.
968
969 .PP
970 \fBPSan \*(Em Proportional Anonymous Memory, smaps (KiB) \fR
971 .br
972 \fBPSfd \*(Em Proportional File Memory, smaps (KiB) \fR
973 .br
974 \fBPSsh \*(Em Proportional Shmem Memory, smaps (KiB) \fR
975 .RS 4
976 As was true for \[oq]PSS\[cq] above
977 (total proportional resident memory),
978 these fields represent the proportion of this task's share of each type
979 of memory divided by the number of processes sharing it.
980
981 \*(ZX.
982 .RE
983
984 .TP 4
985 \fBRES \*(Em Resident Memory Size (KiB) \fR
986 A subset of the virtual address space (VIRT) representing the non-swapped
987 \*(MP a task is currently using.
988 It is also the sum of the \[oq]RSan\[cq],
989 \[oq]RSfd\[cq] and \[oq]RSsh\[cq] fields.
990
991 It can include private anonymous pages, private pages mapped to files
992 (including program images and shared libraries) plus shared anonymous pages.
993 All such memory is backed by the \*(MS represented separately under SWAP.
994
995 Lastly, this field may also include shared file-backed pages which, when
996 modified, act as a dedicated \*(MS and thus will never impact SWAP.
997
998 \*(XX.
999
1000 .TP 4
1001 \fBRSS \*(Em Resident Memory, smaps (KiB) \fR
1002 Another, more precise view of process non-swapped \*(MP.
1003 It is obtained from the \[oq]smaps_rollup\[cq] file and is
1004 generally slightly larger than that shown for \[oq]RES\[cq].
1005
1006 \*(ZX.
1007
1008 .TP 4
1009 \fBRSan \*(Em Resident Anonymous Memory Size (KiB) \fR
1010 A subset of resident memory (RES) representing private pages not
1011 mapped to a file.
1012
1013 .TP 4
1014 \fBRSfd \*(Em Resident File-Backed Memory Size (KiB) \fR
1015 A subset of resident memory (RES) representing the implicitly shared
1016 pages supporting program images and shared libraries.
1017 It also includes explicit file mappings, both private and shared.
1018
1019 .TP 4
1020 \fBRSlk \*(Em Resident Locked Memory Size (KiB) \fR
1021 A subset of resident memory (RES) which cannot be swapped out.
1022
1023 .TP 4
1024 \fBRSsh \*(Em Resident Shared Memory Size (KiB) \fR
1025 A subset of resident memory (RES) representing the explicitly shared
1026 anonymous shm*/mmap pages.
1027
1028 .TP 4
1029 \fBRUID \*(Em Real User Id \fR
1030 The\fI real\fR user ID.
1031
1032 .TP 4
1033 \fBRUSER \*(Em Real User Name \fR
1034 The\fI real\fR user name.
1035
1036 .TP 4
1037 \fBS \*(Em Process Status \fR
1038 The status of the task which can be one of:
1039 \fBD\fR = uninterruptible sleep
1040 \fBI\fR = idle
1041 \fBR\fR = running
1042 \fBS\fR = sleeping
1043 \fBT\fR = stopped by job control signal
1044 \fBt\fR = stopped by debugger during trace
1045 \fBZ\fR = zombie
1046
1047 Tasks shown as running should be more properly thought of as ready to run
1048 \*(Em their task_struct is simply represented on the Linux run-queue.
1049 Even without a true SMP machine, you may see numerous tasks in this state
1050 depending on \*(We's delay interval and nice value.
1051
1052 .TP 4
1053 \fBSHR \*(Em Shared Memory Size (KiB) \fR
1054 A subset of resident memory (RES) that may be used by other processes.
1055 It will include shared anonymous pages and shared file-backed pages.
1056 It also includes private pages mapped to files representing
1057 program images and shared libraries.
1058
1059 \*(XX.
1060
1061 .TP 4
1062 \fBSID \*(Em Session Id \fR
1063 A session is a collection of process groups (\*(Xa PGRP),
1064 usually established by the login shell.
1065 A newly forked process joins the session of its creator.
1066 By convention, this value equals the process ID (\*(Xa PID) of the first
1067 member of the session, called the session leader, which is usually the
1068 login shell.
1069
1070 .TP 4
1071 \fBSTARTED \*(Em Start Time Interval\fR
1072 The length of time since system boot when a process started.
1073 Thus, the most recently started task will display the largest time interval.
1074
1075 The value will be expressed as \[oq]MM:SS\[cq] (minutes:seconds).
1076 But if the interval is too great to fit column width it will be scaled
1077 as \[oq]HH,MM\[cq] (hours,minutes) and possibly beyond.
1078
1079 .TP 4
1080 \fBSUID \*(Em Saved User Id \fR
1081 The\fI saved\fR user ID.
1082
1083 .TP 4
1084 \fBSUPGIDS \*(Em Supplementary Group IDs \fR
1085 The IDs of any supplementary group(s) established at login or
1086 inherited from a task's parent.
1087 They are displayed in a comma delimited list.
1088
1089 \*(NT The SUPGIDS field, unlike most columns, is not fixed-width.
1090 When displayed, it plus any other variable width columns will be allocated
1091 all remaining screen width (up to the maximum \*(WX characters).
1092
1093 .TP 4
1094 \fBSUPGRPS \*(Em Supplementary Group Names \fR
1095 The names of any supplementary group(s) established at login or
1096 inherited from a task's parent.
1097 They are displayed in a comma delimited list.
1098
1099 \*(NT The SUPGRPS field, unlike most columns, is not fixed-width.
1100 When displayed, it plus any other variable width columns will be allocated
1101 all remaining screen width (up to the maximum \*(WX characters).
1102
1103 .TP 4
1104 \fBSUSER \*(Em Saved User Name \fR
1105 The\fI saved\fR user name.
1106
1107 .TP 4
1108 \fBSWAP \*(Em Swapped Size (KiB) \fR
1109 The formerly resident portion of a task's address space written
1110 to the \*(MS when \*(MP becomes over committed.
1111
1112 \*(XX.
1113
1114 .TP 4
1115 \fBTGID \*(Em Thread Group Id \fR
1116 The ID of the thread group to which a task belongs.
1117 It is the PID of the thread group leader.
1118 In kernel terms, it represents those tasks that share an mm_struct.
1119
1120 .TP 4
1121 \fBTIME \*(Em \*(PU Time \fR
1122 Total \*(PU time the task has used since it started.
1123 When Cumulative mode is \*O, each process is listed with the \*(Pu
1124 time that it and its dead children have used.
1125 You toggle Cumulative mode with \[oq]S\[cq],
1126 which is both a \*(CO and an \*(CI.
1127 \*(XC \[oq]S\[cq] \*(CI for additional information regarding this mode.
1128
1129 .TP 4
1130 \fBTIME+ \*(Em \*(PU Time, hundredths \fR
1131 The same as TIME, but reflecting more granularity through hundredths
1132 of a second.
1133
1134 .TP 4
1135 \fBTPGID \*(Em Tty Process Group Id \fR
1136 The process group ID of the foreground process for the connected tty,
1137 or \-1 if a process is not connected to a terminal.
1138 By convention, this value equals the process ID (\*(Xa PID) of the
1139 process group leader (\*(Xa PGRP).
1140
1141 .TP 4
1142 \fBTTY \*(Em Controlling Tty \fR
1143 The name of the controlling terminal.
1144 This is usually the device (serial port, pty, etc.) from which the
1145 process was started, and which it uses for input or output.
1146 However, a task need not be associated with a terminal, in which case
1147 you'll see \[oq]?\[cq] displayed.
1148
1149 .TP 4
1150 \fBUID \*(Em User Id \fR
1151 The\fI effective\fR user ID of the task's owner.
1152
1153 .TP 4
1154 \fBUSED \*(Em Memory in Use (KiB) \fR
1155 This field represents the non-swapped \*(MP a task is using (RES) plus
1156 the swapped out portion of its address space (SWAP).
1157
1158 \*(XX.
1159
1160 .TP 4
1161 \fBUSER \*(Em User Name \fR
1162 The\fI effective\fR user name of the task's owner.
1163
1164 .TP 4
1165 \fBUSS \*(Em Unique Set Size \fR
1166 The non-swapped portion of \*(MP (\[oq]RSS\[cq]) not shared with
1167 any other process.
1168 It is derived from the \[oq]smaps_rollup\[cq] file.
1169
1170 \*(ZX.
1171
1172 .TP 4
1173 \fBVIRT \*(Em Virtual Memory Size (KiB) \fR
1174 The total amount of \*(MV used by the task.
1175 It includes all code, data and shared libraries plus pages that have been
1176 swapped out and pages that have been mapped but not used.
1177
1178 \*(XX.
1179
1180 .TP 4
1181 \fBWCHAN \*(Em Sleeping in Function \fR
1182 This field will show the name of the kernel function in which the task
1183 is currently sleeping.
1184 Running tasks will display a dash (\[oq]\-\[cq]) in this column.
1185
1186 .TP 4
1187 \fBioR \*(Em I/O Bytes Read \fR
1188 The number of bytes a process caused to be fetched from the storage layer.
1189
1190 Root privileges are required to display \[oq]io\[cq] data for other
1191 users.
1192
1193 .TP 4
1194 \fBioRop \*(Em I/O Read Operations \fR
1195 The number of read I/O operations (syscalls) for a process.
1196 Such calls might not result in actual physical disk I/O.
1197
1198 .TP 4
1199 \fBioW \*(Em I/O Bytes Written \fR
1200 The number of bytes a process caused to be sent to the storage layer.
1201
1202 .TP 4
1203 \fBioWop \*(Em I/O Write Operations \fR
1204 The number of write I/O operations (syscalls) for a process.
1205 Such calls might not result in actual physical disk I/O.
1206
1207 .TP 4
1208 \fBnDRT \*(Em Dirty Pages Count \fR
1209 The number of pages that have been modified since they were last
1210 written to \*(AS.
1211 Dirty pages must be written to \*(AS before the corresponding physical
1212 memory location can be used for some other virtual page.
1213
1214 This field was deprecated with linux 2.6 and is always zero.
1215
1216 .TP 4
1217 \fBnFD \*(Em Number of File Descriptors \fR
1218 The total number of open files associated with a process.
1219
1220 .TP 4
1221 \fBnMaj \*(Em Major Page Fault Count \fR
1222 The number of\fB major\fR page faults that have occurred for a task.
1223 A page fault occurs when a process attempts to read from or write to a
1224 virtual page that is not currently present in its address space.
1225 A major page fault is when \*(AS access is involved in making that
1226 page available.
1227
1228 .TP 4
1229 \fBnMin \*(Em Minor Page Fault count \fR
1230 The number of\fB minor\fR page faults that have occurred for a task.
1231 A page fault occurs when a process attempts to read from or write to a
1232 virtual page that is not currently present in its address space.
1233 A minor page fault does not involve \*(AS access in making that
1234 page available.
1235
1236 .TP 4
1237 \fBnTH \*(Em Number of Threads \fR
1238 The number of threads associated with a process.
1239
1240 .TP 4
1241 \fBnsCGROUP \*(Em CGROUP namespace \fR
1242 The Inode of the namespace used to hide the identity of the control group of
1243 which process is a member.
1244
1245 .TP 4
1246 \fBnsIPC \*(Em IPC namespace \fR
1247 The Inode of the namespace used to isolate interprocess communication (IPC)
1248 resources such as System V IPC objects and POSIX message queues.
1249
1250 .TP 4
1251 \fBnsMNT \*(Em MNT namespace \fR
1252 The Inode of the namespace used to isolate filesystem mount points thus
1253 offering different views of the filesystem hierarchy.
1254
1255 .TP 4
1256 \fBnsNET \*(Em NET namespace \fR
1257 The Inode of the namespace used to isolate resources such as network devices,
1258 IP addresses, IP routing, port numbers, etc.
1259
1260 .TP 4
1261 \fBnsPID \*(Em PID namespace \fR
1262 The Inode of the namespace used to isolate process ID numbers
1263 meaning they need not remain unique.
1264 Thus,
1265 each such namespace could have its own \[oq]init/systemd\[cq] (PID #1)
1266 to manage various initialization tasks and reap orphaned child
1267 processes.
1268
1269 .TP 4
1270 \fBnsTIME \*(Em TIME namespace \fR
1271 The Inode of the namespace which allows processes to see different system
1272 times in a way similar to the UTS namespace.
1273
1274 .TP 4
1275 \fBnsUSER \*(Em USER namespace \fR
1276 The Inode of the namespace used to isolate the user and group ID numbers.
1277 Thus, a process could have a normal unprivileged user ID outside a user
1278 namespace while having a user ID of 0, with full root privileges, inside
1279 that namespace.
1280
1281 .TP 4
1282 \fBnsUTS \*(Em UTS namespace \fR
1283 The Inode of the namespace used to isolate hostname and NIS domain name.
1284 UTS simply means "Unix Time-sharing System".
1285
1286 .TP 4
1287 \fBvMj \*(Em Major Page Fault Count Delta\fR
1288 The number of\fB major\fR page faults that have occurred since the
1289 last update (see nMaj).
1290
1291 .TP 4
1292 \fBvMn \*(Em Minor Page Fault Count Delta\fR
1293 The number of\fB minor\fR page faults that have occurred since the
1294 last update (see nMin).
1295
1296 .\" ......................................................................
1297 .SS 3b. MANAGING Fields
1298 .\" ----------------------------------------------------------------------
1299 After pressing the \*(CI \[oq]f\[cq] (Fields Management) you will be
1300 presented with a screen showing:
1301 1) the \*(CW name;
1302 2) the designated sort field;
1303 3) all fields in their current order along with descriptions.
1304 Entries marked with an asterisk are the currently displayed fields,
1305 screen width permitting.
1306
1307 .RS +4
1308 .IP \(bu 3
1309 As the on screen instructions indicate, you navigate among the fields with
1310 the\fB Up\fR and\fB Down\fR \*(KAs.
1311 The PgUp, PgDn, Home and End keys can also be used to quickly reach the
1312 first or last available field.
1313
1314 .IP \(bu 3
1315 The\fB Right\fR \*(KA selects a field for repositioning and
1316 the\fB Left\fR \*(KA or the <\fBEnter\fR> key commits that field's
1317 placement.
1318
1319 .IP \(bu 3
1320 The \[oq]\fBd\fR\[cq] key or the <\fBSpace\fR> bar toggles a field's
1321 display status,
1322 and thus the presence or absence of the asterisk.
1323
1324 .IP \(bu 3
1325 The \[oq]\fBs\fR\[cq] key designates a field as the sort field.
1326 \*(XT 4c. TASK AREA Commands, SORTING for additional information regarding
1327 your selection of a sort field.
1328
1329 .IP \(bu 3
1330 The \[oq]\fBa\fR\[cq] and \[oq]\fBw\fR\[cq] keys can be used to cycle
1331 through all available windows and the \[oq]\fBq\fR\[cq] or <\fBEsc\fR>
1332 keys exit Fields Management.
1333 .RS -4
1334
1335 .PP
1336 The Fields Management screen can also be used to change the \*(CG in
1337 either \*(FM or \*(AM.
1338 Whatever was targeted when \[oq]q\[cq] or <Esc> was pressed will be made
1339 current as you return to the \*(We display.
1340 \*(XT 5. ALTERNATE\-DISPLAY Provisions and the \[oq]g\[cq] \*(CI for
1341 insight into \*(CWs and \*(FGs.
1342
1343 .PP
1344 \*(NT Any window that has been scrolled\fI horizontally\fR will be reset if any
1345 field changes are made via the Fields Management screen.
1346 Any\fI vertical\fR scrolled position, however, will not be affected.
1347 \*(XT 5c. SCROLLING a Window for additional information regarding vertical
1348 and horizontal scrolling.
1349
1350 .\" ----------------------------------------------------------------------
1351 .SH 4. INTERACTIVE Commands
1352 .\" ----------------------------------------------------------------------
1353 Listed below is a brief index of commands within categories.
1354 Some commands appear more than once \*(Em their meaning or scope may vary
1355 depending on the context in which they are issued.
1356
1357 .nf
1358 4a.\fI Global-Commands \fR
1359 <Ent/Sp> ?, =, 0,
1360 A, B, d, E, e, g, H, h, I, k, q, r, s, W, X, Y, Z,
1361 ^E, ^R
1362 4b.\fI Summary-Area-Commands \fR
1363 C, l, t, m, 1, 2, 3, 4, 5, !, ^
1364 4c.\fI Task-Area-Commands \fR
1365 Appearance: b, J, j, x, y, z
1366 Content: c, F, f, O, o, S, U, u, V, v
1367 Size: #, i, n
1368 Sorting: <, >, f, R
1369 4d.\fI Bottom-Window-Commands \fR
1370 ^A, ^G, ^K, ^L, ^N, ^P, ^U, Tab, Shift+Tab
1371 4e.\fI Color-Mapping \fR
1372 <Ret>, a, B, b, H, M, q, S, T, w, z, @, 0 \- 7
1373 5b.\fI Commands-for-Windows \fR
1374 \-, _, =, +, A, a, G, g, w
1375 5c.\fI Scrolling-a-Window \fR
1376 C, Up, Dn, Left, Right, PgUp, PgDn, Home, End
1377 5d.\fI Searching-in-a-Window \fR
1378 L, &
1379 5e.\fI Filtering-in-a-Window \fR
1380 O, o, ^O, =, +
1381 .fi
1382
1383 .\" ......................................................................
1384 .SS 4a. GLOBAL Commands
1385 .\" ----------------------------------------------------------------------
1386 The global \*(CIs are\fB always\fR available\fR in both \*(FM and \*(AM.
1387 However, some of these \*(CIs are\fB not available\fR when running
1388 in Secure mode.
1389
1390 If you wish to know in advance whether or not your \*(We has been
1391 secured, simply ask for help and view the system summary on the second
1392 line.
1393
1394 .TP 7
1395 \ \ <\fBEnter\fR> or <\fBSpace\fR>\ \ :\fIRefresh-Display \fR
1396 These commands awaken \*(We and following receipt of any input
1397 the entire display will be repainted.
1398 They also force an update of any hotplugged \*(Pu or \*(MP changes.
1399
1400 Use either of these keys if you have a large delay interval and wish
1401 to see current status,
1402
1403 .TP 7
1404 \ \ \ \fB?\fR | \fBh\fR\ \ :\fIHelp \fR
1405 There are two help levels available.
1406 The first will provide a reminder of all the basic \*(CIs.
1407 If \*(We is\fI secured\fR, that screen will be abbreviated.
1408
1409 Typing \[oq]h\[cq] or \[oq]?\[cq] on the primary help screen will take you to
1410 help for specialize keys.
1411 \*(XT 4d. BOTTOM WINDOW Commands for additional information.
1412
1413 Typing \[oq]H\[cq] on the primary help screen will take you to
1414 help for those \*(CIs applicable to \*(AM.
1415 \*(XT 5. ALTERNATE-DISPLAY Provisions for additional information.
1416
1417 .TP 7
1418 \ \ \ \fB=\fR\ \ :\fIExit-Display-Limits \fR
1419 Removes restrictions on what is shown.
1420 This command will reverse any \[oq]i\[cq] (idle tasks),
1421 \[oq]n\[cq] (max tasks),
1422 \[oq]v\[cq] (hide children) and \[oq]F\[cq] focus commands that might be
1423 active.
1424 It also provides for an exit from PID monitoring, User filtering,
1425 Other filtering, Locate processing and Combine Cpus mode.
1426
1427 Additionally, if the window has been scrolled it will be reset with
1428 this command.
1429
1430 .TP 7
1431 \ \ \ \fB0\fR\ \ :\fIZero-Suppress\fR toggle \fR
1432 This command determines whether zeros are shown or suppressed for many
1433 of the fields in a \*(TW.
1434 Fields like UID, GID, NI, PR or P are not affected by this toggle.
1435
1436 .TP 7
1437 \ \ \ \fBA\fR\ \ :\fIAlternate-Display-Mode\fR toggle \fR
1438 This command will switch between \*(FM and \*(AM.
1439 \*(XT 5. ALTERNATE\-DISPLAY Provisions and the \[oq]g\[cq] \*(CI for
1440 insight into \*(CWs and \*(FGs.
1441
1442 .TP 7
1443 \ \ \ \fBB\fR\ \ :\fIBold-Disable/Enable\fR toggle \fR
1444 This command will influence use of the bold terminfo capability and
1445 alters\fB both\fR the \*(SA and \*(TA for the \*(CW.
1446 While it is intended primarily for use with dumb terminals, it can be
1447 applied anytime.
1448
1449 \*(NT When this toggle is \*O and \*(We is operating in monochrome mode,
1450 the\fB entire display\fR will appear as normal text.
1451 Thus,
1452 unless the \[oq]x\[cq] and/or \[oq]y\[cq] toggles are using reverse for
1453 emphasis,
1454 there will be no visual confirmation that they are even on.
1455
1456 .TP 7
1457 *\ \ \fBd\fR | \fBs\fR\ \ :\fIChange-Delay-Time-interval \fR
1458 You will be prompted to enter the delay time, in seconds, between
1459 display updates.
1460
1461 Fractional seconds are honored, but a negative number is not allowed.
1462 Entering 0 causes (nearly) continuous updates, with an unsatisfactory
1463 display as the system and tty driver try to keep up with \*(We's demands.
1464 The delay value is inversely proportional to system loading,
1465 so set it with care.
1466
1467 If at any time you wish to know the current delay time, simply ask for
1468 help and view the system summary on the second line.
1469
1470 .TP 7
1471 \ \ \ \fBE\fR\ \ :\fIEnforce-Summary-Memory-Scale\fR in Summary Area
1472 With this command you can cycle through the available \*(SA memory scaling
1473 which ranges from KiB (kibibytes or 1,024 bytes) through EiB (exbibytes or
1474 1,152,921,504,606,846,976 bytes).
1475
1476 If you see a \[oq]+\[cq] between a displayed number and the following
1477 label,
1478 it means that \*(We was forced to truncate some portion of that number.
1479 By raising the scaling factor, such truncation can be avoided.
1480
1481 .TP 7
1482 \ \ \ \fBe\fR\ \ :\fIEnforce-Task-Memory-Scale\fR in Task Area
1483 With this command you can cycle through the available \*(TA memory scaling
1484 which ranges from KiB (kibibytes or 1,024 bytes) through PiB (pebibytes or
1485 1,125,899,906,842,624 bytes).
1486
1487 While \*(We will try to honor the selected target range, additional
1488 scaling might still be necessary in order to accommodate current values.
1489 If you wish to see a more homogeneous result in the memory columns,
1490 raising the scaling range will usually accomplish that goal.
1491 Raising it too high, however, is likely to produce an all zero result
1492 which cannot be suppressed with the \[oq]0\[cq] \*(CI.
1493
1494 .TP 7
1495 \ \ \ \fBg\fR\ \ :\fIChoose-Another-Window/Field-Group \fR
1496 You will be prompted to enter a number between 1 and 4 designating the
1497 \*(FG which should be made the \*(CW.
1498 You will soon grow comfortable with these 4 windows, especially after
1499 experimenting with \*(AM.
1500
1501 .TP 7
1502 \ \ \ \fBH\fR\ \ :\fIThreads-mode\fR toggle \fR
1503 When this toggle is \*O, individual threads will be displayed for all
1504 processes in all visible \*(TWs.
1505 Otherwise, \*(We displays a summation of all threads in each process.
1506
1507 .TP 7
1508 \ \ \ \fBI\fR\ \ :\fIIrix/Solaris-Mode\fR toggle \fR
1509 When operating in Solaris mode
1510 (\[oq]I\[cq] toggled \*F),
1511 a task's \*(Pu usage will be divided by the total number of \*(PUs.
1512 After issuing this command, you'll be told the new state of this toggle.
1513
1514 .TP 7
1515 *\ \ \fBk\fR\ \ :\fIKill-a-task \fR
1516 You will be prompted for a PID and then the signal to send.
1517
1518 Entering no PID or a negative number will be interpreted as
1519 the default shown in the prompt (the first task displayed).
1520 A PID value of zero means the \*(We program itself.
1521
1522 The default signal, as reflected in the prompt, is SIGTERM.
1523 However, you can send any signal, via number or name.
1524
1525 If you wish to abort the kill process, do one of the following
1526 depending on your progress:
1527 .nf
1528 1) at the pid prompt, type an invalid number
1529 2) at the signal prompt, type 0 (or any invalid signal)
1530 3) at any prompt, type <Esc>
1531 .fi
1532
1533 .TP 7
1534 \ \ \ \fBq\fR\ \ :\fIQuit \fR
1535
1536 .TP 7
1537 *\ \ \fBr\fR\ \ :\fIRenice-a-Task \fR
1538 You will be prompted for a PID and then the value to nice it to.
1539
1540 Entering no PID or a negative number will be interpreted as
1541 the default shown in the prompt (the first task displayed).
1542 A PID value of zero means the \*(We program itself.
1543
1544 A positive nice value will cause a process to lose priority.
1545 Conversely, a negative nice value will cause a process to be viewed
1546 more favorably by the kernel.
1547 As a general rule, ordinary users can only increase the nice value
1548 and are prevented from lowering it.
1549
1550 If you wish to abort the renice process, do one of the following
1551 depending on your progress:
1552 .nf
1553 1) at the pid prompt, type an invalid number
1554 2) at the nice prompt, type <Enter> with no input
1555 3) at any prompt, type <Esc>
1556 .fi
1557
1558 .TP 7
1559 \ \ \ \fBW\fR\ \ :\fIWrite-the-Configuration-File \fR
1560 This will save all of your options and toggles plus the current
1561 display mode and delay time.
1562 By issuing this command just before quitting \*(We, you will be able
1563 restart later in exactly that same state.
1564
1565 .TP 7
1566 \ \ \ \fBX\fR\ \ :\fIExtra-Fixed-Width \fR
1567 Some fields are fixed width and not scalable.
1568 As such, they are subject to truncation which would be indicated
1569 by a \[oq]+\[cq] in the last position.
1570
1571 This \*(CI can be used to alter the widths of the following fields:
1572
1573 .nf
1574 \fI field default field default field default \fR
1575 GID 5 Docker 8 WCHAN 10
1576 LOGID 5 GROUP 8 nsCGROUP 10
1577 RUID 5 LXC 8 nsIPC 10
1578 SUID 5 RUSER 8 nsMNT 10
1579 UID 5 SUSER 8 nsNET 10
1580 TTY 8 nsPID 10
1581 USER 8 nsTIME 10
1582 nsUSER 10
1583 nsUTS 10
1584 .fi
1585
1586 You will be prompted for the amount to be added to the default
1587 widths shown above.
1588 Entering zero forces a return to those defaults.
1589
1590 If you enter a negative number, \*(We will automatically increase
1591 the column size as needed until there is no more truncated data.
1592
1593 \*(NT Whether explicitly or automatically increased, the widths for
1594 these fields are never decreased by \*(We.
1595 To narrow them you must specify a smaller number or restore the defaults.
1596
1597 .TP 7
1598 \ \ \ \fBY\fR\ \ :\fIInspect-Other-Output \fR
1599 After issuing the \[oq]Y\[cq] \*(CI,
1600 you will be prompted for a target PID.
1601 Typing a value or accepting the default results in a separate screen.
1602 That screen can be used to view a variety of files or piped command output
1603 while the normal \*(We iterative display is paused.
1604
1605 \*(NT This \*(CI is only fully realized when supporting entries have been
1606 manually added to the end of the \*(We \*(CF.
1607 For details on creating those entries, \*(Xt 6b. ADDING INSPECT Entries.
1608
1609 Most of the keys used to navigate the Inspect feature are reflected in
1610 its header prologue.
1611 There are, however, additional keys available once you have selected a
1612 particular file or command.
1613 They are familiar to anyone who has used the pager \[oq]less\[cq] and
1614 are summarized here for future reference.
1615
1616 .nf
1617 \fI key function \fR
1618 = alternate status\-line, file or pipeline
1619 / find, equivalent to \[oq]L\[cq] locate
1620 n find next, equivalent to \[oq]&\[cq] locate next
1621 <Space> scroll down, equivalent to <PgDn>
1622 b scroll up, equivalent to <PgUp>
1623 g first line, equivalent to <Home>
1624 G last line, equivalent to <End>
1625 .fi
1626
1627 .TP 7
1628 \ \ \ \fBZ\fR\ \ :\fIChange-Color-Mapping \fR
1629 This key will take you to a separate screen where you can change the
1630 colors for the \*(CW, or for all windows.
1631 For details regarding this \*(CI \*(Xt 4e. COLOR Mapping.
1632
1633 .TP 7
1634 \ \ \fB^E\fR\ \ :\fIScale-CPU-Time-fields\fR (Ctrl key + \[oq]e\[cq])
1635 The \[oq]time\[cq] fields are normally displayed with the greatest
1636 precision their widths permit.
1637 This toggle reduces that precision until it wraps.
1638 It also illustrates the scaling those fields \fImight\fR experience
1639 automatically, which usually depends on how long the system runs.
1640
1641 For example, if \[oq]MMM:SS.hh\[cq] is shown,
1642 each ^E keystroke would change it to:
1643 \[oq]MM:SS\[cq],
1644 \[oq]Hours,MM\[cq],
1645 \[oq]Days+Hours\[cq] and finally \[oq]Weeks+Days\[cq].
1646
1647 Not all time fields are subject to the full range of such scaling.
1648
1649 .TP 7
1650 *\ \fB^R\fR\ \ :\fIRenice-an-Autogroup \fR (Ctrl key + \[oq]r\[cq])
1651 You will be prompted for a PID and then the value for its
1652 autogroup AGNI.
1653
1654 Entering no PID will be interpreted as the default shown in
1655 the prompt (the first task displayed).
1656
1657 A positive AGNI value will cause processes in that autogroup
1658 to lose priority.
1659 Conversely, a negative value causes them to be viewed more
1660 favorably by the kernel.
1661 Ordinary users are not allowed to set negative AGNI values.
1662
1663 If you wish to abort the renice process type <Esc>.
1664
1665 .IP "*" 3
1666 The commands shown with an \*(AK are not available in Secure mode,
1667 nor will they be shown on the level-1 help screen.
1668
1669 .\" ......................................................................
1670 .SS 4b. SUMMARY AREA Commands
1671 .\" ----------------------------------------------------------------------
1672 The \*(SA \*(CIs are\fB always available\fR in both \*(FM and \*(AM.
1673 They affect the beginning lines of your display and will determine the
1674 position of messages and prompts.
1675
1676 These commands always impact just the \*(CG.
1677 \*(XT 5. ALTERNATE\-DISPLAY Provisions and the \[oq]g\[cq] \*(CI for
1678 insight into \*(CWs and \*(FGs.
1679
1680 .TP 7
1681 \ \ \ \fBC\fR\ \ :\fIShow-scroll-coordinates\fR toggle \fR
1682 Toggle an informational message which is displayed whenever the message
1683 line is not otherwise being used.
1684 For additional information \*(Xt 5c. SCROLLING a Window.
1685
1686 .TP 7
1687 \ \ \ \fBl\fR\ \ :\fILoad-Average/Uptime\fR toggle \fR
1688 This is also the line containing the program name (possibly an alias)
1689 when operating in \*(FM or the \*(CW name when operating in \*(AM.
1690
1691 .TP 7
1692 \ \ \ \fBt\fR\ \ :\fITask/Cpu-States\fR toggle \fR
1693 This command affects from 2 to many \*(SA lines,
1694 depending on the state of the \[oq]1\[cq],
1695 \[oq]2\[cq] or \[oq]3\[cq] \*(CTs and whether or not \*(We is running
1696 under true SMP.
1697
1698 This portion of the \*(SA is also influenced by the \[oq]H\[cq] \*(CI
1699 toggle, as reflected in the total label which shows either Tasks or
1700 Threads.
1701
1702 This command serves as a 4-way toggle, cycling through these modes:
1703 .nf
1704 1. detailed percentages by category
1705 2. abbreviated user/system and total % + bar graph
1706 3. abbreviated user/system and total % + block graph
1707 4. turn off task and cpu states display
1708 .fi
1709
1710 When operating in either of the graphic modes, the display becomes much
1711 more meaningful when individual CPUs or NUMA nodes are also displayed.
1712 \*(XC the \[oq]1\[cq],
1713 \[oq]2\[cq] and \[oq]3\[cq] commands below for additional information.
1714
1715 .TP 7
1716 \ \ \ \fBm\fR\ \ :\fIMemory/Swap-Usage\fR toggle \fR
1717 This command affects the two \*(SA lines dealing with physical
1718 and virtual memory.
1719
1720 This command serves as a 4-way toggle, cycling through these modes:
1721 .nf
1722 1. detailed percentages by memory type
1723 2. abbreviated % used/total available + bar graph
1724 3. abbreviated % used/total available + block graph
1725 4. turn off memory display
1726 .fi
1727
1728 .TP 7
1729 \ \ \ \fB1\fR\ \ :\fISingle/Separate-Cpu-States\fR toggle \fR
1730 This command affects how the \[oq]t\[cq] command's Cpu States portion is
1731 shown.
1732 Although this toggle exists primarily to serve massively-parallel SMP
1733 machines, it is not restricted to solely SMP environments.
1734
1735 When you see \[oq]%Cpu(s):\[cq] in the \*(SA,
1736 the \[oq]1\[cq] toggle is \*O and all \*(Pu information is gathered in a
1737 single line.
1738 Otherwise, each \*(Pu is displayed separately as:
1739 \[oq]%Cpu0, %Cpu1, .\|.\|.\[cq] up to available screen height.
1740
1741 .TP 7
1742 \ \ \ \fB2\fR\ \ :\fINUMA-Nodes/Cpu-Summary\fR toggle \fR
1743 This command toggles between the \[oq]1\[cq] command cpu summary display
1744 (only)
1745 or a summary display plus the cpu usage statistics for each NUMA Node.
1746 It is only available if a system has the requisite NUMA support.
1747
1748 .TP 7
1749 \ \ \ \fB3\fR\ \ :\fIExpand-NUMA-Node \fR
1750 You will be invited to enter a number representing a NUMA Node.
1751 Thereafter, a node summary plus the statistics for each cpu in that
1752 node will be shown until the \[oq]1\[cq],
1753 \[oq]2\[cq] or \[oq]4\[cq] \*(CT is pressed.
1754 This \*(CI is only available if a system has the requisite NUMA support.
1755
1756 .TP 7
1757 \ \ \ \fB4\fR\ \ :\fIDisplay-Multiple-Elements-Adjacent\fR toggle \fR
1758 This \*(CT turns the \[oq]1\[cq] toggle \*F and shows multiple \*(PU and
1759 Memory results on each line.
1760 Each successive \[oq]4\[cq] key adds another \*(PU until again reverting
1761 to separate lines for \*(PU and Memory results.
1762
1763 A maximum of 8 \*(PUs per line can be displayed in this manner.
1764 However, data truncation may occur before reaching the maximum.
1765 That is definitely true when displaying detailed statistics via
1766 the \[oq]t\[cq] \*(CT since such data cannot be scaled like the graphic
1767 representations.
1768
1769 If one wished to quickly exit adjacent mode without cycling all the
1770 way to 8, simply use the \[oq]1\[cq] \*(CT.
1771
1772 .TP 7
1773 \ \ \ \fB5\fR\ \ :\fIDisplay-P-Cores-and-E-Cores\fR toggle \fR
1774 This \*(CT is only active when a platform has multiple cores of two
1775 distinct types, multi-threaded (P-Core) and single-threaded (E-Core).
1776
1777 While normally each \*(Pu is displayed as
1778 \[oq]%Cpu0, %Cpu1, .\|.\|.\[cq],
1779 this toggle can be used to identify and/or filter those \*(Pus by their
1780 core type, either P-Core (performance) or E-Core (efficient).
1781
1782 The 1st time \[oq]5\[cq] is struck,
1783 each \*(PU is displayed as \[oq]%Cp\fBP\fR\[cq] or \[oq]%Cp\fBE\fR\[cq]
1784 representing the two core types.
1785 The 2nd time, only P-Cores (%Cp\fBP\fR) will be shown.
1786 The 3rd time, only E-Cores (%Cp\fBE\fR) are displayed.
1787 When this \*(CT is struck for the 4th time, the \*(PU display
1788 returns to the normal \[oq]%Cpu\[cq] convention.
1789
1790 .TP 7
1791 \ \ \ \fB!\fR\ \ :\fICombine-Cpus-Mode\fR toggle \fR
1792 This \*(CT is intended for massively parallel SMP environments where,
1793 even with the \[oq]4\[cq] \*(CT,
1794 not all processors can be displayed.
1795 With each press of \[oq]!\[cq] the number of \*(Pus combined is doubled
1796 thus reducing the total number of \*(Pu lines displayed.
1797
1798 For example, with the first press of \[oq]!\[cq] two \*(Pus will be
1799 combined and displayed as
1800 \[oq]0-1, 2-3, .\|.\|.\[cq] instead of the normal
1801 \[oq]%Cpu0, %Cpu1, %Cpu2, %Cpu3, .\|.\|.\[cq].
1802 With a second \[oq]!\[cq] \*(CT four \*(Pus are combined and shown as
1803 \[oq]0-3, 4-7, .\|.\|.\[cq].
1804 Then the third \[oq]!\[cq] press,
1805 combining eight \*(Pus, shows as \[oq]0-7, 8-15, .\|.\|.\[cq],
1806 etc.
1807
1808 Such progression continues until individual \*(Pus are again displayed.
1809 Use the \[oq]=\[cq] command to exit \fBCombine Cpus\fR mode.
1810
1811 .TP 7
1812 \ \ \ \fB^\fR\ \ :\fIShow-Cores-vs-Cpus\fR toggle \fR
1813 Modern platforms typically implement a form of Simultaneous Multithreading
1814 (SMT) that allows multiple threads to be executed simultaneously on a
1815 single physical core.
1816 Two threads per core is the most common.
1817 However, some enterprise and specialized architectures support higher
1818 thread counts.
1819
1820 This \*(CT is used to display the utilization of physical \*(Pu cores
1821 rather than individually reported \*(Pus or threads.
1822
1823 .PP
1824 \*(NT If the entire \*(SA has been toggled \*F for any window, you would
1825 be left with just the\fB message line\fR.
1826 In that way, you will have maximized available task rows but (temporarily)
1827 sacrificed the program name in \*(FM or the \*(CW name when in \*(AM.
1828
1829 .\" ......................................................................
1830 .SS 4c. TASK AREA Commands
1831 .\" ----------------------------------------------------------------------
1832 The \*(TA \*(CIs are\fB always\fR available in \*(FM.
1833
1834 The \*(TA \*(CIs are\fB never available\fR in \*(AM\fI if\fR the \*(CW's
1835 \*(TD has been toggled \*F (\*(Xt 5. ALTERNATE\-DISPLAY Provisions).
1836
1837 .\" ..................................................
1838 .PP
1839 .B APPEARANCE\fR of \*(TW
1840
1841 .TP 7
1842 \ \ \ \fBJ\fR\ \ :\fIJustify-Numeric-Columns\fR toggle \fR
1843 Alternates between right-justified (the default) and
1844 left-justified numeric data.
1845 If the numeric data completely fills the available column, this
1846 \*(CT may impact the column header only.
1847
1848 .TP 7
1849 \ \ \ \fBj\fR\ \ :\fIJustify-Character-Columns\fR toggle \fR
1850 Alternates between left-justified (the default) and
1851 right-justified character data.
1852 If the character data completely fills the available column, this
1853 \*(CT may impact the column header only.
1854
1855 .PP
1856 .RS +2
1857 The following commands will also be influenced by the state of the
1858 global \[oq]B\[cq] (bold enable) toggle.
1859 .RS -2
1860
1861 .TP 7
1862 \ \ \ \fBb\fR\ \ :\fIBold/Reverse\fR toggle \fR
1863 This command will impact how the \[oq]x\[cq] and \[oq]y\[cq] toggles are
1864 displayed.
1865 It may also impact the \*(SA when a bar graph has been selected for
1866 \*(Pu states or memory usage via the \[oq]t\[cq] or \[oq]m\[cq] toggles.
1867
1868 .TP 7
1869 \ \ \ \fBx\fR\ \ :\fIColumn-Highlight\fR toggle \fR
1870 Changes highlighting for the current sort field.
1871 If you forget which field is being sorted this command can serve as a quick
1872 visual reminder, providing the sort field is being displayed.
1873 The sort field might\fI not\fR be visible because:
1874 1) there is insufficient\fI Screen Width \fR
1875 2) the \[oq]f\[cq] \*(CI turned it \*F
1876
1877 .TP 7
1878 \ \ \ \fBy\fR\ \ :\fIRow-Highlight\fR toggle \fR
1879 Changes highlighting for "running" tasks.
1880 For additional insight into this task state,
1881 \*(Xt 3a. DESCRIPTIONS of Fields,
1882 the \[oq]S\[cq] field (Process Status).
1883
1884 Use of this provision provides important insight into your system's health.
1885 The only costs will be a few additional tty escape sequences.
1886
1887 .TP 7
1888 \ \ \ \fBz\fR\ \ :\fIColor/Monochrome\fR toggle \fR
1889 Switches the \*(CW between your last used color scheme and the older form
1890 of black-on-white or white-on-black.
1891 This command will alter\fB both\fR the \*(SA and \*(TA but does not affect
1892 the state of the \[oq]x\[cq],
1893 \[oq]y\[cq] or \[oq]b\[cq] toggles.
1894
1895 .\" ..................................................
1896 .PP
1897 .B CONTENT\fR of \*(TW
1898
1899 .TP 7
1900 \ \ \ \fBc\fR\ \ :\fICommand-Line/Program-Name\fR toggle \fR
1901 This command will be honored whether or not the COMMAND column
1902 is currently visible.
1903 Later, should that field come into view, the change you applied will be seen.
1904
1905 .TP 7
1906 \ \ \ \fBF\fR\ \ :\fIMaintain-Parent-Focus\fR toggle \fR
1907 When in forest view mode, this key serves as a toggle to retain focus
1908 on a target task, presumably one with forked children.
1909 If forest view mode is \*F this key has no effect.
1910
1911 The toggle is applied to the first (topmost) process in the \*(CW.
1912 Once established, that task is always displayed as the first (topmost)
1913 process along with its forked children.
1914 All other processes will be suppressed.
1915
1916 \*(NT keys like \[oq]i\[cq] (idle tasks),
1917 \[oq]n\[cq] (max tasks), \[oq]v\[cq] (hide children)
1918 and User/Other filtering remain accessible and can impact what is displayed.
1919
1920 .TP 7
1921 \ \ \ \fBf\fR\ \ :\fIFields-Management \fR
1922 This key displays a separate screen where you can change which fields are
1923 displayed, their order and also designate the sort field.
1924 For additional information on this \*(CI
1925 \*(Xt 3b. MANAGING Fields.
1926
1927 .TP 7
1928 \ \ \ \fBO\fR | \fBo\fR\ \ :\fIOther-Filtering \fR
1929 You will be prompted for the selection criteria which then determines
1930 which tasks will be shown in the \*(CW.
1931 Your criteria can be made case sensitive or case can be ignored.
1932 And you determine if \*(We should include or exclude matching tasks.
1933
1934 \*(XT 5e. FILTERING in a window for details on these and additional
1935 related \*(CIs.
1936
1937 .TP 7
1938 \ \ \ \fBS\fR\ \ :\fICumulative-Time-Mode\fR toggle \fR
1939 When Cumulative mode is \*O, each process is listed with the \*(Pu
1940 time that it and its dead children have used.
1941
1942 When \*F, programs that fork into many separate tasks will appear
1943 less demanding.
1944 For programs like \[oq]init\[cq] or a shell this is appropriate but for
1945 others,
1946 like compilers, perhaps not.
1947 Experiment with two \*(TWs sharing the same sort field but with
1948 different \[oq]S\[cq] states and see which representation you prefer.
1949
1950 After issuing this command, you'll be informed of the new state of this toggle.
1951 If you wish to know in advance whether or not Cumulative mode is in
1952 effect, simply ask for help and view the window summary on the second line.
1953
1954 .TP 7
1955 \ \ \ \fBU\fR | \fBu\fR\ \ :\fIShow-Specific-User-Only \fR
1956 You will be prompted for the\fB uid\fR or\fB name\fR of the user to display.
1957 The \-u option matches on \fB effective\fR user whereas the \-U option
1958 matches on\fB any\fR user (real, effective, saved, or filesystem).
1959
1960 Thereafter, in that \*(TW only matching users will be shown, or possibly
1961 no processes will be shown.
1962 Prepending an exclamation point (\[oq]!\[cq]) to the user id or name
1963 instructs \*(We to display only processes with users not matching the
1964 one provided.
1965
1966 Different \*(TWs can be used to filter different users.
1967 Later, if you wish to monitor all users again in the \*(CW, re-issue this
1968 command but just press <Enter> at the prompt.
1969
1970 .TP 7
1971 \ \ \ \fBV\fR\ \ :\fIForest-View-Mode\fR toggle \fR
1972 In this mode, processes are reordered according to their parents and
1973 the layout of the COMMAND column resembles that of a tree.
1974 In forest view mode it is still possible to toggle between program
1975 name and command line (\*(Xc \[oq]c\[cq] \*(CI) or between processes and
1976 threads (\*(Xc \[oq]H\[cq] \*(CI).
1977
1978 \*(NT Typing any key affecting the sort order will exit forest view
1979 mode in the \*(CW.
1980 \*(XT 4c. TASK AREA Commands, SORTING for information on those keys.
1981
1982 .TP 7
1983 \ \ \ \fBv\fR\ \ :\fIHide/Show-Children\fR toggle \fR
1984 When in forest view mode, this key serves as a toggle to collapse or
1985 expand the children of a parent.
1986
1987 The toggle is applied against the first (topmost) process in the \*(CW.
1988 \*(XT 5c. SCROLLING a Window for additional information regarding
1989 vertical scrolling.
1990
1991 If the target process has not forked any children, this key has no effect.
1992 It also has no effect when not in forest view mode.
1993
1994 .\" ..................................................
1995 .PP
1996 .B SIZE\fR of \*(TW
1997
1998 .TP 7
1999 \ \ \ \fBi\fR\ \ :\fIIdle-Process\fR toggle \fR
2000 Displays all tasks or just active tasks.
2001 When this toggle is \*F, tasks that have not used any \*(PU since the
2002 last update will not be displayed.
2003 However, due to the granularity of the %CPU and TIME+ fields,
2004 some processes may still be displayed that\fI appear\fR to have
2005 used\fI no\fR \*(PU.
2006
2007 If this command is applied to the last \*(TD when in \*(AM, then it will not
2008 affect the window's size, as all prior \*(TDs will have already been painted.
2009
2010 .TP 7
2011 \ \ \ \fBn\fR | \fB#\fR\ \ :\fISet-Maximum-Tasks \fR
2012 You will be prompted to enter the number of tasks to display.
2013 The lessor of your number and available screen rows will be used.
2014
2015 When used in \*(AM, this is the command that gives you precise control over
2016 the size of each currently visible \*(TD, except for the very last.
2017 It will not affect the last window's size, as all prior \*(TDs will have
2018 already been painted.
2019
2020 \*(NT If you wish to increase the size of the last visible \*(TD when in \*(AM,
2021 simply decrease the size of the \*(TD(s) above it.
2022
2023 .\" ..................................................
2024 .PP
2025 .B SORTING\fR of \*(TW
2026 .PP
2027 .RS +3
2028 For compatibility, this \*(We supports most of the former \*(We sort keys.
2029 Since this is primarily a service to former \*(We users, these commands do
2030 not appear on any help screen.
2031 .nf
2032 \fI command sorted-field supported \fR
2033 A start time (non-display) \fB No \fR
2034 M %MEM Yes
2035 N PID Yes
2036 P %CPU Yes
2037 T TIME+ Yes
2038 .fi
2039
2040 Before using any of the following sort provisions,
2041 \*(We suggests that you temporarily turn on column highlighting using
2042 the \[oq]x\[cq] \*(CI.
2043 That will help ensure that the actual sort environment matches your intent.
2044
2045 The following \*(CIs will\fB only\fR be honored when the current sort field
2046 is\fB visible\fR.
2047 The sort field might\fI not\fR be visible because:
2048 1) there is insufficient\fI Screen Width \fR
2049 2) the \[oq]f\[cq] \*(CI turned it \*F
2050
2051 .TP 7
2052 \ \ \ \fB<\fR\ \ :\fIMove-Sort-Field-Left \fR
2053 Moves the sort column to the left unless the current sort field is
2054 the first field being displayed.
2055
2056 .TP 7
2057 \ \ \ \fB>\fR\ \ :\fIMove-Sort-Field-Right \fR
2058 Moves the sort column to the right unless the current sort field is
2059 the last field being displayed.
2060
2061 .PP
2062 The following \*(CIs will\fB always\fR be honored whether or not
2063 the current sort field is visible.
2064
2065 .TP 7
2066 \ \ \ \fBf\fR\ \ :\fIFields-Management \fR
2067 This key displays a separate screen where you can change which field
2068 is used as the sort column, among other functions.
2069 This can be a convenient way to simply verify the current sort field,
2070 when running \*(We with column highlighting turned \*F.
2071
2072 .TP 7
2073 \ \ \ \fBR\fR\ \ :\fIReverse/Normal-Sort-Field\fR toggle \fR
2074 Using this \*(CI you can alternate between high-to-low and low-to-high sorts.
2075
2076 .\" ......................................................................
2077 .SS 4d. BOTTOM WINDOW Commands
2078 .\" ----------------------------------------------------------------------
2079 These keys invoke a separate window at the bottom of the screen while
2080 normal \*(We monitoring continues uninterrupted.
2081 Keying the\fI same\fR \[oq]Ctrl\[cq] command a second time removes that
2082 separate window as does the \[oq]=\[cq] command.
2083
2084 The following are applied to the 1st task displayed. The Up/Down arrow keys
2085 will be important in choosing a target process as is a more stable display
2086 like forest view or a sort on PID or a larger delay interval.
2087
2088 .nf
2089 \fB^A\fR\ \ :\fIDisplay-Capabilities \fR (Ctrl key + \[oq]a\[cq])
2090 \fB^G\fR\ \ :\fIDisplay-Control-Groups \fR (Ctrl key + \[oq]g\[cq])
2091 \fB^K\fR\ \ :\fIDisplay-Cmdline \fR (Ctrl key + \[oq]k\[cq])
2092 \fB^N\fR\ \ :\fIDisplay-Environment \fR (Ctrl key + \[oq]n\[cq])
2093 \fB^P\fR\ \ :\fIDisplay-Namespaces \fR (Ctrl key + \[oq]p\[cq])
2094 \fB^U\fR\ \ :\fIDisplay-Supplementary-Groups \fR (Ctrl key + \[oq]u\[cq])
2095 .fi
2096
2097 This command is not associated with a specific task.
2098 Rather, up to 10 of the most recent messages issued by \*(We are recalled for review.
2099
2100 .nf
2101 \fB^L\fR\ \ :\fIDisplay-Logged-Messages \fR (Ctrl key + \[oq]l\[cq])
2102 .fi
2103
2104 The \fBTab\fR key (forward) or \fBShift+Tab\fR combination (backward) can be used to
2105 highlight individual elements being displayed in the bottom window.
2106
2107 Notable among these provisions is the Ctrl+N (environment) command.
2108 Its output can be extensive and not easily read when line wrapped.
2109 A more readable version can be achieved with an \[oq]Inspect\[cq] entry
2110 in the rcfile like the following.
2111
2112 .nf
2113 pipe ^I Environment ^I cat /proc/%d/environ | tr '\\0' '\\n'
2114 .fi
2115
2116 \*(XC \[oq]Y\[cq] \*(CI under 4a. GLOBAL Commands and topic
2117 6b. ADDING INSPECT Entries for additional information.
2118
2119 .\" ......................................................................
2120 .SS 4e. COLOR Mapping
2121 .\" ----------------------------------------------------------------------
2122 When you issue the \[oq]Z\[cq] \*(CI,
2123 you will be presented with a separate screen.
2124 That screen can be used to change the colors in just the \*(CW or
2125 in all four windows before returning to the \*(We display.
2126
2127 .P
2128 The following \*(CIs are available.
2129 .nf
2130 \fB5\fR upper case letters to select a\fB target \fR
2131 \fB8\fR numbers to select a\fB color\fR (@ selects no color)\fR
2132 normal toggles available \fR
2133 B :bold disable/enable
2134 b :running tasks "bold"/reverse
2135 z :color/mono
2136 other commands available \fR
2137 a/w :apply, then go to next/prior
2138 <Enter> :apply and exit
2139 q :abandon current changes and exit
2140 .fi
2141
2142 If you use \[oq]a\[cq] or \[oq]w\[cq] to cycle the targeted window,
2143 you will have applied the color scheme that was displayed when you left
2144 that window.
2145 You can, of course, easily return to any window and reapply different
2146 colors or turn colors \*F completely with the \[oq]z\[cq] toggle.
2147
2148 The Color Mapping screen can also be used to change the \*(CG in
2149 either \*(FM or \*(AM.
2150 Whatever was targeted when \[oq]q\[cq] or <Enter> was pressed will be
2151 made current as you return to the \*(We display.
2152
2153 .\" ----------------------------------------------------------------------
2154 .SH 5. ALTERNATE\-DISPLAY Provisions
2155 .\" ----------------------------------------------------------------------
2156 .\" ......................................................................
2157 .SS 5a. WINDOWS Overview
2158 .\" ----------------------------------------------------------------------
2159 .TP 3
2160 .B Field Groups/Windows\fR:
2161 In \*(FM there is a single window represented by the entire screen.
2162 That single window can still be changed to display 1 of 4 different\fB field
2163 groups\fR (\*(Xc \[oq]g\[cq] \*(CI, repeated below).
2164 Each of the 4 \*(FGs has a unique separately configurable\fB \*(SA \fR
2165 and its own configurable\fB \*(TA\fR.
2166
2167 In \*(AM, those 4 underlying \*(FGs can now be made visible
2168 simultaneously, or can be turned \*F individually at your command.
2169
2170 The \*(SA will always exist, even if it's only the message line.
2171 At any given time only\fI one\fR \*(SA can be displayed.
2172 However, depending on your commands, there could be from\fI zero \fR
2173 to\fI four\fR separate \*(TDs currently showing on the screen.
2174
2175 .TP 3
2176 .B Current Window\fR:
2177 The \*(CW is the window associated with the \*(SA and the window to which
2178 task related commands are always directed.
2179 Since in \*(AM you can toggle the \*(TD \*F, some commands might be
2180 restricted for the \*(CW.
2181
2182 A further complication arises when you have toggled the first \*(SA
2183 line \*F.
2184 With the loss of the window name (the \[oq]l\[cq] toggled line),
2185 you'll not easily know what window is the \*(CW.
2186
2187 .\" ......................................................................
2188 .SS 5b. COMMANDS for Windows
2189 .\" ----------------------------------------------------------------------
2190 .TP 7
2191 \ \ \ \fB-\fR | \fB_\fR\ \ :\fIShow/Hide-Window(s)\fR toggles \fR
2192 The \[oq]\-\[cq] key turns the \*(CW's \*(TD \*O and \*F.
2193 When \*O, that \*(TA will show a minimum of the columns header you've
2194 established with the \[oq]f\[cq] \*(CI.
2195 It will also reflect any other \*(TA options/toggles you've applied
2196 yielding zero or more tasks.
2197
2198 The \[oq]_\[cq] key does the same for all \*(TDs.
2199 In other words, it switches between the currently visible \*(TD(s) and any
2200 \*(TD(s) you had toggled \*F.
2201 If all 4 \*(TDs are currently visible, this \*(CI will leave the \*(SA
2202 as the only display element.
2203
2204 .TP 7
2205 *\ \ \fB=\fR | \fB+\fR\ \ :\fIEqualize/Reset-Window(s) \fR
2206 The \[oq]=\[cq] key forces the \*(CW's \*(TD to be visible.
2207 It also reverses any active \[oq]i\[cq] (idle tasks),
2208 \[oq]n\[cq] (max tasks),
2209 \[oq]u/U\[cq] (user filter),
2210 \[oq]o/O\[cq] (other filter),
2211 \[oq]v\[cq] (hide children),
2212 \[oq]F\[cq] focused,
2213 \[oq]L\[cq] (locate) and \[oq]!\[cq] (combine cpus) commands.
2214 Also, if the window had been scrolled, it will be reset with this command.
2215 \*(XT 5c. SCROLLING a Window for additional information regarding vertical
2216 and horizontal scrolling.
2217
2218 The \[oq]+\[cq] key does the same for all windows.
2219 The four \*(TDs will reappear, evenly balanced, while retaining
2220 any customizations previously applied beyond those noted
2221 for the \[oq]=\[cq] \*(CT.
2222
2223 .TP 7
2224 *\ \ \fBA\fR\ \ :\fIAlternate-Display-Mode\fR toggle \fR
2225 This command will switch between \*(FM and \*(AM.
2226
2227 The first time you issue this command, all four \*(TDs will be shown.
2228 Thereafter when you switch modes, you will see only the \*(TD(s) you've
2229 chosen to make visible.
2230
2231 .TP 7
2232 *\ \ \fBa\fR | \fBw\fR\ \ :\fINext-Window-Forward/Backward \fR
2233 This will change the \*(CW, which in turn changes the window to which
2234 commands are directed.
2235 These keys act in a circular fashion so you can reach any desired window
2236 using either key.
2237
2238 Assuming the window name is visible
2239 (you have not toggled \[oq]l\[cq] \*F),
2240 whenever the \*(CW name loses its emphasis/color, that's a reminder
2241 the \*(TD is \*F and many commands will be restricted.
2242
2243 .TP 7
2244 \ \ \ \fBG\fR\ \ :\fIChange-Window/Field-Group-Name \fR
2245 You will be prompted for a new name to be applied to the \*(CW.
2246 It does not require that the window name be visible
2247 (the \[oq]l\[cq] toggle to be \*O).
2248
2249 .IP "*" 3
2250 The \*(CIs shown with an \*(AK have use beyond \*(AM.
2251 .nf
2252 =, A, g are always available
2253 a, w act the same with color mapping
2254 and fields management
2255 .fi
2256
2257 .TP 7
2258 *\ \ \fBg\fR\ \ :\fIChoose-Another-Window/Field-Group \fR
2259 You will be prompted to enter a number between 1 and 4 designating the
2260 \*(FG which should be made the \*(CW.
2261
2262 In \*(FM, this command is necessary to alter the \*(CW.
2263 In \*(AM,
2264 it is simply a less convenient alternative to the \[oq]a\[cq] and
2265 \[oq]w\[cq] commands.
2266
2267 .\" ......................................................................
2268 .SS 5c. SCROLLING a Window
2269 .\" ----------------------------------------------------------------------
2270 Typically a \*(TW is a partial view into a system's total tasks/threads
2271 which shows only some of the available fields/columns.
2272 With these \*(KSs, you can move that view vertically or horizontally to
2273 reveal any desired task or column.
2274
2275 .TP 4
2276 \fBUp\fR,\fBPgUp\fR\ \ :\fIScroll-Tasks \fR
2277 Move the view up toward the first task row, until the first task is
2278 displayed at the top of the \*(CW.
2279 The \fIUp\fR \*(KA moves a single line while \fIPgUp\fR scrolls the
2280 entire window.
2281
2282 .TP 4
2283 \fBDown\fR,\fBPgDn\fR\ \ :\fIScroll-Tasks \fR
2284 Move the view down toward the last task row, until the last task is
2285 the only task displayed at the top of the \*(CW.
2286 The \fIDown\fR \*(KA moves a single line while \fIPgDn\fR scrolls the
2287 entire window.
2288
2289 .TP 4
2290 \fBLeft\fR,\fBRight\fR\ \ :\fIScroll-Columns \fR
2291 Move the view of displayable fields horizontally one column at a time.
2292
2293 \*(NT As a reminder, some fields/columns are not fixed-width but
2294 allocated all remaining screen width when visible.
2295 When scrolling right or left, that feature may produce some
2296 unexpected results initially.
2297
2298 Additionally, there are special provisions for any variable width field
2299 when positioned as the last displayed field.
2300 Once that field is reached via the right \*(KA, and is thus the only
2301 column shown, you can continue scrolling horizontally within such a field.
2302 \*(XC \[oq]C\[cq] \*(CI below for additional information.
2303
2304 .TP 4
2305 \fBHome\fR\ \ :\fIJump-to-Home-Position \fR
2306 Reposition the display to the un-scrolled coordinates.
2307
2308 .TP 4
2309 \fBEnd\fR\ \ :\fIJump-to-End-Position \fR
2310 Reposition the display so that the rightmost column reflects the last
2311 displayable field and the bottom task row represents the last task.
2312
2313 \*(NT From this position it is still possible to scroll\fI down\fR
2314 and\fI right\fR using the \*(KAs.
2315 This is true until a single column and a single task is left as the only
2316 display element.
2317
2318 .TP 4
2319 \fBC\fR\ \ :\fIShow-scroll-coordinates\fR toggle \fR
2320 Toggle an informational message which is displayed whenever the message
2321 line is not otherwise being used.
2322 That message will take one of two forms depending on whether or not a
2323 variable width column has also been scrolled.
2324
2325 .nf
2326 \fBscroll coordinates: y = n/n (tasks), x = n/n (fields)\fR
2327 \fRscroll coordinates: y = n/n (tasks), x = n/n (fields)\fB + nn\fR
2328 .fi
2329
2330 The coordinates shown as \fBn\fR/\fBn\fR are relative to the upper left
2331 corner of the \*(CW.
2332 The additional \[oq]\fB+\ nn\fR\[cq] represents the displacement into a
2333 variable width column when it has been scrolled horizontally.
2334 Such displacement occurs in normal 8 character tab stop amounts via
2335 the right and left \*(KAs.
2336
2337 .RS +4
2338 .TP 4
2339 \fBy = n/n (tasks) \fR
2340 The first \fBn\fR represents the topmost visible task and is controlled
2341 by \*(KSs.
2342 The second \fBn\fR is updated automatically to reflect total tasks.
2343
2344 .TP 4
2345 \fBx = n/n (fields) \fR
2346 The first \fBn\fR represents the leftmost displayed column and is
2347 controlled by \*(KSs.
2348 The second \fBn\fR is the total number of displayable fields and is
2349 established with the \[oq]\fBf\fR\[cq] \*(CI.
2350 .RS -4
2351
2352 .PP
2353 The above \*(CIs are\fB always\fR available in \*(FM but\fB never\fR
2354 available in \*(AM if the \*(CW's \*(TD has been toggled \*F.
2355
2356 \*(NT When any form of filtering is active, you can expect some slight
2357 aberrations when scrolling since not all tasks will be visible.
2358 This is particularly apparent when using the Up/Down \*(KAs.
2359
2360 .\" ......................................................................
2361 .SS 5d. SEARCHING in a Window
2362 .\" ----------------------------------------------------------------------
2363 You can use these \*(CIs to locate a task row containing a particular value.
2364
2365 .TP 4
2366 \fBL\fR\ \ :\fILocate-a-string\fR
2367 You will be prompted for the case-sensitive string to locate starting from
2368 the current window coordinates.
2369 There are no restrictions on search string content.
2370
2371 Searches are not limited to values from a single field or column.
2372 All of the values displayed in a task row are allowed in a search string.
2373 You may include spaces, numbers, symbols and even forest view artwork.
2374
2375 Keying <Enter> with no input will effectively disable the \[oq]&\[cq]
2376 key until a new search string is entered.
2377
2378 .TP 4
2379 \fB&\fR\ \ :\fILocate-next\fR
2380 Assuming a search string has been established, \*(We will attempt to locate
2381 the next occurrence.
2382
2383 .PP
2384 When a match is found, the current window is repositioned vertically so the
2385 task row containing that string is first.
2386 The scroll coordinates message can provide confirmation of such vertical
2387 repositioning (\*(Xc \[oq]C\[cq] \*(CI).
2388 Horizontal scrolling, however, is never altered via searching.
2389
2390 The availability of a matching string will be influenced by the following
2391 factors.
2392 .RS +3
2393 .TP 3
2394 a. Which fields are displayable from the total available,
2395 \*(Xt 3b. MANAGING Fields.
2396 .TP 3
2397 b. Scrolling a window vertically and/or horizontally,
2398 \*(Xt 5c. SCROLLING a Window.
2399 .TP 3
2400 c. The state of the command/command-line toggle,
2401 \*(Xc \[oq]c\[cq] \*(CI.
2402 .TP 3
2403 d. The stability of the chosen sort column,
2404 for example PID is good but %CPU bad.
2405 .RS -3
2406
2407 .PP
2408 If a search fails, restoring the \*(CW home (unscrolled) position, scrolling
2409 horizontally, displaying command-lines or choosing a more stable sort field
2410 could yet produce a successful \[oq]&\[cq] search.
2411
2412 The above \*(CIs are\fB always\fR available in \*(FM but\fB never\fR
2413 available in \*(AM if the \*(CW's \*(TD has been toggled \*F.
2414
2415 .\" ......................................................................
2416 .SS 5e. FILTERING in a Window
2417 .\" ----------------------------------------------------------------------
2418 You can use this \[oq]Other Filter\[cq] feature to establish selection
2419 criteria which will then determine which tasks are shown in the \*(CW.
2420 Such filters can be made persistent if preserved in the rcfile via
2421 the \[oq]W\[cq] \*(CI.
2422
2423 Establishing a filter requires: 1) a field name; 2) an operator; and
2424 3) a selection value, as a minimum.
2425 This is the most complex of \*(We's user input requirements so, when you make
2426 a mistake, command recall will be your friend.
2427 Remember the Up/Down \*(KAs or their aliases when prompted for input.
2428
2429 .B Filter Basics
2430 .RS +3
2431 .TP 3
2432 1. field names are case sensitive and spelled as in the header
2433 .TP 3
2434 2. selection values need not comprise the full displayed field
2435 .TP 3
2436 3. a selection is either case insensitive or sensitive to case
2437 .TP 3
2438 4. the default is inclusion, prepending \[oq]!\[cq] denotes exclusions
2439 .TP 3
2440 5. multiple selection criteria can be applied to a \*(TW
2441 .TP 3
2442 6. inclusion and exclusion criteria can be used simultaneously
2443 .TP 3
2444 7. the 1 equality and 2 relational filters can be freely mixed
2445 .TP 3
2446 8. separate unique filters are maintained for each \*(TW
2447
2448 .PP
2449 If a field is not turned on or is not currently in view, then your selection
2450 criteria will not affect the display.
2451 Later, should a filtered field become visible, the selection criteria will
2452 then be applied.
2453 .RE
2454
2455 .B Keyboard Summary
2456 .TP 6
2457 \ \ \fBO\fR\ \ :\fIOther-Filter\fR (upper case)
2458 You will be prompted to establish a \fBcase sensitive\fR filter.
2459
2460 .TP 6
2461 \ \ \fBo\fR\ \ :\fIOther-Filter\fR (lower case)
2462 You will be prompted to establish a filter that \fBignores case\fR when
2463 matching.
2464
2465 .TP 6
2466 \ \fB^O\fR\ \ :\fIShow-Active-Filters\fR (Ctrl key + \[oq]o\[cq])
2467 This can serve as a reminder of which filters are active in the \*(CW.
2468 A summary will be shown on the message line until you press the <Enter> key.
2469
2470 .TP 6
2471 \ \ \fB=\fR\ \ :\fIReset-Filtering\fR in current window
2472 This clears all of your selection criteria in the \*(CW.
2473 It also has additional impact so please \*(Xt 4a. GLOBAL Commands.
2474
2475 .TP 6
2476 \ \ \fB+\fR\ \ :\fIReset-Filtering\fR in all windows
2477 This clears the selection criteria in all windows, assuming you are in \*(AM.
2478 As with the \[oq]=\[cq] \*(CI,
2479 it too has additional consequences so you might wish to \*(Xt 5b.
2480 COMMANDS for Windows.
2481
2482 .PP
2483 .B Input Requirements
2484 .RS +3
2485 .P
2486 When prompted for selection criteria, the data you provide must take one
2487 of two forms.
2488 There are 3 required pieces of information, with a 4th as optional.
2489 These examples use spaces for clarity but your input generally would not.
2490 .nf
2491 #1 \fB#2\fR #3 ( required )
2492 Field\-Name ? include\-if\-value
2493 \fB!\fR Field\-Name ? \fBexclude\fR\-if\-value
2494 #4 ( optional )
2495 .fi
2496
2497 Items #1, #3 and #4 should be self\-explanatory.
2498 Item \fB#2\fR represents both a required \fIdelimiter\fR and the \fIoperator\fR
2499 which must be one of either equality
2500 (\[oq]=\[cq])
2501 or relation
2502 (\[oq]<\[cq] or \[oq]>\[cq]).
2503
2504 The \[oq]=\[cq] equality operator requires only a partial match and that
2505 can reduce your \[oq]if\-value\[cq] input requirements.
2506 The \[oq]>\[cq] or \[oq]<\[cq] relational operators always employ string
2507 comparisons,
2508 even with numeric fields.
2509 They are designed to work with a field's default \fIjustification\fR and
2510 with homogeneous data.
2511 When some field's numeric amounts have been subjected to \fIscaling\fR
2512 while others have not, that data is no longer homogeneous.
2513
2514 If you establish a relational filter and you \fBhave\fR changed the
2515 default Numeric or Character \fIjustification\fR, that filter is likely to fail.
2516 When a relational filter is applied to a memory field and you \fBhave not\fR
2517 changed the \fIscaling\fR, it may produce misleading results.
2518 This happens,
2519 for example,
2520 because \[oq]100.0m\[cq] (MiB) would appear greater
2521 than \[oq]1.000g\[cq] (GiB) when compared as strings.
2522
2523 If your filtered results appear suspect, simply altering justification or
2524 scaling may yet achieve the desired objective.
2525 See the \[oq]j\[cq],
2526 \[oq]J\[cq] and \[oq]e\[cq] \*(CIs for additional information.
2527 .RE
2528
2529 .B Potential Problems
2530 .RS +3
2531 .P
2532 These \fBGROUP\fR filters could produce the exact same results or the
2533 second one might not display anything at all, just a blank \*(TW.
2534 .nf
2535 GROUP=root ( only the same results when )
2536 GROUP=ROOT ( invoked via lower case \[oq]o\[cq] )
2537 .fi
2538
2539 Either of these \fBRES\fR filters might yield inconsistent and/or
2540 misleading results, depending on the current memory scaling factor.
2541 Or both filters could produce the exact same results.
2542 .nf
2543 RES>9999 ( only the same results when )
2544 !RES<10000 ( memory scaling is at \[oq]KiB\[cq] )
2545 .fi
2546
2547 This \fBnMin\fR filter illustrates a problem unique to scalable fields.
2548 This particular field can display a maximum of 4 digits, beyond which values
2549 are automatically scaled to KiB or above.
2550 So while amounts greater than 9999 exist, they will appear as 2.6m, 197k, etc.
2551 .nf
2552 nMin>9999 ( always a blank \*(TW )
2553 .fi
2554 .RE
2555
2556 .B Potential Solutions
2557 .RS +3
2558 .P
2559 These examples illustrate how Other Filtering can be creatively
2560 applied to achieve almost any desired result.
2561 Single quotes are sometimes shown to delimit the spaces which are part of
2562 a filter or to represent a request for status (^O) accurately.
2563 But if you used them with if-values in real life, no matches would be found.
2564
2565 Assuming field \fBnTH\fR is displayed, the first filter will result in
2566 only multi-threaded processes being shown.
2567 It also reminds us that a trailing space is part of every displayed field.
2568 The second filter achieves the exact same results with less typing.
2569 .nf
2570 !nTH=\[oq] 1 \[cq] ( \[oq]\[cq] for clarity only )
2571 nTH>1 ( same with less i/p )
2572 .fi
2573
2574 With Forest View mode active and the \fBCOMMAND\fR column in view, this
2575 filter effectively collapses child processes so that just 3 levels are shown.
2576 .nf
2577 !COMMAND=\[oq] \[oq]- \[cq] ( \[oq]\[cq] for clarity only )
2578 .fi
2579
2580 The final two filters appear as in response to the status request key (^O).
2581 In reality, each filter would have required separate input.
2582 The \fBPR\fR example shows the two concurrent filters necessary to display
2583 tasks with priorities of 20 or more, since some might be negative.
2584 Then by exploiting trailing spaces, the \fBnMin\fR series of filters could
2585 achieve the failed \[oq]9999\[cq] objective discussed above.
2586 .nf
2587 \[oq]PR>20\[cq] + \[oq]!PR=-\[cq] ( 2 for right result )
2588 \[oq]!nMin=0 \[cq] + \[oq]!nMin=1 \[cq] + \[oq]!nMin=2 \[cq] + \[oq]!nMin=3 \[cq] ...
2589 .fi
2590 .RS -3
2591
2592 .\" ----------------------------------------------------------------------
2593 .SH 6. FILES
2594 .\" ----------------------------------------------------------------------
2595 .SS 6a. PERSONAL Configuration File
2596 .\" ----------------------------------------------------------------------
2597 This file is created or updated via the \[oq]W\[cq] \*(CI.
2598
2599 The legacy version is written as
2600 \[oq]$HOME/.your\-name\-4\-\*(We\[cq] + \[oq]rc\[cq]
2601 with a leading period.
2602
2603 A newly created \*(CF is written as
2604 \[oq]procps/your\-name\-4\-\*(We\[cq] + \[oq]rc\[cq]
2605 without a leading period.
2606 The procps directory will be subordinate to either $XDG_CONFIG_HOME when
2607 set as an absolute path or the $HOME/.config directory.
2608
2609 While not intended to be edited manually, here is the general layout:
2610 .nf
2611 global # line 1: the program name/alias notation
2612 " # line 2: id,altscr,irixps,delay,curwin
2613 per ea # line a: winname,fieldscur
2614 window # line b: winflags,sortindx,maxtasks,etc
2615 " # line c: summclr,msgsclr,headclr,taskclr
2616 global # line 15: additional miscellaneous settings
2617 " # any remaining lines are devoted to optional
2618 " # active \[oq]other filters\[cq] discussed in section 5e above
2619 " # plus \[oq]inspect\[cq] entries discussed in section 6b below
2620 .fi
2621
2622 If a valid absolute path to the rcfile cannot be established, customizations
2623 made to a running \*(We will be impossible to preserve.
2624
2625 .\" ......................................................................
2626 .SS 6b. ADDING INSPECT Entries
2627 .\" ----------------------------------------------------------------------
2628 To exploit the \[oq]Y\[cq] \*(CI, you must add entries at the\fB end\fR
2629 of the \*(We personal \*(CF.
2630 Such entries simply reflect a file to be read or command/pipeline to be
2631 executed whose results will then be displayed in a separate scrollable,
2632 searchable window.
2633
2634 If you don't know the location or name of your \*(We rcfile, use the
2635 \[oq]W\[cq] \*(CI to rewrite it and note those details.
2636
2637 Inspect entries can be added with a redirected echo or by editing the \*(CF.
2638 Redirecting an echo risks overwriting the rcfile should it replace (>)
2639 rather than append (>>) to that file.
2640 Conversely, when using an editor care must be taken not to corrupt existing
2641 lines, some of which could contain unprintable data or unusual characters
2642 depending on the \*(We version under which that \*(CF was saved.
2643
2644 Those Inspect entries beginning with a \[oq]#\[cq] character are
2645 ignored,
2646 regardless of content.
2647 Otherwise they consist of the following 3 elements, each of which\fI must\fR
2648 be separated by a tab character (thus 2 \[oq]\\t\[cq] total):
2649
2650 .nf
2651 .type: literal \[oq]file\[cq] or \[oq]pipe\[cq]
2652 .name: selection shown on the Inspect screen
2653 .fmts: string representing a path or command
2654 .fi
2655
2656 The two types of Inspect entries are\fI not\fR interchangeable.
2657 Those designated \[oq]\fBfile\fR\[cq] will be accessed using fopen and
2658 must reference a single file in the \[oq].fmts\[cq] element.
2659 Entries specifying \[oq]\fBpipe\fR\[cq] will employ popen,
2660 their \[oq].fmts\[cq] element could contain many pipelined commands and,
2661 none can be interactive.
2662
2663 If the file or pipeline represented in your \[oq].fmts\[cq] deals with
2664 the specific PID input or accepted when prompted,
2665 then the format string must also contain the \[oq]\fB%d\fR\[cq]
2666 specifier,
2667 as these examples illustrate.
2668
2669 .nf
2670 .fmts= /proc/\fI%d\fR/numa_maps
2671 .fmts= lsof -P -p\fI %d\fR
2672 .fi
2673
2674 For \[oq]\fBpipe\fR\[cq] type entries only,
2675 you may also wish to redirect stderr to stdout for a more comprehensive
2676 result.
2677 Thus the format string becomes:
2678
2679 .nf
2680 .fmts= pmap -x %d\fI 2>&1\fR
2681 .fi
2682
2683 Here are examples of both types of Inspect entries as they might appear
2684 in the rcfile.
2685 The first entry will be ignored due to the initial \[oq]#\[cq]
2686 character.
2687 For clarity, the pseudo tab depictions (^I) are surrounded by an
2688 extra space but the actual tabs would not be.
2689 .nf
2690
2691 # pipe ^I Sockets ^I lsof -n -P -i 2>&1
2692 pipe ^I Open Files ^I lsof -P -p %d 2>&1
2693 file ^I NUMA Info ^I /proc/%d/numa_maps
2694 pipe ^I Log ^I tail -n100 /var/log/syslog | sort -Mr
2695 .fi
2696
2697 Except for the commented entry above, these next examples show what could
2698 be echoed to achieve similar results,
2699 assuming the rcfile name was \[oq].toprc\[cq].
2700 However,
2701 due to the embedded tab characters,
2702 each of these lines should be preceded by \[oq]\fB/bin/echo \-e\fR\[cq],
2703 not just a simple an \[oq]echo\[cq],
2704 to enable backslash interpretation regardless of which shell you use.
2705
2706 .nf
2707 "pipe\\tOpen Files\\tlsof -P -p %d 2>&1" >> ~/.toprc
2708 "file\\tNUMA Info\\t/proc/%d/numa_maps" >> ~/.toprc
2709 "pipe\\tLog\\ttail -n200 /var/log/syslog | sort -Mr" >> ~/.toprc
2710 .fi
2711
2712 If any inspect entry you create produces output with unprintable characters
2713 they will be displayed in either the ^C notation or hexadecimal <FF> form,
2714 depending on their value.
2715 This applies to tab characters as well, which will show as \[oq]^I\[cq].
2716 If you want a truer representation, any embedded tabs should be expanded.
2717 The following example takes what could have been a \[oq]file\[cq] entry
2718 but employs a \[oq]pipe\[cq] instead so as to expand the embedded tabs.
2719
2720 .nf
2721 # next would have contained \[oq]\\t\[cq] ...
2722 # file ^I <your_name> ^I /proc/%d/status
2723 # but this will eliminate embedded \[oq]\\t\[cq] ...
2724 pipe ^I <your_name> ^I cat /proc/%d/status | expand \-
2725 .fi
2726
2727 \*(NT Some programs might rely on \fISIGINT\fR to end.
2728 Therefore,
2729 if a \[oq]\fBpipe\fR\[cq] such as the following is established,
2730 one must use Ctrl-C to terminate it in order to review the results.
2731 This is the single occasion where a \[oq]^C\[cq] will not also terminate
2732 \*(We.
2733
2734 .nf
2735 pipe ^I Trace ^I /usr/bin/strace -p %d 2>&1
2736 .fi
2737
2738 Lastly,
2739 while \[oq]\fBpipe\fR\[cq] type entries have been discussed in terms of
2740 pipelines and commands,
2741 there is nothing to prevent you from including \fI shell scripts\fR as
2742 well.
2743 Perhaps even newly created scripts designed specifically for the
2744 \[oq]Y\[cq] \*(CI.
2745
2746 For example, as the number of your Inspect entries grows over time,
2747 the \[oq]Options:\[cq] row will be truncated when screen width is
2748 exceeded.
2749 That does not affect operation other than to make some selections invisible.
2750 However, if some choices are lost to truncation but you want to see more options,
2751 there is an easy solution hinted at below.
2752
2753 .nf
2754 Inspection Pause at pid ...
2755 Use: left/right then <Enter> ...
2756 Options: help 1 2 3 4 5 6 7 8 9 10 11 ...
2757 .fi
2758
2759 The entries in the \*(We rcfile would have a number for the
2760 \[oq].name\[cq] element and the \[oq]help\[cq] entry would identify a
2761 shell script you've written explaining what those numbered selections
2762 actually mean.
2763 In that way, many more choices can be made visible.
2764
2765 .\" ......................................................................
2766 .SS 6c. SYSTEM Configuration File
2767 .\" ----------------------------------------------------------------------
2768 This \*(CF represents defaults for users who have not saved their own \*(CF.
2769 The format mirrors exactly the personal \*(CF and can also include
2770 \[oq]inspect\[cq] entries as explained above.
2771
2772 Creating it is a simple process.
2773
2774 1. Configure \*(We appropriately for your installation and preserve that
2775 configuration with the \[oq]W\[cq] \*(CI.
2776
2777 2. Add and test any desired \[oq]inspect\[cq] entries.
2778
2779 3. Copy that \*(CF to the \fI/etc/\fR directory as
2780 \[oq]\fBtopdefaultrc\fR\[cq].
2781
2782 .\" ......................................................................
2783 .SS 6d. SYSTEM Restrictions File
2784 .\" ----------------------------------------------------------------------
2785 The presence of this file will influence which version of the help screen
2786 is shown to an ordinary user.
2787
2788 More importantly, it will limit what ordinary users are allowed
2789 to do when \*(We is running.
2790 They will not be able to issue the following commands.
2791 .nf
2792 k Kill a task
2793 r Renice a task
2794 d or s Change delay/sleep interval
2795 .fi
2796
2797 This \*(CF is not created by \*(We.
2798 Rather, it is created manually and placed it in the \fI/etc/\fR
2799 directory as \[oq]\fBtoprc\fR\[cq].
2800
2801 It should have exactly two lines, as shown in this example:
2802 .nf
2803 s # line 1: secure mode switch
2804 5.0 # line 2: delay interval in seconds
2805 .fi
2806
2807 .\" ----------------------------------------------------------------------
2808 .SH 7. ENVIRONMENT VARIABLE(S)
2809 .\" ----------------------------------------------------------------------
2810 The value set for the following is unimportant, just its presence.
2811
2812 .IP LIBPROC_HIDE_KERNEL
2813 This will prevent display of any kernel threads and exclude such processes
2814 from the \*(SA Tasks/Threads counts.
2815
2816 .\" ----------------------------------------------------------------------
2817 .SH 8. STUPID TRICKS Sampler
2818 .\" ----------------------------------------------------------------------
2819 Many of these tricks work best when you give \*(We a scheduling boost.
2820 So plan on starting him with a nice value of \-10, assuming you've got
2821 the authority.
2822
2823 .\" ......................................................................
2824 .SS 8a. Kernel Magic
2825 .\" ----------------------------------------------------------------------
2826 .\" sorry, just can't help it -- don't ya love the sound of this?
2827 For these stupid tricks, \*(We needs \*(FM.
2828 .\" ( apparently AM static was a potential concern )
2829
2830 .IP \(bu 3
2831 The user interface, through prompts and help, intentionally implies
2832 that the delay interval is limited to tenths of a second.
2833 However, you're free to set any desired delay.
2834 If you want to see Linux at his scheduling best, try a delay of .09
2835 seconds or less.
2836
2837 For this experiment, under x-windows open an xterm and maximize it.
2838 Then do the following:
2839 .nf
2840 . provide a scheduling boost and tiny delay via:
2841 nice -n -10 \*(We -d.09
2842 . keep sorted column highlighting \*F so as to
2843 minimize path length
2844 . turn \*O reverse row highlighting for emphasis
2845 . try various sort columns (TIME/MEM work well),
2846 and normal or reverse sorts to bring the most
2847 active processes into view
2848 .fi
2849
2850 What you'll see is a very busy Linux doing what he's always done for you,
2851 but there was no program available to illustrate this.
2852
2853 .IP \(bu 3
2854 Under an xterm using \[oq]white-on-black\[cq] colors,
2855 on \*(We's Color Mapping screen set the task color to black and be sure
2856 that task highlighting is set to bold,
2857 not reverse.
2858 Then set the delay interval to around .3 seconds.
2859
2860 After bringing the most active processes into view, what you'll see are
2861 the ghostly images of just the currently running tasks.
2862
2863 .IP \(bu 3
2864 Delete the existing rcfile, or create a new symlink.
2865 Start this new version then type \[oq]T\[cq]
2866 (a secret key,
2867 \*(Xt 4c. Task Area Commands,
2868 SORTING) followed by \[oq]W\[cq] and \[oq]q\[cq].
2869 Finally, restart the program with \-d0 (zero delay).
2870
2871 Your display will be refreshed at three times the rate of the former \*(We,
2872 a 300% speed advantage.
2873 As \*(We climbs the TIME ladder, be as patient as you can while speculating
2874 on whether or not \*(We will ever reach the \*(We.
2875
2876 .\" ......................................................................
2877 .SS 8b. Bouncing Windows
2878 .\" ----------------------------------------------------------------------
2879 For these stupid tricks, \*(We needs \*(AM.
2880
2881 .IP \(bu 3
2882 With 3 or 4 \*(TDs visible, pick any window other than the last
2883 and turn idle processes \*F using the \[oq]i\[cq] \*(CT.
2884 Depending on where you applied \[oq]i\[cq],
2885 sometimes several \*(TDs are bouncing and
2886 sometimes it's like an accordion, as \*(We tries his best to allocate space.
2887
2888 .IP \(bu 3
2889 Set each window's summary lines differently:
2890 one with no memory (\[oq]m\[cq]);
2891 another with no states (\[oq]t\[cq]);
2892 maybe one with nothing at all,
2893 just the message line.
2894 Then hold down \[oq]a\[cq] or \[oq]w\[cq] and watch a variation on
2895 bouncing windows \*(Em hopping windows.
2896
2897 .IP \(bu 3
2898 Display all 4 windows and for each, in turn, set idle processes to \*F using
2899 the \[oq]i\[cq] \*(CT.
2900 You've just entered the "extreme bounce" zone.
2901
2902 .\" ......................................................................
2903 .SS 8c. The Big Bird Window
2904 .\" ----------------------------------------------------------------------
2905 This stupid trick also requires \*(AM.
2906
2907 .IP \(bu 3
2908 Display all 4 windows and make sure that 1:Def is the \*(CW.
2909 Then, keep increasing window size with the \[oq]n\[cq] \*(CI until all
2910 the other \*(TDs are "pushed out of the nest".
2911
2912 When they've all been displaced, toggle between all visible/invisible windows
2913 using the \[oq]_\[cq] \*(CT.
2914 Then ponder this:
2915 .br
2916 is \*(We fibbing or telling honestly your imposed truth?
2917
2918 .\" ......................................................................
2919 .SS 8d. The Ol' Switcheroo
2920 .\" ----------------------------------------------------------------------
2921 This stupid trick works best without \*(AM, since justification is active
2922 on a per window basis.
2923
2924 .IP \(bu 3
2925 Start \*(We and make COMMAND the last (rightmost) column displayed.
2926 If necessary,
2927 use the \[oq]c\[cq] \*(CT to display command lines and ensure that
2928 forest view mode is active with the \[oq]V\[cq] \*(CT.
2929
2930 Then use the up/down \*(KAs to position the display so that some
2931 truncated command lines are shown (\[oq]+\[cq] in last position).
2932 You may have to resize your xterm to produce truncation.
2933
2934 Lastly, use the \[oq]j\[cq] \*(CT to make the COMMAND column right
2935 justified.
2936
2937 Now use the right \*(KA to reach the COMMAND column.
2938 Continuing with the right \*(KA, watch closely the direction
2939 of travel for the command lines being shown.
2940
2941 .br
2942 some lines travel left, while others travel right
2943
2944 eventually all lines will Switcheroo, and move right
2945
2946 .\" ----------------------------------------------------------------------
2947 .SH 9. BUGS
2948 .\" ----------------------------------------------------------------------
2949 Please send bug reports to
2950 .MT [email protected]
2951 .ME .
2952
2953 \" ----------------------------------------------------------------------
2954 .SH 10. SEE Also
2955 .\" ----------------------------------------------------------------------
2956 .BR free (1),
2957 .BR ps (1),
2958 .BR uptime (1),
2959 .BR atop (1),
2960 .BR slabtop (1),
2961 .BR vmstat (8),
2962 .BR w (1)