After looking into T96229, @ori and @tstarling suggested changing MySQL storage to use tmpfs for /var/lib/mysql.
Tim confirmed that the mw-install-mysql.sh script is I/O limited.
Related:
- T96229: Creating MySQL tables for MediaWiki sometimes stalled on I/O for several minutes
- T93556: Unit tests using database are slower than needed
- T95971: Apache on Jenkins slave takes over 30s to respond (QUnit/AJAX "Test timed out")
http://jotschi.de/2014/02/03/high-performance-mysql-testdatabase.html