vidaa
08-31-2009, 05:09 AM
I read the topics about limiting cpu usage,but the thing that i exactly want is to limit the percentage of cpu usage for all my users not to limit the number of processes,if anyone had any iadea,please suggest me?thanks alot
microbloghosting
09-02-2009, 08:26 AM
Putting cap on cpu usage for users is bad idea. If you find some user using large resources you can just ask them to upgrade to higher plan or dedicated server.
TonyB
09-02-2009, 12:10 PM
Putting cap on cpu usage for users is bad idea. If you find some user using large resources you can just ask them to upgrade to higher plan or dedicated server.
The idea is because if they spike their usage they're not going to bring down the entire server. It's not about some user using more than others it's about one guy throwing up some script sucking the life out of the server. If they can throttled down then it's not an issue.
njoker555
09-02-2009, 01:13 PM
don't think there is a way to do this with regular shared hosting - you will have to set up VPS to limit something like CPU or RAM per account.
if there is a way to do this on shared hosting...I would like to know as well :)
CreativHost
09-02-2009, 01:29 PM
You can limit it using PAM - http://www.userlocal.com/security/secpam.php
vidaa
09-03-2009, 04:30 AM
thanks for your considering my dear friends.but about PAM and limits.conf or ulimit or renice that are methods of limiting,they can just limit the number of processes not percentage of cpu usage,for this I just ask you maybe others have an idea about my problem,cause my server become down time to time,and the problem is some user's high percentage of cpu usage.I changed cpu's hardware to solve the problem ,but the problem is already exist.
already I'm waiting for your replys.
Best Regards
TonyB
09-03-2009, 01:28 PM
thanks for your considering my dear friends.but about PAM and limits.conf or ulimit or renice that are methods of limiting,they can just limit the number of processes not percentage of cpu usage,for this I just ask you maybe others have an idea about my problem,cause my server become down time to time,and the problem is some user's high percentage of cpu usage.I changed cpu's hardware to solve the problem ,but the problem is already exist.
already I'm waiting for your replys.
Best Regards
Are you looking more for something like this: http://www.mattheaton.com/?p=208 . They modified the kernel and added some watch processes as well by the sounds of it. It's not publicly available though but gives you an idea it's not a simple task to do.