Comment

Comment by tomkinstinch

This is nice! On OSX, processes can be paused and continued too (by name via killall, and by PID via kill):

  kill -STOP 1234
  kill -CONT 1234

  killall -STOP -c "Pandora"
  killall -CONT -c "Pandora"
A more nuanced control is to throttle down the CPU, via cputhrottle[1].

If I'm running a CPU-intensive calculation and don't want to bog down the rest of my system I will use it to give me enough cycles for Sublime Text to work smoothly.

It's easy to call:

  sudo cputhrottle PID cpuUsage%
ex.

  sudo cputhrottle 12345 400
1. http://www.willnolan.com/cputhrottle/cputhrottle.html
parent tomkinstinch 11 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton