ksh(1) has ulimit comand to limit process in certain way. just search for ulimit on the ksh man-page.
On 27 May 2018 at 18:28, Luke A. Call <luke...@onemodel.org> wrote: > I had that problem but turning off javascript (as someone else said), > turning off images most of the time, and bookmarking the tab group then > closing as many tabs as I wasn't actually going to use soonest (especially > any viewing PDF files), dropped it down to ~4%. > > On 05-27 12:07:16+0200, Maximilian Pichler 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 > > > > -- +49.179.1448024 Karl-Kunger-Straße 68 D - 12435 Berlin