Go Back   vb.org Archive > Community Discussions > Forum and Server Management
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-28-2008, 09:10 PM
techdeals07 techdeals07 is offline
 
Join Date: Aug 2008
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default opinions on forum server upgrade

We are a decent size forum. We run 300-500 users online 90% of the time with a traffic spike a few days a month of up to 6000 users. We handle the load pretty well up until around 4000 users, where we see a few timeouts but it's generally fairly tolerable.

We are currently running on a Intel Core2 Duo CPU E7200 @ 2.53GHz, CentOS 32 bit, 4gb ram.

Anyway, our host is offering us a free upgrade of either an additional 4gb ram (bringing the total to 8gb) or a Quad Core Q6600 @ 2.40GHz.

Need opinions on which one of these upgrades will give us the biggest performance boost during those peak times we are getting slammed.
Reply With Quote
  #2  
Old 10-28-2008, 11:32 PM
kermit2 kermit2 is offline
 
Join Date: Jun 2008
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hard to say for certain. You really need spend a bit of time watching the server (during normal operation) and seeing what the RAM/CPU usage are like. You'll get an idea of CPU usage from vmstat (lots of blocking processes == bad). With memory it'll be trickier as a good chunk of it will probably be taken up by caches and buffers. You can look at memory usage with 'free', but a better indication might be the I/O columns of vmstat - ideally you want disk IO to be low, and more memory is often a good way to do that.

Are Apache and MySQL both on the same machine?
Reply With Quote
  #3  
Old 10-29-2008, 12:06 AM
techdeals07 techdeals07 is offline
 
Join Date: Aug 2008
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here's vmstat from a few minutes ago. Currently Active Users: 1866 (992 members and 924 guests)



No idea what this means...:-)


And yes, Apache and MySQL on the same box.
Reply With Quote
  #4  
Old 10-29-2008, 01:19 AM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Take the ram!
Reply With Quote
  #5  
Old 10-29-2008, 03:37 PM
techdeals07 techdeals07 is offline
 
Join Date: Aug 2008
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FRDS View Post
Take the ram!
My initial thoughts as well, but some concerns with 32bit CentOS / 4gb memory limitation / PAE Kernal...
Reply With Quote
  #6  
Old 10-29-2008, 07:30 PM
djxcee djxcee is offline
 
Join Date: Mar 2008
Location: SoCal
Posts: 179
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I say upgrade the processor. Adding more ram is cheaper then getting a different processor.
Reply With Quote
  #7  
Old 10-29-2008, 08:49 PM
kermit2 kermit2 is offline
 
Join Date: Jun 2008
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Trying running 'vmstat 20'. That'll cause it to output every 20 seconds. Leave it running for 10 minutes or so ... should give you a better idea of what's going on
Reply With Quote
  #8  
Old 10-30-2008, 05:38 AM
puertoblack2003's Avatar
puertoblack2003 puertoblack2003 is offline
 
Join Date: Aug 2005
Location: Philadelphia
Posts: 1,073
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kermit2 View Post
Hard to say for certain. You really need spend a bit of time watching the server (during normal operation) and seeing what the RAM/CPU usage are like. You'll get an idea of CPU usage from vmstat (lots of blocking processes == bad). With memory it'll be trickier as a good chunk of it will probably be taken up by caches and buffers. You can look at memory usage with 'free', but a better indication might be the I/O columns of vmstat - ideally you want disk IO to be low, and more memory is often a good way to do that.

Are Apache and MySQL both on the same machine?

just curious about this.Is there a difference when you run apache and mysql in the same box?
Reply With Quote
  #9  
Old 10-30-2008, 11:58 AM
kermit2 kermit2 is offline
 
Join Date: Jun 2008
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by puertoblack2003 View Post
just curious about this.Is there a difference when you run apache and mysql in the same box?
If the server is just running Apache, I tend to find CPU to be the bottleneck - memory usage is modest, but PHP execution tends to be CPU hungry.

With a dedicated MySQL machine, you're hoping that as much of the database as possible will be cached in memory (faster than reading the data from disk), so memory tends to be the bottleneck. Of course MySQL can be CPU intensive too (eg when searching), but a lot of the time it isn't, and in those situations, having the data already cached in RAM can be a big performance boost.

If both Apache and MySQL are on the same box it's harder to know which is the bottleneck
Reply With Quote
  #10  
Old 11-01-2008, 03:43 PM
puertoblack2003's Avatar
puertoblack2003 puertoblack2003 is offline
 
Join Date: Aug 2005
Location: Philadelphia
Posts: 1,073
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kermit2 View Post
If the server is just running Apache, I tend to find CPU to be the bottleneck - memory usage is modest, but PHP execution tends to be CPU hungry.

With a dedicated MySQL machine, you're hoping that as much of the database as possible will be cached in memory (faster than reading the data from disk), so memory tends to be the bottleneck. Of course MySQL can be CPU intensive too (eg when searching), but a lot of the time it isn't, and in those situations, having the data already cached in RAM can be a big performance boost.

If both Apache and MySQL are on the same box it's harder to know which is the bottleneck
ok, so the issue is bottleneck? would you suggest to keep it in a separate box ?
Reply With Quote
Reply


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:56 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04461 seconds
  • Memory Usage 2,258KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete