top (software)

top (table of processes) is a task manager program found in many Unix-like operating systems that displays information about CPU and memory utilization.

top
Original author(s)William LeFebvre
Initial release1984 (1984)
Written inC
Operating systemUnix-like
TypeProcess Viewer / System monitor

Overview

The program produces an ordered list of running processes selected by user-specified criteria, and updates it periodically. Default ordering is by CPU usage, and only the top CPU consumers are shown. top shows how much processing power and memory are being used, as well as other information about the running processes. Some versions of top allow extensive customization of the display, such as choice of columns or sorting method. top is useful for system administrators, as it shows which users and processes are consuming the most system resources at any given time.

Implementations

There are several different versions of top. The traditional Unix version was written by William LeFebvre and originally copyrighted in 1984.[1] It is hosted on SourceForge,[2] and release 3.7 was announced in 2008.[3]

The Linux top version is part of the procps-ng group of tools. It was originally written by Roger Binns[4] but shortly thereafter was taken over by others.[5]

On Solaris, the roughly equivalent program is prstat. Microsoft Windows has the tasklist command and the graphical Task Manager utility. IBM AIX has an updating running processes list as part of the topas and topas_nmon commands.

The load average numbers in Linux refers to the sum of the number of processes waiting in the run-queue plus the number currently executing. The number is absolute, not relative. And thus it can be unbounded; unlike utilization. The instant variations of the number of processes are damped with an exponential decay formula which is calculated using fixed point math.[6]

The ps program is similar to top, but instead produces a snapshot of processes taken at the time of invocation. top's n (number of iterations) option can product a similar result, causing the program to run the specified number of iterations, then exit after printing its output.

gollark: ```var codews = {};var wscode = {}```Really, who knows...
gollark: I have no idea what `getKurl` means, but whatever.
gollark: ```/* deltaShop backend, by Chervilpaw, aka steamport. 2018, steamport, ALL RIGHTS RESERVED. Do not redistribute without explict permission.*/```
gollark: I have been sent it (I said no, but what can you do) and it's in one pastebin file and surprisingly short.
gollark: Chervil has offered me the code as long as I don't make it public. This defeats the point somewhat.

See also

References

  1. "Documentation". Unix Top. Archived from the original on 2008-04-13. Retrieved 2016-05-22.
  2. LeFebvre, William (2014-09-16). "About Top". Unix Top. Archived from the original on 2004-04-20. Retrieved 2016-05-22.
  3. "Top / News". SourceForge. Retrieved 2016-05-22.
  4. "top(1): tasks - Linux man page". Linux Documentation. Retrieved 2016-05-22.
  5. Binns, Roger. "Linux Top Origins | Roger's world". Roger's world. Retrieved 2016-05-22.
  6. J. Gunther, Neil (2010). "UNIX Load Average Part 2: Not Your Average Average" (PDF). teamquest.com. Archived from the original (PDF) on 2012-06-02. Retrieved 2013-06-10.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.