[Building Sakai] Strange load testing results

View: New views
5 Messages — Rating Filter:   Alert me  

[Building Sakai] Strange load testing results

by Remi Saias :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello all,

In the past weeks I have been performing some load tests on our Sakai+OpenSyllabus server at HEC Montreal as we are planning to go live for a pilot project in January.

I used The Grinder which I found very efficient and easy to use, considering that OpenSyllabus is strongly dependent on Ajax requests and for this reason I could not use more classic tools relying on defined pages with fixed URLs etc.

I tested various configurations with a single scenario and was very surprised to find out that our development laptops (regular laptops with a CoreDuo under XP Pro) were running twice as fast as our linux server which has 4 Xeon CPU at 2.8Ghz. In each case the database server (mySQL 4 and 5, tested both) was running on the same machine.

As I suspected something was incorrectly configured on the linux server, I tried it at home on a less powerful linux box (Dual Core 3Ghz vs Quad Xeon) and, surprise, I got a performance 4 times better. I used the exact same set of sakai tools, sakai version and tomcat version.

I am still investigating this but I am starting to run out of ideas! I have read confluence and added query caching (as per http://confluence.sakaiproject.org/display/DOC/MySQL+Administration), but it didn't change anything at all. I tried tweaking various mySQL parameters without much impact!

Does this ring a bell to someone!? I have not yet investigated the server OS/hardware configuration (maybe the disk setup, raid or such...) but I thought that it might be faster to simply ask! :-)

BTW, Sakai 2.6.0 was 20% faster than 2.5.x in my tests.

Thanks for any help!
-- 
Rémi Saïas
Analyste en informatique - Technopédagogie
Gestion des technologies de l'information - HEC Montréal
Projet Sakai-OpenSyllabus: 514.340.6776 - Édifice Decelles: 4521 


_______________________________________________
sakai-dev mailing list
sakai-dev@...
http://collab.sakaiproject.org/mailman/listinfo/sakai-dev

TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe@... with a subject of "unsubscribe"

Re: [Building Sakai] Strange load testing results

by Steven Githens-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I find a lot of the time, my desktop machine is way faster, but often
assumed it wasn't going over the network, and skipping a bunch of other
real life infrastructure things.  Now that you mention, it would be a
good thing to look into and quantify.

-s

Remi Saias wrote:

> Hello all,
>
> In the past weeks I have been performing some load tests on our
> Sakai+OpenSyllabus server at HEC Montreal as we are planning to go
> live for a pilot project in January.
>
> I used The Grinder which I found very efficient and easy to use,
> considering that OpenSyllabus is strongly dependent on Ajax requests
> and for this reason I could not use more classic tools relying on
> defined pages with fixed URLs etc.
>
> I tested various configurations with a single scenario and was very
> surprised to find out that our development laptops (regular laptops
> with a CoreDuo under XP Pro) were running twice as fast as our linux
> server which has 4 Xeon CPU at 2.8Ghz. In each case the database
> server (mySQL 4 and 5, tested both) was running on the same machine.
>
> As I suspected something was incorrectly configured on the linux
> server, I tried it at home on a less powerful linux box (Dual Core
> 3Ghz vs Quad Xeon) and, surprise, I got a performance 4 times better.
> I used the exact same set of sakai tools, sakai version and tomcat
> version.
>
> I am still investigating this but I am starting to run out of ideas! I
> have read confluence and added query caching (as per
> http://confluence.sakaiproject.org/display/DOC/MySQL+Administration 
> <http://confluence.sakaiproject.org/display/DOC/MySQL+Administration>),
> but it didn't change anything at all. I tried tweaking various mySQL
> parameters without much impact!
>
> Does this ring a bell to someone!? I have not yet investigated the
> server OS/hardware configuration (maybe the disk setup, raid or
> such...) but I thought that it might be faster to simply ask! :-)
>
> BTW, Sakai 2.6.0 was 20% faster than 2.5.x in my tests.
>
> Thanks for any help!
> --
> Rémi Saïas
> Analyste en informatique - Technopédagogie
> Gestion des technologies de l'information - HEC Montréal
> Projet Sakai-OpenSyllabus: 514.340.6776 - Édifice Decelles: 4521
>
>  
> ------------------------------------------------------------------------
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev@...
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe@... with a subject of "unsubscribe"

_______________________________________________
sakai-dev mailing list
sakai-dev@...
http://collab.sakaiproject.org/mailman/listinfo/sakai-dev

TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe@... with a subject of "unsubscribe"

[Building Sakai] The Grinder (was Re: Strange load testing results)

by Steven Githens-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Remi Saias wrote:
> I used The Grinder which I found very efficient and easy to use,
> considering that OpenSyllabus is strongly dependent on Ajax requests
> and for this reason I could not use more classic tools relying on
> defined pages with fixed URLs etc.
>
Hi Remi,

This is pretty exciting. Are your scripts available from the
OpenSyllabus svn or anywhere?

We've been using The Grinder a bit, and working here:
https://source.sakaiproject.org/contrib/sakaigrinder/trunk/

Although it's a little bit of a mess and disorganized at the moment.  I
did write a small jython sakai lib for making authenication against a
generic Sakai 2.x instance easier programmatically, and package things
up so you can just check it out from SVN and start it up without too
much configuration.

Some more camaraderie in this area would be fantastic.

Megacheers,
Steve
_______________________________________________
sakai-dev mailing list
sakai-dev@...
http://collab.sakaiproject.org/mailman/listinfo/sakai-dev

TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe@... with a subject of "unsubscribe"

Re: [Building Sakai] Strange load testing results

by John Bush-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

right, for example, if you are running the tests from a client box on  
an outside network and have to vpn to hit the servers.  Once I was  
really testing the cisco VPN client not Sakai.

John Bush
Development Manager
rSmart




On Nov 9, 2009, at 6:36 AM, Steven Githens wrote:

> I find a lot of the time, my desktop machine is way faster, but often
> assumed it wasn't going over the network, and skipping a bunch of  
> other
> real life infrastructure things.  Now that you mention, it would be a
> good thing to look into and quantify.
>
> -s
>
> Remi Saias wrote:
>> Hello all,
>>
>> In the past weeks I have been performing some load tests on our
>> Sakai+OpenSyllabus server at HEC Montreal as we are planning to go
>> live for a pilot project in January.
>>
>> I used The Grinder which I found very efficient and easy to use,
>> considering that OpenSyllabus is strongly dependent on Ajax requests
>> and for this reason I could not use more classic tools relying on
>> defined pages with fixed URLs etc.
>>
>> I tested various configurations with a single scenario and was very
>> surprised to find out that our development laptops (regular laptops
>> with a CoreDuo under XP Pro) were running twice as fast as our linux
>> server which has 4 Xeon CPU at 2.8Ghz. In each case the database
>> server (mySQL 4 and 5, tested both) was running on the same machine.
>>
>> As I suspected something was incorrectly configured on the linux
>> server, I tried it at home on a less powerful linux box (Dual Core
>> 3Ghz vs Quad Xeon) and, surprise, I got a performance 4 times better.
>> I used the exact same set of sakai tools, sakai version and tomcat
>> version.
>>
>> I am still investigating this but I am starting to run out of  
>> ideas! I
>> have read confluence and added query caching (as per
>> http://confluence.sakaiproject.org/display/DOC/MySQL+Administration
>> <http://confluence.sakaiproject.org/display/DOC/MySQL 
>> +Administration>),
>> but it didn't change anything at all. I tried tweaking various mySQL
>> parameters without much impact!
>>
>> Does this ring a bell to someone!? I have not yet investigated the
>> server OS/hardware configuration (maybe the disk setup, raid or
>> such...) but I thought that it might be faster to simply ask! :-)
>>
>> BTW, Sakai 2.6.0 was 20% faster than 2.5.x in my tests.
>>
>> Thanks for any help!
>> --
>> Rémi Saïas
>> Analyste en informatique - Technopédagogie
>> Gestion des technologies de l'information - HEC Montréal
>> Projet Sakai-OpenSyllabus: 514.340.6776 - Édifice Decelles: 4521
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> sakai-dev mailing list
>> sakai-dev@...
>> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>>
>> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe@...
>>  with a subject of "unsubscribe"
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev@...
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe@...
>  with a subject of "unsubscribe"

_______________________________________________
sakai-dev mailing list
sakai-dev@...
http://collab.sakaiproject.org/mailman/listinfo/sakai-dev

TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe@... with a subject of "unsubscribe"

Re: [Building Sakai] Strange load testing results

by Remi Saias :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks for the input. I tested with a remote grinder as well as a local
one, in some of my test configurations (I used around 15 combinations
out of 3 servers, 2 laptops and one desktop).

The configuration which was the fastest actually became faster when I
tested it from another machine (on the same network). The resources
freed by the grinder not running locally improved the performance of
Sakai even with the network overhead. This is a home network, not even a
real 100Mb (I use a hub, not a switch) and our servers are on a Gigabit
Ethernet so I figure that when I use one to load-test another, the
network is not a bottleneck... Anyway the CPU where tomcat runs is
always at 99% when under load.

I just realize now that my desktop machine which is the fastest for
running sakai up to now is on a 64 bit hardware. Could it be enough to
explain the better performance even if it's less powerful?

Remi
P.S: my grinder script is rather basic (and totally undocumented!) right
now as it only test a basic scenario but once this rush is past I should
be able to share something more interesting!

-------- Message original --------
Sujet : Re: [Building Sakai] Strange load testing results
De : Steven Githens <swgithen@...>
Pour : Remi Saias <remi.saias@...>
Copie à : sakai-dev <sakai-dev@...>
Date : 2009-11-09 08:36

> I find a lot of the time, my desktop machine is way faster, but often
> assumed it wasn't going over the network, and skipping a bunch of
> other real life infrastructure things.  Now that you mention, it would
> be a good thing to look into and quantify.
>
> -s
>
> Remi Saias wrote:
>> Hello all,
>>
>> In the past weeks I have been performing some load tests on our
>> Sakai+OpenSyllabus server at HEC Montreal as we are planning to go
>> live for a pilot project in January.
>>
>> I used The Grinder which I found very efficient and easy to use,
>> considering that OpenSyllabus is strongly dependent on Ajax requests
>> and for this reason I could not use more classic tools relying on
>> defined pages with fixed URLs etc.
>>
>> I tested various configurations with a single scenario and was very
>> surprised to find out that our development laptops (regular laptops
>> with a CoreDuo under XP Pro) were running twice as fast as our linux
>> server which has 4 Xeon CPU at 2.8Ghz. In each case the database
>> server (mySQL 4 and 5, tested both) was running on the same machine.
>>
>> As I suspected something was incorrectly configured on the linux
>> server, I tried it at home on a less powerful linux box (Dual Core
>> 3Ghz vs Quad Xeon) and, surprise, I got a performance 4 times better.
>> I used the exact same set of sakai tools, sakai version and tomcat
>> version.
>>
>> I am still investigating this but I am starting to run out of ideas!
>> I have read confluence and added query caching (as per
>> http://confluence.sakaiproject.org/display/DOC/MySQL+Administration 
>> <http://confluence.sakaiproject.org/display/DOC/MySQL+Administration>),
>> but it didn't change anything at all. I tried tweaking various mySQL
>> parameters without much impact!
>>
>> Does this ring a bell to someone!? I have not yet investigated the
>> server OS/hardware configuration (maybe the disk setup, raid or
>> such...) but I thought that it might be faster to simply ask! :-)
>>
>> BTW, Sakai 2.6.0 was 20% faster than 2.5.x in my tests.
>>
>> Thanks for any help!
>> --
>> Rémi Saïas
>> Analyste en informatique - Technopédagogie
>> Gestion des technologies de l'information - HEC Montréal
>> Projet Sakai-OpenSyllabus: 514.340.6776 - Édifice Decelles: 4521
>>  
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> sakai-dev mailing list
>> sakai-dev@...
>> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>>
>> TO UNSUBSCRIBE: send email to
>> sakai-dev-unsubscribe@... with a subject of
>> "unsubscribe"
>
>

--
Rémi Saïas
Analyste en informatique - Technopédagogie
Gestion des technologies de l'information - HEC Montréal
Projet Sakai-OpenSyllabus: 514.340.6776 - Édifice Decelles: 4521

_______________________________________________
sakai-dev mailing list
sakai-dev@...
http://collab.sakaiproject.org/mailman/listinfo/sakai-dev

TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe@... with a subject of "unsubscribe"