[opensuse] possibility to define maximum per-user cpu share?
It's easy to google if something can be done, but not so easy to google out wheather if something cannot be done so here can some guru please let me know if I can define maximum per-user cpu share? I got this question because I have a X Terminal Server (x client in X terminology) which 10 people connect to it through X terminals. Sometimes one user access a flashy website and firefox took 100% percent of CPU resource, slowing everyone down. So I'd like to configure SuSE to give any user not more than 80% of full cpu resource, or automatically use 'nice' to turn down the priority of the proces that sucks CPU resource most. I have checked /etc/security/limits.conf and cannot find an option that can do this. Thanks a lot in advance! Best Regards Zhang Weiwu -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Tuesday 2007-01-30 at 17:39 +0800, Zhang Weiwu wrote:
It's easy to google if something can be done, but not so easy to google out wheather if something cannot be done so here can some guru please let me know if I can define maximum per-user cpu share?
I got this question because I have a X Terminal Server (x client in X terminology) which 10 people connect to it through X terminals. Sometimes one user access a flashy website and firefox took 100% percent of CPU resource, slowing everyone down. So I'd like to configure SuSE to give any user not more than 80% of full cpu resource, or automatically use 'nice' to turn down the priority of the proces that sucks CPU resource most. I have checked /etc/security/limits.conf and cannot find an option that can do this.
I'm not aware of such a posibility. However, you may have a look at some kernel compile options that might help. For instance "Preemption Model (Voluntary Kernel Preemption (Desktop)) --->" "Timer frequency " "IO Schedulers ---->" But I don't know how to tweak process scheduling, even if possible. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFFv6vStTMYHG2NR9URAtWdAJwJXVlhYPv8dALwuFZIGfqcXsJGYgCfU0VN Ae9gyeX/4/M4+ao4TJJ9K7I= =y1gC -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
I don't know any such technics, but on a Multi-Processor/Multi-Core system you could use virtual machines, so each user could run only on his VM, that is affined to specific CPU. But again, I'm not an expert in Linux. Just an average guy. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 30 Jan 2007, robin.listas@telefonica.net wrote:
I'm not aware of such a posibility.
One option is to use: http://cpulimit.sourceforge.net/ Another option is schedtool: http://freequaos.host.sk/schedtool/ Charles -- "Nature abhors a Vacuum" -- Brian Behlendorf on OSS (Open Sources, 1999 O'Reilly and Associates)
participants (4)
-
Alexey Eremenko
-
Carlos E. R.
-
Charles philip Chan
-
Zhang Weiwu