Limit CPU and Memory

6 posts / 0 new
Last post
#1 Mon, 08/31/2009 - 18:58
anty506

Limit CPU and Memory

Hi,

I have created a new virtual server for a client and I am wanting to limit the CPU and Memory for that client. I want him to only be able to max out at half of my CPU and Memory.

How can I set these limits?

Thanks

Mon, 08/31/2009 - 19:24
andreychek

Howdy,

You can set CPU and memory limits in Administration Options -> Edit Resource Limits.

-Eric

Mon, 08/31/2009 - 19:48
anty506

I don't have that under Administration Options

Mon, 08/31/2009 - 19:54
andreychek

Okay, that's likely a Pro-only feature then.

However, you can manually setup limits using the PAM limits available in /etc/security/limits.conf.

-Eric

Mon, 08/31/2009 - 21:39
anty506

Ok, I have set the mem now what about the CPU.... its in Minutes?? What should that be set to?

Tue, 09/01/2009 - 12:48
ronald
ronald's picture

I thought it was in cycles, but I dont know the formula for it myself.
the result of a script usage would look like iz_username - domain.org - vol2/domain.org/username/htdocs/gb/gb_action.php - 877.492

Topic locked