<?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>Erlang非业余研究 &#187; r13b03</title>
	<atom:link href="http://blog.yufeng.info/archives/tag/r13b03/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.yufeng.info</link>
	<description>Erlang系统深度探索和应用</description>
	<lastBuildDate>Tue, 17 Jan 2012 06:05:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>R13B03 binary vheap有助减少binary内存压力</title>
		<link>http://blog.yufeng.info/archives/172</link>
		<comments>http://blog.yufeng.info/archives/172#comments</comments>
		<pubDate>Sun, 29 Nov 2009 08:09:22 +0000</pubDate>
		<dc:creator>Yu Feng</dc:creator>
				<category><![CDATA[Erlang探索]]></category>
		<category><![CDATA[binary]]></category>
		<category><![CDATA[r13b03]]></category>
		<category><![CDATA[vheap]]></category>

		<guid isPermaLink="false">http://blog.yufeng.info/?p=172</guid>
		<description><![CDATA[原创文章，转载请注明： 转载自Erlang非业余研究 本文链接地址: R13B03 binary vheap有助减少binary内存压力 R13B03 binary vheap有助减少binary内存压力. 参看：http://www.erlang.org/download/otp_src_R13B03.readme OTP-8202 A new garbage collecting strategy for binaries which is more aggressive than the previous implementation. Binaries now has a virtual binary heap tied to each process. When binaries are created or received to a process it will check if the heap limit has been [...]]]></description>
			<content:encoded><![CDATA[<div style="margin-top: 15px; font-style: italic">
<p><strong>原创文章，转载请注明：</strong> 转载自<a href="http://blog.yufeng.info/">Erlang非业余研究</a></p>
<p><strong>本文链接地址:</strong> <a href="http://blog.yufeng.info/archives/172">R13B03 binary vheap有助减少binary内存压力</a></p>
</div>
<p>R13B03 binary vheap有助减少binary内存压力.</p>
<p>参看：<a href="http://www.erlang.org/download/otp_src_R13B03.readme">http://www.erlang.org/download/otp_src_R13B03.readme</a></p>
<blockquote><p>OTP-8202  A new garbage collecting strategy for binaries which is more<br />
aggressive than the previous implementation. Binaries now has<br />
a virtual binary heap tied to each process. When binaries are<br />
created or received to a process it will check if the heap<br />
limit has been reached and if a reclaim should be done. This<br />
imitates the behavior of ordinary Erlang terms. The virtual<br />
heaps are grown and shrunk like ordinary heaps. This will<br />
lessen the memory footprint of binaries in a system.</p></blockquote>
<p>原来的binary和其他类型的eterm是混在一起的，当进程的heap用完的时候，才进行GC，腾出空间。现在是把binary单独抽取出来，单独计数， 当binary用量过大的时候，马上就GC。</p>
<p>这个策略对于我们的服务器程序很有帮助，因为我们的服务器程序基本上包都是binary, 很容易出现binary无法及时回收，导致内存耗光的情况。</p>
<p>具体的改进效果待进一步的观察。
<div style="margin-top: 0; margin-bottom: 15px; color: #888888; font-size: 80%; font-style: italic">
<p>Post Footer automatically generated by <a href="http://easwy.com/blog/wordpress/wp-posturl/" style="color: #8888FF; text-decoration: underline;">wp-posturl plugin</a> for wordpress.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.yufeng.info/archives/172/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

