OpenVZ Forum

Home » Mailing lists » Users » How to set resource quota of other process
How to set resource quota of other process [message #25434] Tue, 25 December 2007 04:52 Go to previous message
Ian jonhson is currently offline  Ian jonhson
Messages: 11
Registered: October 2007
Junior Member

We all know that we can set resource quota of process with
The module can enforce the resource usage (cpu, memory, maximal number of
open file, etc) by setrlimit.

It seems that the function, setrlimit(), can only set self resource
quota of process and inherit by its child processes, right?

Because I adopted the function in one process to set another process'
resource quota, and found nothing enforced happen. The other process can run as
before, not any limitation.

I don't know whether what I have designed is correct, using the setrlimit to
set other process resource usage. If it is wrong, are there other ways to
accomplish my target?

Also, in OpenVZ, are there any auxiliary tools (or libraries, functions) to
do enforcement?

Thank you in advance.

Read Message
Read Message
Read Message
Read Message
Previous Topic: Live Migration Fails
Next Topic: Fedora core 7
Goto Forum:

Current Time: Mon May 20 07:02:59 GMT 2024

Total time taken to generate the page: 0.01388 seconds