<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
 /* List Definitions */
 @list l0
        {mso-list-id:1411148511;
        mso-list-type:hybrid;
        mso-list-template-ids:699683660 908595426 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
        {mso-level-start-at:201;
        mso-level-number-format:bullet;
        mso-level-text:-;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:"Calibri","sans-serif";
        mso-fareast-font-family:Calibri;
        mso-bidi-font-family:"Times New Roman";}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal>I run a fairly popular WP blog, and need some help with the
MySQL databases.<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Whatever can be done to reduce the CPU load MySQL is
causing.<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Whether it be:<o:p></o:p></p>

<p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span
style='mso-list:Ignore'>-<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span><![endif]>Database Tuning <o:p></o:p></p>

<p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span
style='mso-list:Ignore'>-<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span><![endif]>Adding an index here and there (can someone teach me?)<o:p></o:p></p>

<p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span
style='mso-list:Ignore'>-<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span><![endif]>Possible re-writes to certain plugins (I have Get
Recent Comments, which is apparently a huge resource hog &#8211; But I need
that plugin)<o:p></o:p></p>

<p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span
style='mso-list:Ignore'>-<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span><![endif]>Server configuration tweaks (my.cnf, http.conf, etc)<o:p></o:p></p>

<p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span
style='mso-list:Ignore'>-<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span><![endif]>Anything else to help reduce server load without losing
functionality.<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>I have a dedicated dual Xeon 2.4ghz, 2GB RAM, 2 SATA 80GB Hd&#8217;s&#8230;<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>I&#8217;ve added all the available performance tools
(wp-Cache, eAccelerator, Varnish HTTP proxy, and more)<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Here&#8217;s my current my.cnf if anyone sees anything wrong
with it, please let me know&#8230;<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p>--------------------------<br>
[mysqld]<br>
old_passwords=1<br>
datadir=/var/lib/mysql<br>
skip-locking<br>
skip-innodb<br>
safe-show-database<br>
query_cache_limit=6M<br>
query_cache_size=32M ## 32MB for every 1GB of RAM<br>
query_cache_type=1<br>
max_user_connections=512<br>
max_connections=2048 # four times max_user_connections, to support the ad
software<o:p></o:p></p>

<p>#delayed_insert_timeout=40<o:p></o:p></p>

<p>interactive_timeout=10<br>
wait_timeout=15<br>
connect_timeout=20<br>
thread_cache_size=512<br>
key_buffer=64M ## 32MB for every 1GB of RAM<br>
myisam_sort_buffer_size=64M<br>
join_buffer_size=8M<br>
max_connect_errors=20<br>
max_allowed_packet=64M<br>
table_cache=2048<br>
tmp_table_size=64M<br>
max_heap_table_size=64M<br>
record_buffer=2M<br>
sort_buffer_size=2M ## 1MB for every 1GB of RAM<br>
read_buffer_size=2M ## 1MB for every 1GB of RAM<br>
read_rnd_buffer_size=2M ## 1MB for every 1GB of RAM<br>
thread_concurrency=2 ## Number of CPUs x 2<br>
server-id=1<o:p></o:p></p>

<p>long_query_time=1<br>
#log-slow-queries=/var/log/mysql-slow.log<br>
#log=/var/log/mysql-query.log<o:p></o:p></p>

<p>[mysql.server]<br>
user=mysql<br>
basedir=/var/lib<o:p></o:p></p>

<p>[safe_mysqld]<br>
err-log=/var/log/mysqld.log<br>
pid-file=/var/lib/mysql/mysql.pid<br>
open_files_limit=8192<o:p></o:p></p>

<p>[mysqldump]<br>
quick<br>
max_allowed_packet=16M<o:p></o:p></p>

<p>[mysql]<br>
no-auto-rehash<o:p></o:p></p>

<p>-------------------------<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><b><span style='font-size:7.5pt;font-family:"Verdana","sans-serif"'>Thanks,</span></b><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>&nbsp;<o:p></o:p></span></p>

<p class=MsoNormal><b><span style='font-size:7.5pt;font-family:"Verdana","sans-serif"'>Perry
<o:p></o:p></span></b></p>

<p class=MsoNormal><b><span style='font-size:7.5pt;font-family:"Verdana","sans-serif"'><a
href="http://www.hoboken411.com"><span style='color:blue'>www.hoboken411.com</span></a></span></b><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>

<p class=MsoNormal><b><span style='font-size:7.5pt;font-family:"Verdana","sans-serif"'><a
href="mailto:hoboken411@gmail.com"><span style='color:blue'>hoboken411@gmail.com</span></a></span></b><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>

</div>

</body>

</html>