Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.5: Set CPU usage limit per Parallels virtual machine' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: Set CPU usage limit per Parallels virtual machine
Authored by: jclin on Apr 08, '09 08:17:06AM

You should use kill() instead of invoking kill via system() call. The system() call needs more resources and causes overhead. It needs to fork, execute shell, and run the kill executable file. There should be many CPU usage introduced by the cpu-limit if there are many cpu-limit instances.



[ Reply to This | # ]
10.5: Set CPU usage limit per Parallels virtual machine
Authored by: john_g on Apr 08, '09 01:52:11PM

there is no system calls in cpu-limit
Only kill is in GUI from Apple Script, when you click Stop limiting CPU
CpuLimiter will be GPLed or BSDed :) , you will see the code



[ Reply to This | # ]
10.5: Set CPU usage limit per Parallels virtual machine
Authored by: john_g on Apr 08, '09 01:54:20PM

I meant kill system calls



[ Reply to This | # ]