mirror of
https://gitlab.com/procps-ng/procps.git
synced 2025-12-05 23:07:20 +00:00
No description
When I offered our project leader the patch referenced
below, I said there was a 90% certainty there would be
no more for the sort module. Here's the remaining 10%.
This patch will trade much pointer arithmetic that was
frequently repeated for a succinct postfix expression.
For an optimized compile using -O3, these changes will
reduce module size by 64 bytes for a new total of 992.
Plus 12 iterated instructions have been eliminated out
of a total of 243, reducing total instructions to 231.
And, while the above improvements are not likely to be
measurable, differences between our sort and the glibc
implementation most certainly are. For example, if one
limits sort to a constant number of tasks (i.e. 1500),
then these are some results in millionths of a second:
total key(s) glibc qsort our mergesort
------------ ------------ -------------
1 0.000060 0.000054
2 0.000160 0.000121
6 0.000592 0.000549
8 0.000711 0.000631
11 0.001239 0.000959
[ total key(s) represents calls to the sort function ]
[ and, where more than one, emphasize the importance ]
[ the 'stability' factor. Time measured is that of a ]
[ sort function's overhead only, not any other cost. ]
Lastly, and unrelated to those code changes above, I'm
a little surprised to find that some identifiers which
were changed with the patch below, were changed AGAIN!
Oh well, the new names are definately an improvement!!
Reference(s):
, Nov, 2025 - refactor identifiers
commit
|
||
|---|---|---|
| doc | ||
| library | ||
| local | ||
| man | ||
| po | ||
| po-man | ||
| src | ||
| testsuite | ||
| .gitignore | ||
| .gitlab-ci.yml | ||
| AUTHORS | ||
| autogen.sh | ||
| ChangeLog | ||
| configure.ac | ||
| COPYING | ||
| COPYING.LIB | ||
| create-man-pot.sh | ||
| INSTALL.md | ||
| Makefile.am | ||
| NEWS | ||
| README.md | ||
| sysctl.conf | ||
| translate-man.sh | ||
procps
procps is a set of command line and full-screen utilities that provide information out of the pseudo-filesystem most commonly located at /proc. This filesystem provides a simple interface to kernel data structures. The utilities provided by procps focus on the structures that describe processess running on the system.
The following utilities are provided by procps:
- free - Report the amounts of free and used memory in the system
- hugetop - Report hugepage usage of processes and the system as a whole
- kill - Send a signal to a process based on PID
- pgrep - List processes based on name or other attributes
- pkill - Send a signal to a process based on name or other attributes
- pmap - Report the memory map of a process
- ps - Report process information including PID and resource usage
- pwdx - Report the current working directory of a process
- skill - Obsolete version of pgrep/pkill
- slabtop - Display kernel slab cache information in real time
- snice - Renice a process
- sysctl - Read or write kernel parameters at run-time
- tload - Graphical representation of system load average
- top - Dynamic real-time view of running processes
- uptime - Display how long the system has been running
- vmstat - Report virtual memory statistics
- w - Report logged in users and what they are doing
- watch - Execute a program periodically, showing output fullscreen
Reporting Bugs
There are three ways to submit bugs or feature requests:
- Your Linux distribution's bug reporter. If you are using Linux distribution packages your first port of call is their bug tracker. This is because each distribution has their own patches and way of dealing with bugs. Also bug reporting often does not need any subscription to websites.
- GitLab Issues - To the left of this page is the issue tracker. You can report bugs here.
- Email list - We have an email list (see below) where you can report bugs. A shortcoming of this method is that such bug reports often get lost and cannot be tracked. This is especially problematic when the report conerns something that will take time to resolve.
If you need to report bugs, there is more details on the Bug Reporting page.
Email List
The email list for the developers and users of procps is found at http://www.freelists.org/archive/procps/ This email list discusses the development of procps and is used by distributions to also forward or discuss bugs.