Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I've noticed that a lot of sites will end up using 100% CPU usage on their Chrome tab. I haven't investigated, but I do wonder what sort of faulty design leads to this. You occasionally hear talk of sites using your CPU to mine cryptocurrency, but I'm more inclined to suspect lousy programming.

I sometimes wish I had an easy way in Chrome to restrict a tab to, say, 5% CPU, for the cases where the CPU usage is clearly not adding any value. Just so I can get through an article without the fan ramping up.



  renice 19 ?


It's my understanding that renice doesn't limit CPU usage, but rather adjusts the process's priority in the scheduler relative to other processes. So I don't think it would stop a process from eating up all available idle cycles, draining the battery, and ramping up the fan.


Also, I don't think there's a trivial way to get the PID of the process handling a particular tab.


In Chrome, Task Manager shows PID along with CPU & memory usage.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: