CentOS: Increase CPU load on all 56 cores simultaneously to >90%
CentOSThis forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
CentOS: Increase CPU load on all 56 cores simultaneously to >90%
Hi All
I am using CentOS 7. I am trying to increase load as part of cpu load testing. however seems that whenever i do that it uses few cores only.
Please help what is the best way to increase load on all CPU cores simultaneously. Whats the command and how to see (top).
The funny thing is that on Linux CPU "load" doesn't really seem to be a good measure of performance like it was on UNIX. On UNIX if I had a load greater than 1 on all my CPUs performance was degraded. If it ever got to 2 UNIX would seem almost to have stopped. On Linux however I've seen incredible load values (e.g. 32) without having complaints about performance. It is only when "busy" goes to more than 95% (and idle to less than 5%) that I see Linux systems having obvious performance issues.
Due to that I've been wanting another way to determine CPU utilization for monitoring. Since "busy" and "idle" are point in time rather than cumulative over time like load (5, 10 and 15 minutes) there doesn't seem to be an easy way to capture this. I'd have to script something that got values and average them but even that sounds kludgey.
Be careful what you wish for @MensaWater ...
Have a read of this for more than you ever wanted to know. I've been following Brendan for years - good stuff.
Be careful what you wish for @MensaWater ...
Have a read of this for more than you ever wanted to know. I've been following Brendan for years - good stuff.
In UNIX, load averages are calculated from the number of runnable processes and processes waiting for disk I/O (the non-interruptable processes mentioned in Brendan's article - non-interruptable means "disk i/o" for almost all purposes). Linux seems to define that value exactly the same. For an attempt to cram "system load" into a single number, the load average seems to have been rather useful over the years.
Now the OP wants raw CPU usage, so that load average is not a good metric here.
Be careful what you wish for @MensaWater ...
Have a read of this for more than you ever wanted to know. I've been following Brendan for years - good stuff.
Thanks for sharing that. It confirms what I've seen on Linux and explains WHY I see it. It even gives suggestions for tools that might more accurately reflect just CPU load as opposed to overall system load.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Sorry if I'm reading this wrong but to "load up" my CPU for cooling testing and the like I find that Prime95 in the shape of mprime will do a pretty good job.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.