Scoop -- the swiss army chainsaw of content management
Front Page · Everything · News · Code · Help! · Wishlist · Project · Scoop Sites · Dev Notes · Latest CVS changes · Development Activities
Scoop Tuning Announcements
By bbatchel , Section Help! []
Posted on Mon Feb 19, 2001 at 12:00:00 PM PST
My small webserver (AMD K6-2 300, 500MB RAM) supports my simple, 1K hits/day website. Upon running apache's benchmark tool, I notice that it can barely dish out 1 request per second. While this is currently fine for my site, I would still like to know what can be done to speed up mod_perl, and in particular that way scoop would be set up using vhosts.

Just in a kneejerk reaction I upped the number of HTTPD processes running (minspare, maxspare) but that made an almost unnoticable dofference.

The server never runs out of RAM, so I know it isn't that. Is mysql the bottleneck? All of the above?

I honestly expected a 300Mhz machine running linux to do better than that.
< Documentation Topic | Question about dead submissions >

Menu
· create account
· faq
· search
· report bugs
· Scoop Administrators Guide
· Scoop Box Exchange

Login
Make a new account
Username:
Password:

Poll
How many requests per second can your scoop server handle?
· No Idea 75%
· < 1 0%
· between 1 and 5 25%
· between 5 and 20 0%
· between 20 and 50 0%
· > 50 0%

Votes: 4
Results | Other Polls

Related Links
· Scoop
· More on Announcements
· Also by bbatchel

Story Views
  12 Scoop users have viewed this story.

Display: Sort:
Scoop Tuning | 2 comments (2 topical, 0 hidden)
Unfortunately... (4.50 / 2) (#1)
by rusty on Tue Feb 20, 2001 at 05:38:02 PM PST

This is pretty standard performance. The K5 server can do upwards of 8 or 9 requests/second, using concurrency, but if you cut it down to a single apache process, it'll only plow through maybe 1-2 requests per second.

The main reason for this is the amount of DB communication that goes on behind the scenes. Scoop caches a lot of stuff (you should see a noticeable speedup if you run ab a second time, for example), but there's still a lot of DB calling that goes on for each request. We really do need to improve the speed of this.

I'm starting to think that the way the Scoop DB layer works needs to be overhauled. There's no easy way to cache data, because we deal with statement handles directly, instead of returned data blocks. Being able to cache all the results from a particular query would speed things up some more. Also, being able to run multiple queries with ? placeholders would help, as a bunch of the repetitive queries could be sped up if they only had to be prepared once.

Also, the way you set up your apache can make a big difference. See the mod_perl guide for info on how to set up a dual-server accelerating proxy type situation. General mod_perl speed issues are here.

So, raw blinding speed is not a major feature of Scoop right now, I'm sorry to say. We've been concentrating much more on features and stability so far. While it may not pump out the pages like a static site, I can assure you that scoop is more than capable of dealing with a slashdotting, or running a site that normally serves 70,000 pages a day. That is, it's kind of the Solaris of weblogs: not the fastest, but very stable under load.



one way to fix that (1.00 / 1) (#2)
by joestump98 on Sun Feb 25, 2001 at 03:31:19 AM PST

install PHP :)
------------------------------------------------------------------------------- Joe Stump, PHP Hacker, joestump98@yahoo.com h


Scoop Tuning | 2 comments (2 topical, 0 hidden)
Display: Sort:

Hosted by ScoopHost.com Powered by Scoop
All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest © 1999 The Management

create account | faq | search