Debian Codegraph @

doc/FAQ

raw
1 Why does "ps -aux" complain about a bogus '-'?
2
3 According to the POSIX and UNIX standards, the above command asks to
4 display all processes with a TTY (generally the commands users are
5 running) plus all processes owned by a user named "x". If that user
6 doesn't exist, then ps will assume you really meant "ps aux". The
7 warning is given to gently break you of a habit that will cause you
8 trouble if a user named "x" were created.
9
10 Why don't I see SMP (per-CPU) stats in top?
11
12 You didn't enable it. Press '?' for built-in help or read the man
13 page. Per-CPU stats are disabled by default because they take up too
14 much space. Some Linux systems have hundreds of CPUs.
15
16 Why do long usernames get printed as numbers?
17
18 The UNIX and POSIX standards require that user names and group names
19 be printed as decimal integers when there is not enough room in the
20 column. Truncating the names, besides being a violation of the
21 standard, would lead to confusion between names like MichelleRichards
22 and MichelleRichardson. The UNIX and POSIX way to change column
23 width is to rename the column:
24
25 ps -o pid,user=CumbersomeUserNames -o comm
26
27 The easy way is to directly specify the desired width:
28
29 ps -o pid,user:19,comm
30
31 Why is %CPU underreported for multi-threaded (Java, etc.) apps?
32
33 You need to upgrade to the 2.6.10 kernel at least. Older kernels do
34 not provide a reasonable way to get this information.
35
36 Why do ps and top show threads individually?
37
38 The 2.4.xx kernel does not provide proper support for grouping
39 threads by process. Hacks exist to group them anyway, but such hacks
40 will falsely group similar tasks and will fail to group tasks due to
41 race conditions. The hacks are also slow. As none of this is
42 acceptable in a critical system tool, task grouping is not currently
43 available for the 2.4.xx kernel. The 2.6.xx kernel allows for proper
44 thread grouping and reporting. To take advantage of this, your
45 programs must use a threading library that features the CLONE_THREAD
46 flag. The NPTL pthreads provided by recent glibc releases use
47 CLONE_THREAD.
48
49 What systems are supported?
50
51 Linux 2.4.xx 2.6.xx and 3.xx are commonly tested and expected to work
52 well. SMP is well supported. Multi-node cluster views require a
53 multi-node /proc filesystem; without that you will see a single-node
54 view.
55
56 Where to I send bug reports?
57
58 You may use the Debian bug tracking system or send your report to
59 [email protected] (no subscription required) instead.
60
61 Why are there so many procps projects?
62
63 The original maintainer seems to have had little time for procps.
64 Whatever his reasons, the project didn't get maintained. Starting in
65 1997, Albert Cahalan wrote a new ps program for the package. For the
66 next few years, Albert quietly helped the Debian package maintainer
67 fix bugs. In 2001, Rik van Riel decided to do something about what
68 appeared to be the lack of a maintainer. He picked up the buggy old
69 code in Red Hat's CVS and started adding patches. Meanwhile, other
70 people have patched procps in a great many ways.
71
72 In 2002, Albert moved procps to http://procps.sourceforge.net. This
73 was done to ensure that years of testing and bug fixes would not be
74 lost. The major version number was changed to 3, partly to avoid
75 confusing users and partly because the top program had been redone.
76
77 After development essentially stopped on sourceforge.net, in 2011 the
78 project found a new home at http://gitorious.org/procps. This
79 represents the Debian, Fedora and openSUSE fork of procps. To avoid
80 confusion and potential name clashes the package is now known as
81 procps-ng (next generation), the version number was raised to 3.3.0
82 and the library so-name changed to libprocps.so
83
84 What is being done to procps-ng at its new home?
85
86 All programs are in the process of being modernized, both in terms of
87 coding style and supporting documentation. Autotools have been
88 integrated and the library API has been expanded with many new fields
89 supported such as control groups, supplementary groups, etc. The top
90 program has been rewritten offering many new capabilities while
91 providing performance improvements up to 300%.
92
93 Why does ps get signal 17?
94
95 No ps release has ever had this problem. Most likely your system has
96 been broken into. You might want to install a more recent version of
97 the OS. If you'd rather take your chances, simply upgrade procps.