NUMACTL is what you are looking for. You can define CPU restrictions in various ways and the same for memory.<br><br><div class="gmail_quote">On Mon, Sep 19, 2011 at 4:36 PM, <span dir="ltr"><<a href="mailto:scott.tanner@comcast.net">scott.tanner@comcast.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="font-family:Arial;font-size:12pt;color:#000000"><font size="2">Just thought I'd share an interesting discovery with the group. This may be common knowledge to others, but it was a bit of a surprise to me. We're in the process of upgrading the servers which run our primary MySQL DB's (version 5.1):<br>
<br> Old Server New Server<br>---------------------------------------------------------<br> Sun X4200 Silicon Mechanics R516<br> 4 x 2.4GHz 12 x 3.2GHz (+ HT = 24 threads)<br>
16GB Ram 144GB Ram<br> 12 disks - SCSI 24 disks - SAS & SSD<br><br><br>After getting the new servers setup and our databases copied over, I ran sysbench to get some performance benchmarks of the new servers. Surprise - performance was nearly identical or slightly worse. I disabled HT, still no real improvement. After a bit of searching on the web, I found the older versions of MySQL had issues with multi-threading beyond 8 threads.</font><font size="2"> I setup an init script to hot-remove CPU's via sysfs, and voila - performance increased substantially. </font><font size="2">There are patches from Yahoo, Google, and Percona to correct this issue on the older MySQL versions, and the newer versions are supposedly better at handling 32+ threads. <br>
<br><br>Regards,<br>Scott<br></font></div><font color="#888888"><br>--
<br>This message has been scanned for viruses and
<br>dangerous content by
<a href="http://www.mailscanner.info/" target="_blank"><b>MailScanner</b></a>, and is
<br>believed to be clean.
</font></div>
<br>_______________________________________________<br>
grlug mailing list<br>
<a href="mailto:grlug@grlug.org">grlug@grlug.org</a><br>
<a href="http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug" target="_blank">http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug</a><br></blockquote></div><br>
<br />--
<br />This message has been scanned for viruses and
<br />dangerous content by
<a href="http://www.mailscanner.info/"><b>MailScanner</b></a>, and is
<br />believed to be clean.