icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Choosing Surpass » Questions before signing up? » [Answered] [Question] CPU Usage

Questions before signing up? Ask away!

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread
Old February 13th, 2008, 11:09 AM   #1 (permalink)
some girl...
Fresh Surpasser
 
Joined in Feb 2008
Hosted on SH123
12 posts
Gave thanks: 0
Thanked 0 times
[Answered] [Question] CPU Usage

Hi! A quick question before I sign up...I really don't understand what CPU Usage is. Can someone explain it to me please? Also, what's the usage limit for surpass shared hosting? And what can i do to prevent from over-using the cpu?
tofu is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 13th, 2008, 11:13 AM   #2 (permalink)
Surpass Abuse Admin
Super #1
 
removed's Avatar
 
Joined in Mar 2005
Lives in Houston, TX
Hosted on NONE
7,797 posts
Gave thanks: 11
Thanked 278 times
This is the limit: About Surpass Hosting

The page does a pretty good job of explaining what it is. As for preventing it, most sites won't cause problems, but if they do we'll do our best to notify you and get you moved over to a dedicated server. There really is no way to specifically prevent going over the CPU usage quota if you've got a high traffic site.
__________________
Unofficial IRC Channel: #surpass EFNet
Unofficial = No official support. Support requests can be submitted to our helpdesk.
removed is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 13th, 2008, 11:21 AM   #3 (permalink)
H
after g, before i
Resident.
 
H's Avatar
 
Joined in Jul 2004
Lives in N,BC,CA
8,087 posts
Gave thanks: 48
Thanked 131 times
CPU Usage

Web languages are generally not compiled code. They're intrepreted on the fly by things like PHP, Python, Ruby, etc... This is not only kinda slow (compared to compiled code), but it also requires more CPU. Just think of every PHP include you're doing.

Everytime someone loads a page is it essentially recompiling on the fly. The whole thing. To help curb CPU usage you can start caching content in a number of ways. Memcach, fragment caching, or even having your CMS generate new HTML on every update. Any of these can significantly reduce the CPU usage by reducing the amount of times it actually has to generate the whole page.

Let's look at a thread on Surmunity. I just found one with 3 replies and 50 views. Simple math shows a difference of 47 times the page was generated, but no content was changed. That's pretty inefficient.

removed is mostly right, but if your site is not being served from cache, you can probably get your site from overusing CPU to within the limits by enabling it. If you breach it again, you'll definitely want to look at a dedicated solution -- which would hopefully yield performance gains all around.
H is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 13th, 2008, 11:39 AM   #4 (permalink)
Operations
Super #1
 
Joined in Jun 2005
Lives in surpass headquarters
1,028 posts
Gave thanks: 67
Thanked 128 times
Heres an older security link/image
http://www.surpasshosting.com/conten...g-security.png
Keeping up with security on your account will reduce the chances of violating our RAP
__________________
Mike
Surpass Special Operations

Last edited by Mike; February 13th, 2008 at 11:41 AM.. Reason: stickied
Mike is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 13th, 2008, 5:14 PM   #5 (permalink)
some girl...
Fresh Surpasser
 
Joined in Feb 2008
Hosted on SH123
12 posts
Gave thanks: 0
Thanked 0 times
So if I use a cms instead of having pages with php includes, would it reduce the risk of overusing?

Also, can i set a restriction on my cpu usage just in case if i go overboard?
tofu is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 13th, 2008, 6:13 PM   #6 (permalink)
Surpass Abuse Admin
Super #1
 
removed's Avatar
 
Joined in Mar 2005
Lives in Houston, TX
Hosted on NONE
7,797 posts
Gave thanks: 11
Thanked 278 times
Quote:
Originally Posted by tofu View Post
So if I use a cms instead of having pages with php includes, would it reduce the risk of overusing?
Any kind of CMS with cached pages would help a lot. I highly recommend tools like WP-Cache2 for WordPress as they tend to help reduce load for some larger sites.

Quote:
Originally Posted by tofu View Post
Also, can i set a restriction on my cpu usage just in case if i go overboard?
Nope. cPanel's user accounting system doesn't have a way to limit CPU time per user, so that is not possible at this time.
__________________
Unofficial IRC Channel: #surpass EFNet
Unofficial = No official support. Support requests can be submitted to our helpdesk.
removed is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 13th, 2008, 8:38 PM   #7 (permalink)
some girl...
Fresh Surpasser
 
Joined in Feb 2008
Hosted on SH123
12 posts
Gave thanks: 0
Thanked 0 times
AH okie then i'll just cache the pages in joomla ^_^ Thanks you guys for everything!
tofu is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 13th, 2008, 9:23 PM   #8 (permalink)
Surpass Abuse Admin
Super #1
 
removed's Avatar
 
Joined in Mar 2005
Lives in Houston, TX
Hosted on NONE
7,797 posts
Gave thanks: 11
Thanked 278 times
No problem, happy to help.
__________________
Unofficial IRC Channel: #surpass EFNet
Unofficial = No official support. Support requests can be submitted to our helpdesk.
removed is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 20th, 2008, 6:47 AM   #9 (permalink)
some girl...
Fresh Surpasser
 
Joined in Feb 2008
Hosted on SH123
12 posts
Gave thanks: 0
Thanked 0 times
im still a bit worried about cpu >.< sorry. One last question: is it possible for me to get a warning when i'm close to my limit?
tofu is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may post new threads
You may not post replies
You may post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On