<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Weez.com &#187; cxxflags</title>
	<atom:link href="http://www.weez.com/tag/cxxflags/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.weez.com</link>
	<description>Solving everyday practical LAMP problems... one at a time</description>
	<lastBuildDate>Sat, 31 Jul 2010 00:30:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>MySQL Optimizations on Linux</title>
		<link>http://www.weez.com/2008/09/mysql-optimizations-on-linux/</link>
		<comments>http://www.weez.com/2008/09/mysql-optimizations-on-linux/#comments</comments>
		<pubDate>Fri, 12 Sep 2008 07:04:58 +0000</pubDate>
		<dc:creator>Abidoon</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[cflags]]></category>
		<category><![CDATA[cxxflags]]></category>
		<category><![CDATA[gcc]]></category>
		<category><![CDATA[optimize]]></category>

		<guid isPermaLink="false">http://www.weez.com/?p=22</guid>
		<description><![CDATA[It is important to optimize all pieces of the LAMP acronym and MySQL is not exception to the rule when deploying on the live servers Here be the compile time flags. export CFLAGS=&#8221;-O3 -march=cpu -pipe -msse2 -m3dnow -fomit-frame-pointer -mtune=cpu&#8221; CXX=gcc CXXFLAGS=&#8221;-O3 -cpu -felide-constructors -fno-exceptions -fno-rtti&#8221; As mentioned in my previous entry you can go check [...]]]></description>
			<content:encoded><![CDATA[<p>It is important to optimize all pieces of the LAMP acronym and MySQL is not exception to the rule when deploying on the live servers</p>
<p>Here be the compile time flags.</p>
<p>export CFLAGS=&#8221;-O3 -march=cpu -pipe -msse2 -m3dnow -fomit-frame-pointer -mtune=cpu&#8221; CXX=gcc CXXFLAGS=&#8221;-O3 -cpu -felide-constructors -fno-exceptions -fno-rtti&#8221; </p>
<p>As mentioned in my previous entry you can go check the GCC Manual pages to replace the cpu keyword in the mtune and march in the CFLAGS and the -cpu in the CXXFLAGS.</p>
<p>I got approximately a 5% performance boost with these during benchmarking.</p>
<p>Please note though that the developer team got a much bigger increase in performance when they optimized the tables by adding indexes and improving their queries.</p>
<p>In general we also found that a simple select query took about twice as much time when the table was using InnoDB compared to MyISAM.</p>
<p>I am open to any additional feedback and ideas anyone may have. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.weez.com/2008/09/mysql-optimizations-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
