Skip to content

Need a good process-management / limits exercise

leaky binary? fork-bomb? processor-hogging user? Processor-hogging users could alse be used for limits.

Anyway, the mats don't seem to include any opportunity to discuss job and process management, so maybe we should invent a story or incident in which process management matters.

Process notes

  • Use killall to kill by name
  • Use pgrep, not ps aux | grep to find processes
  • Discuss signals: hup, int, term, kill, etc...
  • Use top for interactive. Try M and 1.
  • Use kill %1 to kill job 1 by it's job-number, rather than it's pid
  • Use command & to run command in the background
  • Use +z and +c to send stop and int from the keyboard

Hints on commands and configs

  • top, ps, kill, skill, pkill, pgrep, killall
  • jobs
  • bg
  • fg
Edited by David L. Willson
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information