1

Topic: PunBB 1.3 and CPU load

I have a not too busy forum -- so far up to ~80 user online simultaneously, -- however my hoster reports about 12-13% CPU usage by my forum at peak load. The (shared) server specs are: 2x Intel Xeon 3.4GHz 4Gb RAM.

It seems to me that for a "lightweight" forum that's kind of high, isn't it?

I wonder what figures of CPU load do other owners of PunBB forums get?

Re: PunBB 1.3 and CPU load

yes that happened to me too, i suggest for to owners of the punbb, to realease offical extension. Make it like Wp-SuperCache

so when the pages are html, the do not sent queries to database every time page loads.

MyFootballCafe.com  is Now Online!

Re: PunBB 1.3 and CPU load

An interesting idea. Have you got any ideas about the mechanism of caching pages?

4 (edited by SuperMAG 2009-04-03 10:33)

Re: PunBB 1.3 and CPU load

well, you can check the wordpress super cache plugin. since i am not a developer i can judge.

But.

but make a rule like this, any page that is updated (like forum main page, viewtopics, viewforums, rules etc)
Should be expired.
The first user who visit it after it is renewed. will generate a cache copy in the cache directory.
After that visitor. the cache page will be served to the other users.

User should have options like this

Autoclean the expired pages option, like day, week etc.
Also caches the 404 pages.
feed caching.
etc.

its kinda tricky, but not impossible i think. I hope this gives you a head start. well give you more suggestions after its in beta if you are going to make it.

you can also check the hyper cache of wordpress http://wordpress.org/extend/plugins/hyper-cache/, which is lighter and more effective then super cache.

MyFootballCafe.com  is Now Online!

Re: PunBB 1.3 and CPU load

It's a good idea for a simple site. As to forum, the content of every page depends on user settings and groups. For example, moderators see more than users and administrators see even more.

There is another idea related to cache: extension parser_cache. The most frequently displayed posts (or topics) can be fetched from DB, partially parsed and stored to a cache (a file or some files). This would reduce page generation time and CPU load.

8k84 wrote:

It seems to me that for a "lightweight" forum that's kind of high, isn't it?

By the way, what extensions do you have installed? Maybe there is one that produces high CPU load.

Also, you can include define('FORUM_SHOW_QUERIES', 1); in config.php to see what SQL queries are executed.

6

Re: PunBB 1.3 and CPU load

Extensions installed are pun_bbcode, pun_repository, pun_pm, pun_antispam, pun_poll, pun_quote. PM traffic is very low.

Also, last time CPU load was at peak (11.5%) the most "busy" pages were: forum (this must be index page) -- 1.5%, and forum/search-new.html -- 0.9%. At all times index page is responsible for 10-15% of CPU load used.

"User has posted" option is off, and I switched off "Topic vews" option, but that didn't help much.

Re: PunBB 1.3 and CPU load

Parpalak wrote:

It's a good idea for a simple site. As to forum, the content of every page depends on user settings and groups. For example, moderators see more than users and administrators see even more.

There is another idea related to cache: extension parser_cache. The most frequently displayed posts (or topics) can be fetched from DB, partially parsed and stored to a cache (a file or some files). This would reduce page generation time and CPU load.

8k84 wrote:

It seems to me that for a "lightweight" forum that's kind of high, isn't it?

By the way, what extensions do you have installed? Maybe there is one that produces high CPU load.

Also, you can include define('FORUM_SHOW_QUERIES', 1); in config.php to see what SQL queries are executed.

well you have make rules for diferent people.

MyFootballCafe.com  is Now Online!