Re: [PHP] Re: Limiting Cpu usage

2005-04-12 Thread Tom Rogers
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

[PHP] Re: Limiting Cpu usage

2005-04-12 Thread zini10
Yeahh! i have made it i can slow down a php script , as i edited the zend engine source to usleep every 1000 low-level instructions now, is there a way to determine to check my cpu load and adjust it by that so if nothing (or very low cpu usage) is running on the system he'll get extra p

[PHP] Re: Limiting Cpu usage

2005-04-11 Thread zini10
in a brief rethinking, that is excatly what i need to do - change the php itself... now, i found the execute function but can someone please explain how can i put a usleep or sleep or somethink which doesnt take up cpu cycles (like the sleep command in linux?) thanks/ -- PHP General Mailing L

[PHP] Re: Limiting Cpu usage

2005-04-11 Thread zini10
Yeah . i thought about removing those entire functions by "DISABLE_FUNCTIONS" directive , it not that common either. is there a way to enforce declare(ticks=); automatically? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: Limiting Cpu usage

2005-04-11 Thread Jared Williams
> but i must give them php support or else they coulnot do > anything on the server... > im limiting them by functions , safe mode and more.. I've known atleast one hosting operation that compile their own custom PHP, to limit the impact of problematic code. The only thing I can remember that

[PHP] Re: Limiting Cpu usage

2005-04-11 Thread zini10
but i must give them php support or else they coulnot do anything on the server... im limiting them by functions , safe mode and more.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Limiting Cpu usage

2005-04-11 Thread Richard Lynch
On Sun, April 10, 2005 10:55 am, zini10 said: > Thought about that, but its a free host that will host many many users.ill > prefer them to have low cpu usage limit also if the system is free of > tasks > as that will never happen. > any user can come, prepare a script which will do a infinite loop

[PHP] Re: Limiting Cpu usage

2005-04-10 Thread zini10
Thought about that, but its a free host that will host many many users.ill prefer them to have low cpu usage limit also if the system is free of tasks as that will never happen. any user can come, prepare a script which will do a infinite loop and will make the server slow for all other users. t