How to set CPU load on a Red Hat Linux box?
问题 I have a RHEL box that I need to put under a moderate and variable amount of CPU load (50%-75%). What is the best way to go about this? Is there a program that can do this that I am not aware of? I am happy to write some C code to make this happen, I just don't know what system calls will help. 回答1: This is exactly what you need: http://weather.ou.edu/~apw/projects/stress/ From the homepage: "stress is a simple workload generator for POSIX systems. It imposes a configurable amount of CPU,