<?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>LinuxByte &#187; swap</title>
	<atom:link href="http://www.linuxbyte.org/tag/swap/feed" rel="self" type="application/rss+xml" />
	<link>http://www.linuxbyte.org</link>
	<description>一个Linux Blog</description>
	<lastBuildDate>Thu, 26 Jan 2012 08:13:08 +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>服务器中swap 的划分</title>
		<link>http://www.linuxbyte.org/fu-wu-qi-zhong-swap-de-hua-fen.html</link>
		<comments>http://www.linuxbyte.org/fu-wu-qi-zhong-swap-de-hua-fen.html#comments</comments>
		<pubDate>Tue, 28 Jul 2009 07:24:22 +0000</pubDate>
		<dc:creator>xiao H</dc:creator>
				<category><![CDATA[服务器应用]]></category>
		<category><![CDATA[精品文档]]></category>
		<category><![CDATA[swap]]></category>

		<guid isPermaLink="false">http://www.linuxbyte.org/?p=461</guid>
		<description><![CDATA[RHEL的官方文档，这是针对服务器的： http://kbase.redhat.com/faq/docs/DOC-17162 目前RedHat推荐交换分区的大小应当与系统物理内存的大小保持线性比例关系。不过在小于2GB物理内存的系统中，交换分区... ]]></description>
			<content:encoded><![CDATA[<p>RHEL的官方文档，这是针对服务器的：</p>
<p>http://kbase.redhat.com/faq/docs/DOC-17162</p>
<p>目前RedHat推荐交换分区的大小应当与系统物理内存的大小保持线性比例关系。不过在小于2GB物理内存的系统中，交换分区大小应该设置为内存大小的两倍，如果内存大小多于2GB，交换分区大小应该是物理内存大小加上2GB。其原因在于，系统中的物理内存越大， 对于内存的负荷可能也越大。<br />
      但是，如果物理内存大小扩展到数百GB，这样做就没什么意义了。<span id="more-461"></span><br />
      实际上，系统中交换分区的大小并不取决于物理内存的量，而是取决于系统中内存的负荷。Red Hat Enterprise Linux5可以在这样的情况下工作：完全没有交换分区，而且系统中匿名内存页和共享内存页小于3/4的物理内存量。在这种情况下，系统会将匿名内存页和共享内存页锁定在物理内存中，而使用剩余的物理内存来缓冲文件系统数据(pagecache)，当内存耗尽时，系统内核只会回收利用这些 pagecache内存。<br />
      考虑到以下情况：<br />
      1）安装系统时难以确定内存的负荷，如何设置交换分区大小<br />
      2）系统中物理内存越大，所需交换分区就会越少<br />
      因此，在Red Hat Enterprise Linux 5中，以下是设置合适的交换分区大小的规则：<br />
          小于等于4G物理内存的系统，至少设置2GB的交换分区<br />
          4G～16G物理内存的系统，至少设置4GB的交换分区<br />
          16G～64G物理内存的系统，至少设置8GB的交换分区<br />
          16G～256G物理内存的系统，至少设置16GB的交换分区</p>
<h2  class="related_post_title">其他大家爱看的文字</h2><ul class="related_post"><li><a href="http://www.linuxbyte.org/kubuntu-install-and-tips.html" title="kubuntu从安装到应用">kubuntu从安装到应用</a></li><li><a href="http://www.linuxbyte.org/ubuntu-10-04-xin-bi-zhi.html" title="Ubuntu 10.04 新壁纸">Ubuntu 10.04 新壁纸</a></li><li><a href="http://www.linuxbyte.org/openoffice-org-240-rc3.html" title="OpenOffice.org 2.4.0 RC3">OpenOffice.org 2.4.0 RC3</a></li><li><a href="http://www.linuxbyte.org/gai-shan-chromium-zai-linux-xia-de-zi-ti.html" title="改善chromium 在linux 下的字体">改善chromium 在linux 下的字体</a></li><li><a href="http://www.linuxbyte.org/centos-yum-an-zhuang-nginx-php-fpm-eaccelerator-mysql.html" title="Centos yum 安装nginx+PHP-FPM+eAccelerator+mysql">Centos yum 安装nginx+PHP-FPM+eAccelerator+mysql</a></li><li><a href="http://www.linuxbyte.org/ubuntu-11-04-zheng-shi-ban-xia-zai.html" title="ubuntu 11.04 正式版下载">ubuntu 11.04 正式版下载</a></li><li><a href="http://www.linuxbyte.org/firefox-de-shu-biao-shou-shi-cha-jian-firegestures.html" title="Firefox 的鼠标手势插件FireGestures">Firefox 的鼠标手势插件FireGestures</a></li><li><a href="http://www.linuxbyte.org/xing-ji-2bi-zhi-yi-dui.html" title="星际2壁纸一堆">星际2壁纸一堆</a></li><li><a href="http://www.linuxbyte.org/ubuntu-10-10-alpha-1-fa-bu.html" title="Ubuntu 10.10 Alpha 1 发布">Ubuntu 10.10 Alpha 1 发布</a></li><li><a href="http://www.linuxbyte.org/download-opensuse-11.html" title="OpenSuSE 11.0 正式版官方下载地址">OpenSuSE 11.0 正式版官方下载地址</a></li></ul><hr />
<p><small>© xiao H for <a href="http://www.linuxbyte.org">LinuxByte</a>, 2009<br />
Source: <a href="http://www.linuxbyte.org/fu-wu-qi-zhong-swap-de-hua-fen.html">服务器中swap 的划分</a><br />
Post tags: <a href="http://www.linuxbyte.org/tag/swap" rel="tag">swap</a><br/>
</small></p>
	<p style="margin:3px 0 0 0;">标签：<a href="http://www.linuxbyte.org/tag/swap" title="swap" rel="tag">swap</a></p>

<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxbyte.org/fu-wu-qi-zhong-swap-de-hua-fen.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

