Re: Re: Limiting Cpu usage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Wednesday, April 13, 2005, 8:20:46 AM, you wrote:
z> Yeahh! i have made it....
z> i can slow down a php script , as i edited the zend engine source to usleep
z> every 1000 low-level instructions....
z> now, is there a way to determine to check my cpu load and adjust it by that
z> so if nothing (or very low cpu usage) is running on the system he'll get
z> extra power? 


On Linux you can cat /proc/loadavg to get the current load (3rd number
in)

-- 
regards,
Tom

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux