Have a look at http://openbsd-archive.7691.n7.nabble.com/Port-request-cpulimit-td267083.html and please let me know how it went!
All the best, Murk On Sun, May 27, 2018 at 12:07 PM, Maximilian Pichler < maxim.pich...@gmail.com> wrote: > Is it possible to limit the CPU usage of a given process to, say, 20%? > > I'd like to slow down the web browser since it is draining my laptop's > battery. With enough tabs open it's often consuming ~50% of CPU but > not doing anything productive. Apparently with RLIMIT_CPU in > setrlimit(2) the total CPU time of a process can be limited. Can a > similar limit be set for the percentage? > > Thanks > >