optimization - CPU limit background processes on Linux -
i found:
- http://www.refining-linux.org/archives/64/programmatically-limit-cpu-usage-of-certain-processes/
- limiting processes cpu % - linux
but wonder how detect xwindow applications in background , cpulimit them? hint?
that useful limiting cpu usage web browsers in background.
my quick , dirty solution: https://gist.github.com/dmgr/08f9dc89095eab4c74b5
as described here: https://stackoverflow.com/a/2042371/2838914
you can't directly pid window id, have go other way around, mapping windows id , pid together.
Comments
Post a Comment