1.8.3 Performance

1.8.3 Performance

by Howard Miller -
Number of replies: 11
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
The release notes for 1.8.3 indicate that there are performance improvements in 1.8.3, but the only thing I could see in the tracker list was..

http://tracker.moodle.org/browse/MDL-1883
"course/scales.php reallllllllly slow"


Was this the only performance improvement?
Average of ratings: -
In reply to Howard Miller

Re: 1.8.3 Performance

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Sorry to bump.... but bump!!! Anyone?

Somebody wrote "Some crucial performance fixes" in the release notes tongueout
In reply to Howard Miller

Re: 1.8.3 Performance

by Eric Merrill -
Picture of Core developers Picture of Moodle HQ Picture of Peer reviewers Picture of Plugin developers Picture of Testers
I know some pretty heavy performance work went into HEAD in the last month before 1.9 stable was branched, and 1.8.3 was released after that, but I'm not sure if the performance work was rolled into 1.8.3. Hopefully one of the lead devs will chime in.

-eric
In reply to Howard Miller

Re: 1.8.3 Performance

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
The wiki history says that Martin (D) wrote that. He is currently travelling round the world - I think he is in Spain right now - so don't expect an instant response.

I think it was just some change to some particular things, like forum digests cron. The major performance improvements to accesslib were 1.9 only.
In reply to Howard Miller

Re: 1.8.3 Performance

by Samuli Karevaara -
For very large sites the scales perf issue was a big one, and a fix for that specific issue was crucial. I don't have a full CVS log at hand, maybe there are other performance fix commits too...
In reply to Samuli Karevaara

Re: 1.8.3 Performance

by Eric Merrill -
Picture of Core developers Picture of Moodle HQ Picture of Peer reviewers Picture of Plugin developers Picture of Testers
We had a problem with 1.8.2+ a few months ago when we tried to upgrade. On login there is a massive SQL query that loaded context/roles data that was taking 2+ seconds to run for each login, and MySQL more or less locked up during it, which brought the site to a halt, so we had to move back to our old site.

We haven't done much testing yet (because we are getting new hardware too), but I'm hoping the optimizations in 1.9 will help.

We had ~24,000 users and ~12000 course on the system and were getting ~150-250 page views/minute (well, that was when we rolled back and the system could actually serve pages again).
In reply to Eric Merrill

Re: 1.8.3 Performance

by Samuli Karevaara -
It's probably MDL-11347 and the related issues. Looks like that this has been fixed in 1.9.
In reply to Samuli Karevaara

Re: 1.8.3 Performance

by Eric Merrill -
Picture of Core developers Picture of Moodle HQ Picture of Peer reviewers Picture of Plugin developers Picture of Testers
Yeah, I think so too, but we are we have been waiting to do new load testing until the new servers get installed, which should be done by the time I get back from the UK *fingers crossed*
In reply to Eric Merrill

Load Testing was: 1.8.3 Performance

by Michael Spall -
Picture of Core developers Picture of Testers
Eric,

What programs are you planning on using for doing your load testing? We are investigating JMeter/Badboy and Tsung/Sing-Tsung.
In reply to Howard Miller

Re: 1.8.3 Performance

by Bryce Thornton -
http://tracker.moodle.org/browse/MDL-10635

This is one I know of. It did significantly cut down on queries for me when a student viewed a course.
In reply to Bryce Thornton

Re: 1.8.3 Performance

by Wen Hao Chuang -
By the way there is a post by Martin L about performance patches that went into 1.9 and HEAD.

http://moodle.org/mod/forum/discuss.php?d=79455

Is anyone looking to backport these changes to MOODLE_18_STABLE branch soon? Just curious...

I don't think most of these changes are in MOODLE_18_STABLE yet.
In reply to Wen Hao Chuang

Re: 1.8.3 Performance

by Petr Skoda -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Hi,

there are some performance improvements in 1.8.3 - most notably in the login process and course page. Please make sure that the record cache is turned on.

The changes in HEAD are very big, in fact it was a major rewrite of roles internals. I do not think it is possible to backport it into 1.8.x - there might be still some minor hidden problems in the new code and there are other more important bugs to fix in 1.9dev.

skodak