Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Aiheen aloitti: SergeantAsh - helmikuu 24, 2009, 02:33:02 IP

Otsikko: Memory Usage between versions?
Kirjoitti: SergeantAsh - helmikuu 24, 2009, 02:33:02 IP
I'm currently using Dreamhost as my host, they're fairly strict on memory usage - on shared plans we're allowed up to 150mb before we see 500 Server Errors - I'm not on a semi-dedicated- plan that allows me to allocate more memory, however I'm still hitting 300-400mb during peak times whcih seems a lot for a forum??

The forum in question is v1.1 RC2 (not ideal I know but was too much hassle to upgrade) and so I'm awaiting v2 final before upgrading.

Here's the stats for the forum over 3 months...

                               Topics    Posts            Members    Most Online
February 2009        470       6563            697            52
January 2009          596       10592          1068          56
December 2008      498        8587            1352          61

Total Members: 9524
Total Posts: 256842
Total Topics: 18178

My question is will the memory usage vary substantially once I migrate the forum to v2 SMF, is it much more efficient?

Also, for the forum of such traffic, is 300-400mb of PHP memory usage excessive?

I appreciate your views.
Otsikko: Re: Memory Usage between versions?
Kirjoitti: John Eric - helmikuu 25, 2009, 08:15:27 AP
1.1RC2?

and current = 1.18?

between 1.1rc <--->1.18 is upgrade to many SQL query!

overall, limit mods reduce status that show - member, last posts etc.
limit boards to not guest so spider cannot enter and use CPU to retrieve or Robots.txt to talk to spiders directly, Yahoo will greedy read forum until it crash sometime

Otsikko: Re: Memory Usage between versions?
Kirjoitti: SergeantAsh - helmikuu 25, 2009, 08:18:33 AP
Thanks for your reply John.

I'm specifically looking at memory load differences between v1.1 RC2 and v2 Final - I think minor things such as showing member status would make little difference?
Otsikko: Re: Memory Usage between versions?
Kirjoitti: John Eric - helmikuu 25, 2009, 09:39:01 AP
correct
but display that require query of database will be painful to you.

like, recent post,  member avatar (other than avatar of you, current member)

memberlist - set it to display 10 each, not 100 (also this shall increase difficulty for nasty member/spammer to scrape member list :P - maybe have it so only moderate/admin to view memberlist? )

mod that have many settings may pull settings from database.

disable search? if not all times , maybe sometimes or for some membergroups?
disable attachments? let them link offsite - make easiest conversion, upgrades and more security
SMF2.0 has cache to avoid query
Otsikko: Re: Memory Usage between versions?
Kirjoitti: karlbenson - helmikuu 25, 2009, 09:55:18 AP
There aren't many differences between the rc and final versions of 1.1.x.  mainly bugs fixes and the odd optimization.
That said you should be using that much memory even with 1.1 rc's. 

Have you got a custom search index or fulltext index.
If not you should be using one.
Otsikko: Re: Memory Usage between versions?
Kirjoitti: SergeantAsh - helmikuu 25, 2009, 10:04:19 AP
The real question is differences between v1.1RC2 and v2 FINAL - I like the idea of disabling attachments, nice idea and saves diskspace too!!
Otsikko: Re: Memory Usage between versions?
Kirjoitti: SergeantAsh - helmikuu 26, 2009, 04:17:38 IP
Guys,

Just thought I should flag this application up, incredibly good reporting on memory permitted on your server for your PHP instance, also how much memory is being used in realtime, on each refresh!

Its a simple PHP application, upload it and away you go - has answered all my questions!!

http://phpsysinfo.sourceforge.net/
Otsikko: Re: Memory Usage between versions?
Kirjoitti: JimM - maaliskuu 15, 2009, 01:05:57 AP
Lainaus käyttäjältä: @sh - helmikuu 26, 2009, 04:17:38 IP
Its a simple PHP application, upload it and away you go - has answered all my questions!!

In that case I'll mark this topic as solved then.