PROCINFO(8)

πŸ’… PROCINFO(8) β€” like, the whole vibe

okay so bestie, welcome to procinfo, from the Linux System Manual (section 8, we're fancy like that). pull up a chair, grab a boba, and let's get into it ✨


🌸 NAME

procinfo β€” displays system status gathered from /proc 🫢


πŸ¦‹ SYNOPSIS

procinfo [ -fsmadiDSbrChv ] [ -nN ] [ -Ffile ]

πŸ’– DESCRIPTION

so procinfo gathers some system data from the /proc directory and prints it all nicely formatted on the standard output device. that's it, that's the whole gig. iconic behaviour tbh πŸ‘‘

the meanings of the fields are as follows:

πŸ“ Memory

see the man page for free(1) β€” preferably the proc-version of free (and if you weren't around during the Linux 1.x days, that's literally the only version of free you'll have, no cap).

πŸ“ Bootup

the time the system was booted. when the queen woke up, basically 🌈

πŸ“ Load average

the average number of jobs running, followed by the number of runnable processes and the total number of processes (if your kernel is recent enough), followed by the PID of the last process run (idem). iykyk.

πŸ“ user:

the amount of time spent running jobs in user space.

πŸ“ nice:

the amount of time spent running niced jobs in user space. so polite πŸ’…

πŸ“ system:

the amount of time spent running in kernel space. note: the time spent servicing interrupts is not counted by the kernel (and that's nothing that procinfo can do about it β€” not our fault, bestie 😭).

πŸ“ idle:

the amount of time spent doing nothing. me during third period ngl πŸ’€

πŸ“ uptime:

the time that the system has been up. the above four should more or less add up to this one.

πŸ“ page in:

the number of disk blocks paged into core from disk. (a block is almost always 1 kilobyte).

πŸ“ page out:

the reverse of the above. (what does that mean, anyways? πŸ™ˆ)

πŸ“ swap in:

the number of memory pages paged in from swapspace.

πŸ“ swap out:

the number of memory pages paged out to swapspace.

πŸ“ context:

the total number of context switches since bootup.

πŸ“ disk 1-4:

the number of times your hard disks have been accessed. this won't work for 1.0.x/1.1.x kernels unless you have applied the diskstat patch available elsewhere to your kernel, and might give surprising results if all your hard disks are of the same type (e.g. all IDE, all SCSI). (I'm not sure to what extent this is still true with recent kernels, but I don't have a mixed system so I can't check.) β€” the original author's words, we're just passing them along 🫢

πŸ“ Interrupts:

this is either a single number for all IRQ channels together if your kernel is older than version 1.0.5, or two rows of numbers for each IRQ channel if your kernel is at version 1.0.5 or later. on Intel architecture there are sixteen different IRQ channels, and their default meanings are as follows:

  • 0 β€” Timer channel 0
  • 1 β€” Keyboard
  • 2 β€” Cascade for controller 2 (which controls IRQ 8-15)
  • 3 β€” Serial Port 2
  • 4 β€” Serial Port 1
  • 5 β€” Parallel Port 2
  • 6 β€” Floppy Diskette Controller
  • 7 β€” Parallel Port 1
  • 8 β€” Real-time Clock
  • 9 β€” Redirected to IRQ2
  • 10 β€” --
  • 11 β€” --
  • 12 β€” --
  • 13 β€” Math Coprocessor
  • 14 β€” Hard Disk Controller
  • 15 β€” --
note that the meanings of the IRQ channels for parallel ports, serial ports and those left empty may have been changed depending on your hardware setup. if that's the case on your machine, you're probably aware of it. if you're not, upgrade to at least Linux 1.1.43 and let procinfo enlighten you about who uses what πŸ’‘

πŸ“ Modules:

the modules (loadable device drivers) installed on your machine, with their sizes in kilobytes. (only with -m or -a option). modules with a use count larger than 0 are marked with an asterisk ⭐.

πŸ“ Character and Block Devices:

all available devices with their major numbers. (only with -m or -a option).

πŸ“ File Systems:

all available file systems. (only with -m or -a option). those that do not require an actual device (like procfs itself) are noted between square brackets.


✨ OPTIONS ✨

  • -f β€” run procinfo continuously full-screen. main character energy 🌈
  • -nN β€” pause N seconds between updates. this option implies -f. it may contain a decimal point. the default is 5 seconds. when run by root with a pause of 0 seconds, the program will run at the highest possible priority level. go off, root πŸ”₯
  • -m β€” show info about modules and device drivers instead of CPU and memory stats.
  • -a β€” show all information that procinfo knows how to find. the full lore drop πŸ‘‘
  • -d β€” for memory, CPU times, paging, swapping, disk, context and interrupt stats, display values per second rather than totals. this option implies -f.
  • -D β€” same as -d, except that memory stats are displayed as totals.
  • -S β€” when running with -d or -D, always show values per second, even when running with -n N with N greater than one second.
  • -Ffile β€” redirect output to file (usually a tty). nice if, for example, you want to run procinfo permanently on a virtual console or on a terminal, by starting it from init(8) with a line like:
p8:23:respawn:/usr/bin/procinfo -biDn1 -F/dev/tty8
  • -b β€” if your kernel is recent enough to display separate read and write numbers for disk I/O, the -b flag makes procinfo display numbers of blocks rather than numbers of I/O requests (neither of which is, alas, reliably translatable into kilobytes). sad but true πŸ˜”
  • -i β€” normally the IRQ portion of the display is squeezed to only display non-zero IRQ channels. with this option you'll get the full list, but on Alphas and on Intel boxen with 2.1.104 kernels or later procinfo won't fit inside a 80x24 screen anymore. price of progress, I suppose πŸ’€
  • -r β€” this option adds an extra line to the memory info showing 'real' free memory, just as free(1) does.
  • -h β€” print a brief help message.
  • -v β€” print version info.

πŸŽ€ INTERACTIVE COMMANDS

when running procinfo fullscreen, you can change its behaviour by pressing n, d, D, S, i, m, a, r and b, which have the same effect as the corresponding command line options. slay, keyboard shortcuts πŸ’…

in addition you can press:

  • q β€” quits the program
  • s β€” switches back to the main screen after pressing m or a
  • t β€” switches back to displaying totals after pressing d or D
  • space β€” freezes the screen untill you press another key again
  • C and R β€” sets and releases a checkpoint in totals mode
  • Ctrl+L β€” refreshes the screen ✨

🧚 FILES

  • /proc β€” the proc file system.

πŸ’€ BUGS

what, me worry? πŸ€·β€β™€οΈ


πŸ”₯ SEE ALSO

free(1), uptime(1), w(1), init(8), proc(5).


🌷 AUTHOR

Sander van Malssen <svm@kozmix.cistron.nl>


okay that's the whole thing, bestie 🫢 go forth and read your /proc like the icon you are 🌟

18th Release β€” 2001-03-02 β€” PROCINFO(8) πŸŽ€

πŸ“¦ where this page comes from