• Embed Doc
  • Readcast
  • Collections
  • CommentGo Back
Download
 
Aolserver performance benchmark with abDated 27-03-07Syed Atif AliIntroduction:
I have always noticed that aolserver memory size keep growing, and doesnot stay at a max state . There are some known tcl versions which have memoryleak issue . but even after using the recommended versions of tcl , this problem,though decreased in severity, but still exists.After being hinted by Aolserver community gurus that the problem could lie in thethread allocator that tcl uses, I decided to compile aolserver against Googleperftools which has a reputation of providing a "more efficient” thread allocator .Instructions on installing aolserver with Google perftools can be found at the endof this document .There is no network involved in the tests. Yes I know it meansthat aolserver performance will be affected by the ab process. but than this will bea constant for each test so I will ignore this. My main purpose of performing thesetests is to see the difference in Aolserver performance with or without Googletcmalloc() .
Required :
  Test if Google perftools enhances the performance of Aolserver.
Test Environment :
Here is my test environment :Constants :Dual-Core AMD Opteron(tm) Processor 2210 HE3 GB memoryRed Hat Enterprise Linux ES release 4 (Nahant Update 4)2.6.9-42.ELsmp x86_64 GNU/Linux
Variables:
 TCL versions:tcl 8.4.14: compiled with enable-threadstcl 8.4.14 compiled enable-threads but without thread allocator touse Google tcmalloc.Aolserver 4.0.10 : Linux native thread allocatorAolserver 4.0.10 : With Google perftools provided tcmalloc()Aolserver 4.5 : Linux native thread allocatorAolserver 4.5 : With Google perftools provided tcmalloc()Aolserver also loads nsoracle 2.7 and nsmysql latest driver modules. But mytests don’t involve any database connectivity . Test files: Helloworld.html (Helloworld.adp Testhtml.htmlIndex.adp (Default Aolserver 4.5 file , found inserver/server1/modules/pages)
Other Software Used:
 
Gnuplot 4.2: to plot graphsab-2.0.40: Apache benchmarksGoogle perftools 0.8-1sar: to collect CPU statsopenoffice writer, calc.I ran each test multiple times. This machine was running nothing additional andthe CPU load was always before starting any test , between 0.5-0 . I made surebefore starting every test the CPU is in 100% idle state . Aolserver is configuredwith maxconnections=100 and maxthreads=10 . ab runs with 10 to 100simultaneous connections and performs 10,000 requests in each test. .Betweeneach ab test there is a 5 second pause, which is obvious in graphsSome terms:Aol40orig : Aolserver 4.0.10 compiled with tcl which uses native Linux threadlibraries , --enable-64bit , --enable-threads, compiled against tcl-8.4.14 which isalso compiled with enable-threadsAol40g : Aolserver 4.0.10 and tcl compiled with Google perftools libraries , --enable-threads –enable-64bit . tcl with –enable-threads but disabled threadallocationAol45orig : Aolserver 4.5 compiled with tcl which uses native Linux thread libraries, --enable-64bit , --enable-threads, compiled against tcl-8.4.14 which is alsocompiled with enable-threadsAol45g : Aolserver 4.5 and tcl compiled with Google perftools libraries , --enable-threads –enable-64bit . tcl with –enable-threads but disabled thread allocationNow straight to the charts
 
Helloworld test:Tested with one html and one tcl file both display hello world. This test is just a comparison of simple html and adp file servingTested :Aol40orig for tcl and html files.
Both these graphs show that aolserver performs at par with both tcl and htmlfiles. cpu consumption and requests per second seem similar in both tcl and htmlservings. difference minimal and html serving is a lil better .
of 00

Leave a Comment

You must be to leave a comment.
Submit
Characters: ...
You must be to leave a comment.
Submit
Characters: ...