CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
Benchamarking

 



kidd
User

Apr 30, 2003, 3:11 PM

Post #1 of 3 (564 views)
Benchamarking Can't Post

Im usins the Benchmark module to check my CGI's.

Now I have 1 question, what should be the optimal CPU usage of each script?

My scripts use about 0.06 CPU when running...

But I don't know if that's good, bad or really bad.

I hope someone can help me...

THANKS

"So you want to be a cowboy
Well you know it's more than just a ride
Guess you got to know the real thing
If you want to know the other side
Ain't nobody riding shotgun
In this world tonight"


Paul
Enthusiast

Apr 30, 2003, 3:39 PM

Post #2 of 3 (558 views)
Re: [kidd] Benchamarking [In reply to] Can't Post


Quote
what should be the optimal CPU usage of each script?


Impossible to answer. Depends on things such as the script size, the code, the script function, perl configuration, server configuration.


(This post was edited by Paul on Apr 30, 2003, 3:39 PM)


kidd
User

Apr 30, 2003, 4:19 PM

Post #3 of 3 (555 views)
Re: [Paul] Benchamarking [In reply to] Can't Post

Thanks for your reply.
The thing is that recently my client's sever has been overloaded and they blamed one of my script, that's the reason I checked all of them.

We are allowed to use 3% of the total CPU usage, so that is like from 3 to 5 CPU's but the server load we are using is between 10 to 15.

What I wanted to do is check if one of my script where doing the server load of one of the other host, because we are on a shared plan.

I though that my CPU usage per script was very normal, and we may have up to 20 users at the same time. So I made a little math and thought:

"If my script is using 0.15 CPU and lets say that 20 users use it at the sames time(it's very unusual), then it would be 3 CPU, that is not close to 10 or to 15".

I just wanted to be sure that my script aren't using a lot of server load...

"So you want to be a cowboy
Well you know it's more than just a ride
Guess you got to know the real thing
If you want to know the other side
Ain't nobody riding shotgun
In this world tonight"

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives