PHP Classes

CPU Load Calculator: Retrieve the CPU load level under Linux

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2006-05-15 (8 years ago) RSS 2.0 feedStarStarStarStar 73%Total: 4,250 This week: 3All time: 644 This week: 530Up
Version License PHP version Categories  
cpuload 1.0GNU General Publi...3System information, Unix, Performance...
Description Author  

This class can be used to retrieve the CPU load level on a system running Linux.

The class retrieves the CPU load information from /proc/stat and returns the user, nice and system mode loads, the CPU load percentage, and the idle load percentage.

Innovation Award  
PHP Programming Innovation award nominee
June 2006
Number 7
The CPU load is a measure of how busy an operating system is.

If a system is too busy and you need to execute an heavy task that may not be prioritary, it may be better to hold on the task for a while until the system becomes less busy.

This class is capable of retrieving the current CPU load, and so it can be useful to make task scheduling decisions that depend on how busy the operating system is on the moment.

Manuel Lemos
Picture of Helmut Daschnigrum
Name: Helmut Daschnigrum <contact>
Classes: 6 packages by
Country: Canada Canada
Age: ???
All time rank: 1027 in Canada Canada
Week rank: 399 Down10 in Canada Canada Down
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Plain text file class_CPULoad.php Class Main class file
Accessible without login Plain text file LICENSE Lic. License terms
Accessible without login Plain text file README Doc. Documentation
Accessible without login Plain text file showload.php Example Example script

 Version Control Unique User Downloads Download Rankings  
 0%Total:4,250All time:644
 This week:3This week:530Up
User Ratings User Comments (1)  
 All time