<?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>DEAN LEE:/DEV/BLOG &#187; logging</title>
	<atom:link href="http://www.deanlee.cn/tag/logging/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.deanlee.cn</link>
	<description>mount /dev/brain &#124;&#124; tail -f /var/log/thoughts &#62;&#62; /pub/www</description>
	<lastBuildDate>Tue, 27 Jul 2010 05:21:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>LogMicroscope:boost performance for logging system by 43%</title>
		<link>http://www.deanlee.cn/programming/logmicroscope-boost-logging-performance/</link>
		<comments>http://www.deanlee.cn/programming/logmicroscope-boost-logging-performance/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 08:56:38 +0000</pubDate>
		<dc:creator>Dean Lee</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[logging]]></category>
		<category><![CDATA[logmicroscope]]></category>
		<category><![CDATA[performance]]></category>

		<guid isPermaLink="false">http://www.deanlee.cn/programming/logmicroscope-boost-logging-performance/</guid>
		<description><![CDATA[Recently,I have rewritten the logging engine for LogMicroscope,using circular-buffer in log writing threads,and WriteFileGather in file writing thread to gathers up the data from these discrete buffers in memory and transfers them &#34;in place&#34; as a single operation. with WriteFIleGather, the disk is always keep busy without entering and leaving from kernel mode. log data [...]


Related posts:<ol><li><a href='http://www.deanlee.cn/wordpress/boost-wordpress-performance-on-windows-iis/' rel='bookmark' title='Permanent Link: Boost your WordPress performance on Windows IIS 6 with FastCGI and eAccelerator in 5 minutes'>Boost your WordPress performance on Windows IIS 6 with FastCGI and eAccelerator in 5 minutes</a></li><li><a href='http://www.deanlee.cn/programming/a-fast-memory-pool-used-by-logmicroscope35/' rel='bookmark' title='Permanent Link: A fast memory Pool used by LogMicroscope@35'>A fast memory Pool used by LogMicroscope@35</a></li><li><a href='http://www.deanlee.cn/technology/happy-birthday-to-logmicroscope/' rel='bookmark' title='Permanent Link: Happy birthday to LogMicroscope'>Happy birthday to LogMicroscope</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p>Recently,I have rewritten the logging engine for <a href="http://lm.35.com" target="_blank">LogMicroscope</a>,using <a href="http://en.wikipedia.org/wiki/Circular_buffer" target="_blank">circular-buffer</a> in log writing threads,and <a href="http://msdn.microsoft.com/en-us/library/aa365749%28VS.85%29.aspx" target="_blank">WriteFileGather</a> in file writing thread to gathers up the data from these discrete buffers in memory and transfers them &quot;in place&quot; as a single operation.</p>
<p>with WriteFIleGather, the disk is always keep busy without entering and leaving from kernel mode. log data can be written to disk at a rate that approaches the limits of the physical characteristics of the hardware device.that’s really boost the I/O performance.</p>
<p>because the CPU is mostly idle during write operation,to maximum the performance,I have compressed the data before writing to the disk to reduce the amount of data to be written,the compress is always faster than the I/O operation,so that I get the compression for “free”.</p>
<p>after these changes,the performance for logging system has increased by over 43%.</p>
<img src="http://www.deanlee.cn/?ak_action=api_record_view&id=962&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://www.deanlee.cn/wordpress/boost-wordpress-performance-on-windows-iis/' rel='bookmark' title='Permanent Link: Boost your WordPress performance on Windows IIS 6 with FastCGI and eAccelerator in 5 minutes'>Boost your WordPress performance on Windows IIS 6 with FastCGI and eAccelerator in 5 minutes</a></li><li><a href='http://www.deanlee.cn/programming/a-fast-memory-pool-used-by-logmicroscope35/' rel='bookmark' title='Permanent Link: A fast memory Pool used by LogMicroscope@35'>A fast memory Pool used by LogMicroscope@35</a></li><li><a href='http://www.deanlee.cn/technology/happy-birthday-to-logmicroscope/' rel='bookmark' title='Permanent Link: Happy birthday to LogMicroscope'>Happy birthday to LogMicroscope</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.deanlee.cn/programming/logmicroscope-boost-logging-performance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
