Using a ramdisk for MySQL helps *a lot* to speed up simpletests in Drupal, as well as disabling innodb as described on the according d.o. docu page.
While the documentation provides an init.d script, Ubuntu 11.04 comes with an upstart script for MySQL. So I modified the instructions and come up with the following in order to put MySQL on a ramdisk on ubuntu 11.04 (and later):
1. Pre-pare everything
2. Save the original upstart script at /etc/init/mysql.conf and replace it with the one attached to this post. 3. Start MySQL and make sure everything works!
Once you run
stop mysql
the content of the ramdisk will be saved back to disk again.You rock!
Fago! I'm so happy I found this... as a quick test I found that saving the permissions page went from around 12 seconds to 2 seconds! w00t! I'm a happy Drupaler today :)
I agree!
This is really awesome. Thank you very much Fago.
I agree!
This is really awesome. Thank you very much Fago.
The speed improvements are
The speed improvements are incredible, but for whatever reason the post-stop portion of the mysql conf wasn't working for me, which meant losing everything that happened since mysql started.
I threw that into a shutdown script and everything worked swimmingly after that.
The speed improvements are
The speed improvements are incredible, but for whatever reason the post-stop portion of the mysql conf wasn't working for me, which meant losing everything that happened since mysql started.
I threw that into a shutdown script and everything worked swimmingly after that.
Worked with a small change
The speed improvements are incredible, but for whatever reason the post-stop portion of the mysql conf wasn't working for me, which meant losing everything that happened since mysql started.
I threw that into a shutdown script and everything worked swimmingly after that.