<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[iRedMail — iRedAdmin and Database Performance]]></title>
	<link rel="self" href="http://www.iredmail.org/forum/feed-atom-topic3925.xml" />
	<updated>2012-09-27T13:53:23Z</updated>
	<generator>PunBB</generator>
	<id>http://www.iredmail.org/forum/topic3925-iredadmin-and-database-performance.html</id>
		<entry>
			<title type="html"><![CDATA[Re: iRedAdmin and Database Performance]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post18339.html#p18339" />
			<content type="html"><![CDATA[<p>Hi Pang,</p><p>I suggest reading some MySQL document about its configuration parameters. <img src="http://www.iredmail.org/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2012-09-27T13:53:23Z</updated>
			<id>http://www.iredmail.org/forum/post18339.html#p18339</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: iRedAdmin and Database Performance]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post18329.html#p18329" />
			<content type="html"><![CDATA[<p>Hi Zhang,</p><p>The default value of innodb_buffer_pool_size is only 8M, will it be better to set it 512M or 1G in my.cnf for speed up DB performance?</p>]]></content>
			<author>
				<name><![CDATA[pang]]></name>
				<uri>http://www.iredmail.org/forum/user31733.html</uri>
			</author>
			<updated>2012-09-26T09:40:26Z</updated>
			<id>http://www.iredmail.org/forum/post18329.html#p18329</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: iRedAdmin and Database Performance]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post18287.html#p18287" />
			<content type="html"><![CDATA[<p>Hi guigouz,</p><p>Thanks for your solution (innodb_file_per_table=1), i will add this in next release of iRedMail.<br />About Amavisd queries, all are coded in libs/amavisd/*.py (especially log.py and quarantine.py). Let me know if you have any idea to improve it.</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2012-09-20T23:35:13Z</updated>
			<id>http://www.iredmail.org/forum/post18287.html#p18287</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[iRedAdmin and Database Performance]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post18281.html#p18281" />
			<content type="html"><![CDATA[<p>==== Required information ====<br />- iRedMail version: 0.8.1<br />- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP<br />- Linux/BSD distribution name and version: Centros 5<br />- Related log if you&#039;re reporting an issue: <br />==== </p><p>I&#039;ve been experiencing issues with iRedAdmin (and overall system performance) after my amavisd database started to grow. </p><p>On my first tests, I found out that iredmail&#039;s my.cnf comes with the innodb_file_per_table variable disabled, this leads to a huge performance decrease as in InnoDB, by default, all of the tables are written to one file defined by default at 10MB, with an auto-extend of 8 bytes. Each time it gets to the endpoint, MySQL has to copy the file to another location and add those 8 bytes, before deleting the old one. </p><p>To fix this, I&#039;ve backed up my database (<a href="http://sysadminnotebook.blogspot.com.br/2011/05/mysql-dump-and-restore.html">http://sysadminnotebook.blogspot.com.br … store.html</a>), edited /etc/my.cnf, added <br />innodb_file_per_table=1<br />Then stopped mysql, backed up /var/lib/mysql, deleted /var/lib/mysql/*, ran mysql_install_db, started mysql, restored my backup, restarted mysql.</p><p>My system load is now much lower, but logging in to iRedAdmin-Pro still takes considerable time. I&#039;ve disabled the amavis database option on settings.ini, and it&#039;s ok now, but listing sent/received emails is a nice feature for my customers. Can you describe queries you&#039;re performing ? Those could be optimized (or maybe cached), I may take a look at those if you could point out where they are in code.</p><p>Thanks!</p>]]></content>
			<author>
				<name><![CDATA[guigouz]]></name>
				<uri>http://www.iredmail.org/forum/user3922.html</uri>
			</author>
			<updated>2012-09-20T19:35:22Z</updated>
			<id>http://www.iredmail.org/forum/post18281.html#p18281</id>
		</entry>
</feed>
