CPU running at 95%..why!!!

Re: CPU running at 95%..why!!!

by Don Hinkelman -
Number of replies: 0
Picture of Particularly helpful Moodlers Picture of Plugin developers
Hi Julian,

I can assure you that your problem is *not* hardware--your CPU and memory are great. It is somewhere in software settings and tuning. Look below and see the results of a very similar server installation which achieved 60 simultaneous users doing very heavy audio quizzes. Sorry I can't help you with the tuning, we had a server specialist set up the LAMP+PHP accelerator.

Our school did an English placement test (Moodle Quiz Module, ver 1.4.4 with 30 audio questions) this past April 2005 for all 1100 entering freshmen to our university. If you check an earlier report, you will notice in April 2004, I used a single slow Mac as a server--and yes, another thread shows us OS X and MySQL don't love each other so well--no problem with Linux and MySQL. This is what we did to make our test a complete success.
  • switched to cheap Linux servers (see specs below)
  • divided the students into 5 sessions of up to 250 students each
  • used four servers (one server per 55 students)
The students and teachers had no problems--speed was fantastic. 3-5 seconds to load the full 50 question test (55 students at the same time on campus). I was off-site in Australia and it still took me only 8-12 seconds loading at the same time the students were doing it! A server technician watched the load in real time and noticed **no** slowdown spike at the beginning of the session. He reckons we only needed two servers, and each could handle 120+ users at the same time. Here are the server specs and some other notes--each server cost US$1500 back in March 2005.
  • Dell small business server--no OS, no monitor/keyboard
  • Dual Xeon 2.8ghz CPU
  • 2GB Memory
  • 80GB hard drive
  • Internal LAN--servers in another building on campus
  • Fedora Core 1, Apache 2.0.50, PHP 4.3.1, MySQL 4.1.10a
  • Ioncube PHP accelerator for PHP 4.3.0
I think this shows that for very low cost you can build a fast, heavy duty server that will handle the highest load situations for Moodle 1.4--long quizzes with audio files. 1.5 should be even faster with the new paged quiz option (all quiz questions load page by page, not all at the beginning).


Average of ratings: Useful (2)