<p>Have a look at the wiki. This article specifically<br>
<a href="http://www.mythtv.org/wiki/Optimizing_Performance#MySQL_Database_Tweaks">http://www.mythtv.org/wiki/Optimizing_Performance#MySQL_Database_Tweaks</a></p>
<p>Please excuse brevity and pistakes as this email was composed on a mobile phone.<br>
Best regards,<br>
Richard </p>
<div class="gmail_quote">On Oct 23, 2012 4:34 AM, &quot;Pieter De Wit&quot; &lt;<a href="mailto:pieter@insync.za.net">pieter@insync.za.net</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
Sent from my iPad<br>
<br>
On 23/10/2012, at 9:59, Josu Lazkano &lt;<a href="mailto:josu.lazkano@gmail.com">josu.lazkano@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Hello,<br>
&gt;<br>
&gt; I have some questions abot MySQL performance, I have a dedicatd server<br>
&gt; for the backend with 2GB of memory. I am thinking on buy 2GB more and<br>
&gt; get 4GB of RAM.<br>
&gt;<br>
&gt; Is possible to use RAM memory to optimize MySQL?<br>
&gt;<br>
&gt; I add 2 lines on the configuration:<br>
&gt;<br>
&gt; tmp_table_size          = 256M<br>
&gt; max_heap_table_size     = 256M<br>
&gt;<br>
&gt; This is my complete MySQL configuration:<br>
&gt;<br>
&gt; [client]<br>
&gt; port        = 3306<br>
&gt; socket        = /var/run/mysqld/mysqld.sock<br>
&gt;<br>
&gt; [mysqld_safe]<br>
&gt; socket        = /var/run/mysqld/mysqld.sock<br>
&gt; nice        = 0<br>
&gt;<br>
&gt; [mysqld]<br>
&gt; tmp_table_size          = 256M<br>
&gt; max_heap_table_size     = 256M<br>
&gt;<br>
&gt; user        = mysql<br>
&gt; pid-file    = /var/run/mysqld/mysqld.pid<br>
&gt; socket        = /var/run/mysqld/mysqld.sock<br>
&gt; port        = 3306<br>
&gt; basedir        = /usr<br>
&gt; datadir        = /var/lib/mysql<br>
&gt; tmpdir        = /tmp<br>
&gt; lc-messages-dir    = /usr/share/mysql<br>
&gt; skip-external-locking<br>
&gt; key_buffer        = 16M<br>
&gt; max_allowed_packet    = 16M<br>
&gt; thread_stack        = 192K<br>
&gt; thread_cache_size       = 8<br>
&gt; myisam-recover         = BACKUP<br>
&gt; query_cache_limit    = 1M<br>
&gt; query_cache_size        = 16M<br>
&gt; expire_logs_days    = 10<br>
&gt; max_binlog_size         = 100M<br>
&gt;<br>
&gt; [mysqldump]<br>
&gt; quick<br>
&gt; quote-names<br>
&gt; max_allowed_packet    = 16M<br>
&gt;<br>
&gt; [mysql]<br>
&gt;<br>
&gt; [isamchk]<br>
&gt; key_buffer        = 16M<br>
&gt;<br>
&gt; !includedir /etc/mysql/conf.d/<br>
&gt;<br>
&gt; How could I check the performance of the database?<br>
&gt;<br>
&gt; Thanks and best regards.<br>
&gt;<br>
&gt; --<br>
&gt; Josu Lazkano<br>
&gt; _______________________________________________<br>
&gt; mythtv-users mailing list<br>
&gt; <a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
&gt; <a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
<br>
Hi,<br>
<br>
I have 2gig on my combined BE/FE and it swaps. Very little of it would be MySQL IMHO. I am going to go 4gig and just leave the MySQL settings as is.<br>
<br>
( I do a LOAD of MySQL work so unless you are hammering the db, 1000&#39;s of connections, the default will do you well )<br>
<br>
Cheers,<br>
<br>
Pieter<br>
_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
<a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
</blockquote></div>