I was reading up on how to tune mysql and noticed that there can be severe improvements on compiling it.
See http://www.databasejournal.com/features/mysql/article.php/10897_1402311_1
I'm not a unix pro by any means so excuse me for ignorance I display.
By compiling is he referring to when you download and install Mysql? Or the startup options? Because I don't see stuff like --static when restarting mysql.
I'm sure I'm not alone to say that if I can improve 34% to 52% mysql performace by turning on static, turning off debug and frame pointers, I'll gladly do so. Of course I don't know what debug static and frame pointers do, but I think I can do without them.
Is there a way to add these options to mysql w/ cpanel? If so, will I lose changes when cpanel upgrade to a later mysql version?
Also I've got some freebsd servers and some redhat servers so I don't know if that matters.
While I'm obviously writing this to help my own configuration, some general principles would be good to share with everyone since a lot of people can see major improvements potentially. Thanks.
See http://www.databasejournal.com/features/mysql/article.php/10897_1402311_1
PHP:
* Firstly, compile statically (--static). This requires more disk space, but runs faster (13% on Linux, according to MySQL themselves)
* Optimize to the highest level possible (-O3 with gcc)
* Compile without debug (--without-debug). This runs 20-35% faster.
* Compile without frame pointers. (-fomit-frame-pointer). This is from 1-4% faster.
* Compile with only the minimum character sets that you need (e.g. --with-extra- charsets=none)
By compiling is he referring to when you download and install Mysql? Or the startup options? Because I don't see stuff like --static when restarting mysql.
I'm sure I'm not alone to say that if I can improve 34% to 52% mysql performace by turning on static, turning off debug and frame pointers, I'll gladly do so. Of course I don't know what debug static and frame pointers do, but I think I can do without them.
Is there a way to add these options to mysql w/ cpanel? If so, will I lose changes when cpanel upgrade to a later mysql version?
Also I've got some freebsd servers and some redhat servers so I don't know if that matters.
While I'm obviously writing this to help my own configuration, some general principles would be good to share with everyone since a lot of people can see major improvements potentially. Thanks.