<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: How to calculate a good InnoDB log file size</title>
	<atom:link href="http://www.mysqlperformanceblog.com/2008/11/21/how-to-calculate-a-good-innodb-log-file-size/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mysqlperformanceblog.com/2008/11/21/how-to-calculate-a-good-innodb-log-file-size/</link>
	<description>Percona&#039;s MySQL &#38; InnoDB performance and scalability blog</description>
	<lastBuildDate>Sat, 11 Feb 2012 16:45:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: AFTAB</title>
		<link>http://www.mysqlperformanceblog.com/2008/11/21/how-to-calculate-a-good-innodb-log-file-size/comment-page-1/#comment-886939</link>
		<dc:creator>AFTAB</dc:creator>
		<pubDate>Thu, 09 Feb 2012 12:10:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=541#comment-886939</guid>
		<description>When calculating innodb log file space usage; If we consider only &quot;Log sequence number&quot; and doesn&#039;t account for checkpoints (Last checkpoint at) at all. When activity is flushed to the disk - if InnoDB has reached a checkpoint multiple times within the time (60 seconds apart) between status outputs, you might be setting the file size inappropriately??

Anyway this is out of date as of MySQL 5.5, recovery times have been greatly improved and the whole log file flushing algorithm has been improved. In 5.5 you generally want larger log files as recovery is improved. Thus, the large innodb log files allow you to take advantage of the new algorithm.</description>
		<content:encoded><![CDATA[<p>When calculating innodb log file space usage; If we consider only &#8220;Log sequence number&#8221; and doesn&#8217;t account for checkpoints (Last checkpoint at) at all. When activity is flushed to the disk &#8211; if InnoDB has reached a checkpoint multiple times within the time (60 seconds apart) between status outputs, you might be setting the file size inappropriately??</p>
<p>Anyway this is out of date as of MySQL 5.5, recovery times have been greatly improved and the whole log file flushing algorithm has been improved. In 5.5 you generally want larger log files as recovery is improved. Thus, the large innodb log files allow you to take advantage of the new algorithm.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Baron Schwartz</title>
		<link>http://www.mysqlperformanceblog.com/2008/11/21/how-to-calculate-a-good-innodb-log-file-size/comment-page-1/#comment-765960</link>
		<dc:creator>Baron Schwartz</dc:creator>
		<pubDate>Tue, 01 Jun 2010 14:45:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=541#comment-765960</guid>
		<description>Could you ask this question on our forum instead?  http://forum.percona.com/</description>
		<content:encoded><![CDATA[<p>Could you ask this question on our forum instead?  <a href="http://forum.percona.com/" rel="nofollow">http://forum.percona.com/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Catalin</title>
		<link>http://www.mysqlperformanceblog.com/2008/11/21/how-to-calculate-a-good-innodb-log-file-size/comment-page-1/#comment-765936</link>
		<dc:creator>Catalin</dc:creator>
		<pubDate>Tue, 01 Jun 2010 08:56:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=541#comment-765936</guid>
		<description>Hi,

Do you guys know why my innodb data and log files haven&#039;t changed ?
ibdata1 has 1.8G
ib_logfile0 has 5M
ib_logfile1 has 5M

Here are my settings:

innodb_data_home_dir = /var/lib/mysql/
innodb_data_file_path = ibdata1:1000M;ibdata2:10M:autoextend
innodb_log_group_home_dir = /var/lib/mysql/
innodb_log_arch_dir = /var/lib/mysql/
innodb_buffer_pool_size = 2048M
innodb_additional_mem_pool_size = 20M
innodb_log_file_size = 512M
innodb_log_files_in_group = 2
innodb_log_buffer_size = 8M
innodb_thread_concurrency = 8
innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 50

I stopped mysqld, deleted the data+log files, but when I start mysql again the log shows:

100601 09:08:30  mysqld started
InnoDB: The first specified data file ./ibdata1 did not exist:
InnoDB: a new database to be created!
100601  9:08:30  InnoDB: Setting file ./ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
100601  9:08:30  InnoDB: Log file ./ib_logfile0 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile0 size to 5 MB
InnoDB: Database physically writes the file full: wait...
100601  9:08:30  InnoDB: Log file ./ib_logfile1 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile1 size to 5 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
100601  9:08:30  InnoDB: Started; log sequence number 0 0
100601  9:08:30 [Note] /usr/libexec/mysqld: ready for connections.
Version: &#039;5.0.77&#039;  socket: &#039;/var/lib/mysql/mysql.sock&#039;  port: 3306  Source distribution
A mysqld process already exists at  Tue Jun 1 09:21:35 BST 2010
100601  9:39:04  InnoDB: ERROR: the age of the last checkpoint is 9434190,
InnoDB: which exceeds the log group capacity 9433498.
InnoDB: If you are using big BLOB or TEXT rows, you must set the
InnoDB: combined size of log files at least 10 times bigger than the
InnoDB: largest such row.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Do you guys know why my innodb data and log files haven&#8217;t changed ?<br />
ibdata1 has 1.8G<br />
ib_logfile0 has 5M<br />
ib_logfile1 has 5M</p>
<p>Here are my settings:</p>
<p>innodb_data_home_dir = /var/lib/mysql/<br />
innodb_data_file_path = ibdata1:1000M;ibdata2:10M:autoextend<br />
innodb_log_group_home_dir = /var/lib/mysql/<br />
innodb_log_arch_dir = /var/lib/mysql/<br />
innodb_buffer_pool_size = 2048M<br />
innodb_additional_mem_pool_size = 20M<br />
innodb_log_file_size = 512M<br />
innodb_log_files_in_group = 2<br />
innodb_log_buffer_size = 8M<br />
innodb_thread_concurrency = 8<br />
innodb_flush_log_at_trx_commit = 1<br />
innodb_lock_wait_timeout = 50</p>
<p>I stopped mysqld, deleted the data+log files, but when I start mysql again the log shows:</p>
<p>100601 09:08:30  mysqld started<br />
InnoDB: The first specified data file ./ibdata1 did not exist:<br />
InnoDB: a new database to be created!<br />
100601  9:08:30  InnoDB: Setting file ./ibdata1 size to 10 MB<br />
InnoDB: Database physically writes the file full: wait&#8230;<br />
100601  9:08:30  InnoDB: Log file ./ib_logfile0 did not exist: new to be created<br />
InnoDB: Setting log file ./ib_logfile0 size to 5 MB<br />
InnoDB: Database physically writes the file full: wait&#8230;<br />
100601  9:08:30  InnoDB: Log file ./ib_logfile1 did not exist: new to be created<br />
InnoDB: Setting log file ./ib_logfile1 size to 5 MB<br />
InnoDB: Database physically writes the file full: wait&#8230;<br />
InnoDB: Doublewrite buffer not found: creating new<br />
InnoDB: Doublewrite buffer created<br />
InnoDB: Creating foreign key constraint system tables<br />
InnoDB: Foreign key constraint system tables created<br />
100601  9:08:30  InnoDB: Started; log sequence number 0 0<br />
100601  9:08:30 [Note] /usr/libexec/mysqld: ready for connections.<br />
Version: &#8217;5.0.77&#8242;  socket: &#8216;/var/lib/mysql/mysql.sock&#8217;  port: 3306  Source distribution<br />
A mysqld process already exists at  Tue Jun 1 09:21:35 BST 2010<br />
100601  9:39:04  InnoDB: ERROR: the age of the last checkpoint is 9434190,<br />
InnoDB: which exceeds the log group capacity 9433498.<br />
InnoDB: If you are using big BLOB or TEXT rows, you must set the<br />
InnoDB: combined size of log files at least 10 times bigger than the<br />
InnoDB: largest such row.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Baron Schwartz</title>
		<link>http://www.mysqlperformanceblog.com/2008/11/21/how-to-calculate-a-good-innodb-log-file-size/comment-page-1/#comment-544846</link>
		<dc:creator>Baron Schwartz</dc:creator>
		<pubDate>Mon, 20 Apr 2009 22:28:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=541#comment-544846</guid>
		<description>Yes, I mean innodb_log_file_size.  About the slides -- actually that advice was from Peter Zaitsev.  He&#039;s not giving you all the details you need to understand what he was talking about.  You would have had to be in that talk to understand it.</description>
		<content:encoded><![CDATA[<p>Yes, I mean innodb_log_file_size.  About the slides &#8212; actually that advice was from Peter Zaitsev.  He&#8217;s not giving you all the details you need to understand what he was talking about.  You would have had to be in that talk to understand it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Geers</title>
		<link>http://www.mysqlperformanceblog.com/2008/11/21/how-to-calculate-a-good-innodb-log-file-size/comment-page-1/#comment-544505</link>
		<dc:creator>Andy Geers</dc:creator>
		<pubDate>Mon, 20 Apr 2009 11:38:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=541#comment-544505</guid>
		<description>I&#039;m slightly confused by this article - it seems to match very closely the advice given by the InnoDB developers for the innodb_log_buffer_size setting here: http://www.innodb.com/wp/wp-content/uploads/2007/05/uc2007-innodb-performance-optimization.pdf

... rather than the innodb_log_*file*_size setting that you are talking about. Can you confirm that you definitely mean the setting you&#039;re referring to?</description>
		<content:encoded><![CDATA[<p>I&#8217;m slightly confused by this article &#8211; it seems to match very closely the advice given by the InnoDB developers for the innodb_log_buffer_size setting here: <a href="http://www.innodb.com/wp/wp-content/uploads/2007/05/uc2007-innodb-performance-optimization.pdf" rel="nofollow">http://www.innodb.com/wp/wp-content/uploads/2007/05/uc2007-innodb-performance-optimization.pdf</a></p>
<p>&#8230; rather than the innodb_log_*file*_size setting that you are talking about. Can you confirm that you definitely mean the setting you&#8217;re referring to?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Marc</title>
		<link>http://www.mysqlperformanceblog.com/2008/11/21/how-to-calculate-a-good-innodb-log-file-size/comment-page-1/#comment-522398</link>
		<dc:creator>John Marc</dc:creator>
		<pubDate>Sat, 28 Mar 2009 20:55:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=541#comment-522398</guid>
		<description>Yow! Guess I need to up this!

-rw-rw----  1 mysql mysql 100M Mar 28 16:49 ib_logfile0
-rw-rw----  1 mysql mysql 100M Mar 28 16:50 ib_logfile1

Using Barons calcs I am looking at 200MB, and Sheens method says 600MB?</description>
		<content:encoded><![CDATA[<p>Yow! Guess I need to up this!</p>
<p>-rw-rw&#8212;-  1 mysql mysql 100M Mar 28 16:49 ib_logfile0<br />
-rw-rw&#8212;-  1 mysql mysql 100M Mar 28 16:50 ib_logfile1</p>
<p>Using Barons calcs I am looking at 200MB, and Sheens method says 600MB?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vladimir Rusinov</title>
		<link>http://www.mysqlperformanceblog.com/2008/11/21/how-to-calculate-a-good-innodb-log-file-size/comment-page-1/#comment-461415</link>
		<dc:creator>Vladimir Rusinov</dc:creator>
		<pubDate>Sun, 01 Feb 2009 23:31:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=541#comment-461415</guid>
		<description>Hi. Here is translation to Russian (if someone interested): http://greenmice.info/ru/node/92</description>
		<content:encoded><![CDATA[<p>Hi. Here is translation to Russian (if someone interested): <a href="http://greenmice.info/ru/node/92" rel="nofollow">http://greenmice.info/ru/node/92</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Baron Schwartz</title>
		<link>http://www.mysqlperformanceblog.com/2008/11/21/how-to-calculate-a-good-innodb-log-file-size/comment-page-1/#comment-434343</link>
		<dc:creator>Baron Schwartz</dc:creator>
		<pubDate>Sun, 04 Jan 2009 21:37:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=541#comment-434343</guid>
		<description>That is exactly the point of writing this post.  Those guidelines are wrong.  Both of them.</description>
		<content:encoded><![CDATA[<p>That is exactly the point of writing this post.  Those guidelines are wrong.  Both of them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam</title>
		<link>http://www.mysqlperformanceblog.com/2008/11/21/how-to-calculate-a-good-innodb-log-file-size/comment-page-1/#comment-434268</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Sun, 04 Jan 2009 20:21:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=541#comment-434268</guid>
		<description>Heh, I am messing with this now for my research and I&#039;m quite certain it says right in the readme that it should be 25% of your buffer pool size, which should be 50-80% of available memory. To me it seems like 64M is indeed way too low.</description>
		<content:encoded><![CDATA[<p>Heh, I am messing with this now for my research and I&#8217;m quite certain it says right in the readme that it should be 25% of your buffer pool size, which should be 50-80% of available memory. To me it seems like 64M is indeed way too low.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesper Wisborg Krogh</title>
		<link>http://www.mysqlperformanceblog.com/2008/11/21/how-to-calculate-a-good-innodb-log-file-size/comment-page-1/#comment-421308</link>
		<dc:creator>Jesper Wisborg Krogh</dc:creator>
		<pubDate>Tue, 23 Dec 2008 04:25:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=541#comment-421308</guid>
		<description>Thanks a lot - I had considered that as an option as well as well as keeping track of which rows actually need to be changed. It will of course require a bit more work and bookkeeping, but it should be doable and I believe in this case it is the best long term solution.

Merry Christmas</description>
		<content:encoded><![CDATA[<p>Thanks a lot &#8211; I had considered that as an option as well as well as keeping track of which rows actually need to be changed. It will of course require a bit more work and bookkeeping, but it should be doable and I believe in this case it is the best long term solution.</p>
<p>Merry Christmas</p>
]]></content:encoded>
	</item>
</channel>
</rss>

