Author Topic: How much load does SMF take on CPU Resource for large forums ? pls help  (Read 6536 times)

Offline Daniel15

  • SMF Friend
  • Simple Machines Hero
  • *
  • Posts: 4,190
  • Gender: Male
  • http://dan.cx/
    • Daniel15
Quote
So disable compressed output (under Server Settings -> Feature Configuration).
This is a tradeoff... It will reduce CPU usage, but increase bandwidth usage ;).
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

Offline Badmovies.org

  • Semi-Newbie
  • *
  • Posts: 24
  • Gender: Male
  • I know where my towel is.
    • Badmovies.org
Ben_S is correct.  15 users is not that much load.

I agree that it is not much load, but many shared hosts are overselling so bad that they will suspend the account, citing TOS, at that point.  Heck, a bunch of them limit the number of database connections to such a low number that it is nearly unusable.


My forums have about 50 to 120 users online at any given time, bursting to 160. The forums use about 100% of one CPU in a dual CPU box (shared hosting). Disabling zlib compression brought that down from 130%. So disable compressed output (under Server Settings -> Feature Configuration).

Thankfully, MySQL is hosted on a different box (also shared). I'm still having issues there with the huge amounts of writes to the smf_sessions and smf_log_online tables. Converting to InnoDB didn't help much. I'm going to see about converting those to MEMORY tables.

I'm running a little over 3 million queries to the database on average per day. In dealing with MySQL slowness (because of the huge amount of writes), my host suggested going VPS/dedicated once I hit about 4 million per day.

I get about 70,000 page views per day.

All that for $20/mn. Go Dreamhost!

It seems like Dreamhost sometimes lets people do stuff like that, overload their fair share.  Quite possibly, they can do this because other accounts are not using anything at all and/or do not care or notice the performance hit.  What you describe sounds like definite VPS territory.  High end, with extra memory tacked on the plan and settings tweaked, at that.

Just converting to InnoDB is not enough, you also have to optimize your my.cnf configuration.  Of course, on a shared plan with Dreamhost, you will not be able to do so.
Andrew Borntreger
Champion of Cinematic Disasters
The Bad Movie Website
www.badmovies.org [nofollow]

Offline «Mark»

  • Beta Tester
  • Simple Machines Hero
  • *
  • Posts: 1,899
  • Gender: Male
Re: How much load does SMF take on CPU Resource for large forums ? pls help
« Reply #22 on: September 28, 2007, 03:13:25 AM »
It seems like Dreamhost sometimes lets people do stuff like that, overload their fair share.  Quite possibly, they can do this because other accounts are not using anything at all and/or do not care or notice the performance hit.  What you describe sounds like definite VPS territory.  High end, with extra memory tacked on the plan and settings tweaked, at that.

Just converting to InnoDB is not enough, you also have to optimize your my.cnf configuration.  Of course, on a shared plan with Dreamhost, you will not be able to do so.

Yeah, SMF (and PHP) sure is memory hungry.

I goofed reading their stats earlier. Apparently they have a "quota" of 24,000 cpu seconds per day, not the 86,400*2 seconds available on the machine (a quota that's not enforced). So I'm now running a little under 50,000 seconds, or about 14% of the CPU time.

I am, however, running into memory issues when dozens of php requests happen in a matter of seconds. I'm going to have to look into running a pool of php processors through some kind of cgi wrapper.
The welfare of the people in particular has always been the alibi of tyrants. — Albert Camus

Offline Minare

  • Sophist Member
  • *****
  • Posts: 1,217
    • İslam Portalı
Re: How much load does SMF take on CPU Resource for large forums ? pls help
« Reply #23 on: March 07, 2008, 05:49:19 PM »
Hello

I didn't need to open another topic for this one will meet my need ( I guess )

I have nearly 15000 members and in 15 minutes, there are always about 100 - 200 guests and 20 - 40 members.

The page shows for a month has been over 1000.000 for two months and sometimes my forum gives error or becomes very slow.

I dunno if this requires vps or not ?

This is what I want to learn. Thanks.