|
|
#1 |
![]() Join Date: Oct 2003
Posts: 1,560
![]() |
So I was bored and I decided to take a look atexactly how well Mambo would handle a Slashdotting in comparism to a Nuke. I whipped up a little script to simulate the massed hordes of Slashdot in a kinda basic way...
Code:
gayle@athene:~/bin> cat slashdot.sh
#!/bin/bash
cat /proc/loadavg | awk ' { print $1 }' >> ${1}
for i in `seq 1 12`;
do
for j in `seq 1 10`;
do
/usr/sbin/ab2 -n 5 -c 5 http://athene/~gayle/${1}/ &
sleep 1
done
cat /proc/loadavg | awk ' { print $1 }' >> ${1}
done
.The server components are not optimised in any way, nor are the CMS scripts. Both are as they come when first installed. Now for the pretty picture... ![]() Ain't it pretty? The Post-Nuke is the latest version and Mambo is the latest 4.5 CVS, as you can see Mambo took it rather better... When we started there was a little over 300MB RAM free and server load of effectively nothing. Post-Nuke (PN) ramped up the load very fast until around 45 when it had managed to eat all available RAM. The OS started paging to disk which is why I think the end of the PN graph is a little 'weird' (I think it stopped my little slashdot script while it was paging, that would account for PN catching up a little). Mambo didn't even use 100% processor time for most of the run but PN was at 100% from the start. The only thing on the PN page that wasn't on the Mambo one was a poll, hardly enough to make a difference especially when you take into account that Mambo had the usual default articles which PN doesn't. So, if you're gonna be Slashdotted you don't want to be using a Nuke! I did also run this on the 4.6 CVS from about a week or so ago and it peaked at around 9, the current 4.6 CVS shoots to around 75 but it's hardly fair to put them on the graph, being CVS it could be down to 3 by tomorrow ![]() I do notice that ADODB has been patched in this week though... For reference, I also did the test with the default Apache page as a kinda base level. Problem is, the system load didn't rise above .48 the whole time so it was kinda pointless ![]()
__________________
If this sig is blue you're moving too fast! If you have any trouble sounding condescending, find a Unix user to show you how it's done. Last edited by Lil Devil : July 14th, 2004 at 15:12. |
|
|
|
|
|
#2 |
![]() Join Date: Oct 2003
Location: Bergheim, Germany
Posts: 110
![]() |
Very well done (although I knew it all the time...
PS: Can you maybe attach a CSV file with the data? This could be usefull for some own presentations... |
|
|
|
|
|
#3 |
|
Posts: n/a
|
Gayle,
Would you also mind posting OS & version, MySQL version, PHP version and Apache version. Many thanks. |
|
|
|
#4 | |
![]() Join Date: Oct 2003
Posts: 1,560
![]() |
Quote:
The main reason for not including all the kind of stuff you normally see in benchmarks is because I just wanted to see how well Mambo could stand a hammering in relation to a Nuke. I am intrigued by this idea though and have been thinking it over a little more ![]() What I may do is set up a partition with a well optimised webserver/MySQL config and nothing else. That would give me a standard base to work from without wrecking my normal setup because I may do this again but slightly more scientifically and with a wider range of CMSs. This one started as a bit of fun but even my basic setup certainly shows that Mambo is way ahead of Post-Nuke in terms of resource use per page impression. Might have to chart memory usage as well, that could be another interesting comparism.
__________________
If this sig is blue you're moving too fast! If you have any trouble sounding condescending, find a Unix user to show you how it's done. |
|
|
|
|
|
|
#5 | |
![]() Join Date: Oct 2003
Posts: 1,560
![]() |
Quote:
[edit]Just read your bit on Mamboportal, I should make it clear that it's not a 60% load but a load average of 60 (i.e. 60 processes in the queue waiting to do their thing). That's waaaaaay overloaded, we're talking up to 40 seconds per page load WITHOUT having any download time.[/edit]
__________________
If this sig is blue you're moving too fast! If you have any trouble sounding condescending, find a Unix user to show you how it's done. |
|
|
|
|
|
|
#6 |
|
Posts: n/a
|
It would also be useful to get the Apachebench results plotted as well e.g. time taken. And then re-run the tests with Mambo 4.5.1 gzip on/off, and stats enabled/disabled.
I am just trying to mod your script for FreeBSD, but FreeBSD doesn't support /proc/loadavg so I am going to have to do something with uptime to get a result. It would also be good to get a chart plotting how many pages the CMS can serve in say 10 secs. |
|
|
|
#7 |
![]() Join Date: Mar 2004
Location: www.flashingcursor.com
Posts: 386
![]() |
Gayle - Great timeing!
I just joined this thread: http://forum.mamboserver.com/showthr...2697#post62697 and really didn't buy into the results that were being tossed around. Great to have some more scientific / real-world results! As always, you rock gayle! gr. |
|
|
|
|
|
#8 |
![]() Join Date: Oct 2003
Location: Virginia Beach, VA USA
Posts: 715
![]() |
It would be interesting to see a comparison between Mambo and Xaraya. Both are modular enough where the features sets could be mixed and matched more closely. Although the schemas are different the content models have similar goals. I would think its a better choice for comparison purposes as we run down the yellow brick road toward 5.0 because the underlying feature sets have many similarities.
__________________
mmx |
|
|
|
|
|
#9 | |
![]() Join Date: Oct 2003
Location: Virginia Beach, VA USA
Posts: 715
![]() |
Anyone who visited your site earlier when the forums were still there knows this for a fact. There would be 1000-1200 users online at times and you could hit the refresh button to watch the count jump up and down as the load changed during peak periods.
Quote:
__________________
mmx |
|
|
|
|
|
|
#10 | |
![]() Join Date: Oct 2003
Posts: 1,560
![]() |
Quote:
__________________
If this sig is blue you're moving too fast! If you have any trouble sounding condescending, find a Unix user to show you how it's done. |
|
|
|
|
|
|
#11 |
|
Posts: n/a
|
typo3 and ezPublish ;-)
But don't ask me for any help in setting them up LOL |
|
|
|
#12 |
![]() Join Date: Oct 2003
Posts: 31
![]() |
:X typo3, thats one huge cms
|
|
|
|
|
|
#13 |
![]() Join Date: Oct 2003
Location: Australia
Posts: 1,036
![]() |
Typo3 can be hard to set up. Drupal wouldn't be bad as a replacement. I expect it would be similar to 4.5.
__________________
Andrew Eddie <>< Mambo Core Developer February 2003-August 2005 http://www.jamboworks.com ... |
|
|
|
|
|
#14 |
![]() Join Date: Oct 2003
Location: Australia
Posts: 1,036
![]() |
Gayle, any chance of negotiating with the opensourcecms guys to run this script on all of their demos? I could probably help out with the data presentation if you need it (text as well as a graphic plot would be useful).
__________________
Andrew Eddie <>< Mambo Core Developer February 2003-August 2005 http://www.jamboworks.com ... |
|
|
|
|
|
#15 | |
![]() Join Date: May 2004
Posts: 99
![]() |
Quote:
we should eliminate nuke-like CMS because they are so bloat ! Loran (*) in the same category of Mambo : Xoops, NPDS, MD-Pro, e107, Xaraya, BolinOS, (**) more powerfull/complete : typo3, EZ Publish, MD-Pro (?), Midgard, WebGUI,... |
|
|
|
|
|
|
#16 |
![]() Join Date: Oct 2003
Location: Battle Creek, MI
Posts: 2,274
![]() |
i suggest a compasion between tons of CMS....
![]() Xoops Expublish, Matrix CMS, php-nuke, post nuke, etc..
__________________
Professional Illusionist/Stage Performer / TheMirrorImages.com |
|
|
|
|
|
#17 | |
![]() Join Date: Dec 2003
Location: Charlottesville, VA USA
Posts: 2,836
![]() |
Quote:
What about this? ^^^^^^ |
|
|
|
|
|
|
#18 |
![]() Join Date: Oct 2003
Location: Battle Creek, MI
Posts: 2,274
![]() |
be nice if i could read the whole post....lol....id love to help out with if at all possible then
__________________
Professional Illusionist/Stage Performer / TheMirrorImages.com |
|
|
|
|
|
#19 |
![]() Join Date: Oct 2003
Posts: 1,560
![]() |
While it would be nice to run the test on all of them it needs to be in a controlled environment which the OpensourceCMS server is not. It takes a fair amount of time to download and configure them all on a dialup connection so for now at least I think I'll have to keep it to a reasonable number.
Currently the plan of action is: 1. Configure a test environment optimised for PHP/MySQL web apps. Install TurckMMcache and enable query cacheing on MySQL. Maybe tweak Apache, not sure on that yet. 2. Install and configure the CMSs to be as similar as possible. 3. Configure another machine to act as the client. 4. Reconfigure client script to not measure server load and to output all ab2 data into files rather than just discarding. 5. Write server script to measure load at 10 second intervals and timestamp each measurement (it may get delayed if the load is too high). 6. Make pretty graphs. 7. Write up article for OpensourceCMS.com (if they're interested). 8. Submit link to Slashdot ![]() 9. ??? 10. Profit??? Andrew: Help with data presentation would be most appreciated. I can't figure out how to get gnuplot to play so the piccie above was a screen grab from OOo, that was the best I could come up with. I am certain there are MUCH easier and better ways to do it (and the planned test will produce a much wider range of data). Not sure how to measure memory usage, I think adding a call to memory_get_usage() on the index.php will tell me what I need to know but I don't know how accurate that will be. Any ideas?
__________________
If this sig is blue you're moving too fast! If you have any trouble sounding condescending, find a Unix user to show you how it's done. |
|
|
|
|
|
#20 |
![]() Join Date: Jan 2004
Posts: 997
![]() |
Gayle,
That would be wonderful feature article on our site! ![]() Thanks |
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| mambo vs nuke | gazraa | General Discussion | 7 | May 7th, 2005 20:02 |
| load component in table | ffaabbss | General Questions | 15 | June 23rd, 2004 01:51 |
| CMS Load Time Benchmarking | stingrey | General Discussion | 12 | June 9th, 2004 10:12 |
| Load order of user defined areas and mainbody | norbies | Templates | 0 | February 5th, 2004 21:41 |