Moodle

download.moodle.org should give out an XAMPP with better settings for SQL

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.6, 1.7, 1.8, 1.9
  • Fix Version/s: None
  • Component/s: Performance
  • Labels:
    None
  • Affected Branches:
    MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE

Description

It seems like much of the reason the people complain about how slow a Windows server runs Moodle is because people are running the XAMPP distribution with Moddle that they download from download.moodle.org

The issue is that the sql settings are so low that they would only work OK for a single user. Even a development machine with 512MB of memory would be better off with more production type settings, and then people would be able to test their system with several classes of students (or use it in production until they get enough expertise to get something more sophosticated going.

I would recommend the following. Some might have better values, but these work for us in a 550 student laptop school.

skip-locking
key_buffer = 150M
max_allowed_packet = 1M
table_cache = 200
sort_buffer_size = 2M
read_buffer_size = 1M
read_rnd_buffer_size = 512K
net_buffer_length = 2K
thread_stack = 64K
query_cache_size = 150M

  1. my.cnf
    22/May/08 10:07 AM
    5 kB
    Jerome Mouneyrac
  2. README.txt
    22/May/08 10:15 AM
    2 kB
    Jerome Mouneyrac

Issue Links

Activity

Hide
Gary Anderson added a comment -

Eloy:

Since I see you are updating the XAMPP for windows, may I assign this to you?

Feel free to just close it if you really want to keep the settings just for test development. But I think that even on Linux, many use XAMPP in production because of the ease of install.

With these settings that they will work with almost all development and first phase deployments, and would eliminate many of the speed complaints that people associate with Windows.

(Note that we have moved to Linux and like it better, but the XAMPP windows package got us going and through our first couple years with Moodle, and it probably would not have happened without the package).

Show
Gary Anderson added a comment - Eloy: Since I see you are updating the XAMPP for windows, may I assign this to you? Feel free to just close it if you really want to keep the settings just for test development. But I think that even on Linux, many use XAMPP in production because of the ease of install. With these settings that they will work with almost all development and first phase deployments, and would eliminate many of the speed complaints that people associate with Windows. (Note that we have moved to Linux and like it better, but the XAMPP windows package got us going and through our first couple years with Moodle, and it probably would not have happened without the package).
Hide
Matt Gibson added a comment -

Just remembered this issue - I think it would be great to have 2 sets of mysql settings, one for development and one for production, with one or the other commented initiall. Also some simple instructions to go with them, including a link to the performance page in the docs?

Show
Matt Gibson added a comment - Just remembered this issue - I think it would be great to have 2 sets of mysql settings, one for development and one for production, with one or the other commented initiall. Also some simple instructions to go with them, including a link to the performance page in the docs?
Hide
Martin Dougiamas added a comment -

Jerome, something else for the new package probably.

Show
Martin Dougiamas added a comment - Jerome, something else for the new package probably.
Hide
Jerome Mouneyrac added a comment -

Attached my.cnf on this issue. It needs to be added to MoodleWindowsInstaller/server/mysql/bin/

Show
Jerome Mouneyrac added a comment - Attached my.cnf on this issue. It needs to be added to MoodleWindowsInstaller/server/mysql/bin/
Hide
Jerome Mouneyrac added a comment -

Attached the README.txt updated with a link to the performance docs.

Show
Jerome Mouneyrac added a comment - Attached the README.txt updated with a link to the performance docs.
Hide
Martin Dougiamas added a comment -

README.txt updated and new my.cnf is now being added to the new downloads. You can update it in CVS as necessary.

http://cvs.moodle.org/contrib/tools/m4w_builder/config/

Show
Martin Dougiamas added a comment - README.txt updated and new my.cnf is now being added to the new downloads. You can update it in CVS as necessary. http://cvs.moodle.org/contrib/tools/m4w_builder/config/

People

Vote (1)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: