<?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>RedHatVN Network &#187; swap</title>
	<atom:link href="http://redhatvn.net/tag/swap/feed" rel="self" type="application/rss+xml" />
	<link>http://redhatvn.net</link>
	<description>Shared Linux problems</description>
	<lastBuildDate>Mon, 31 Oct 2011 07:10:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Quick way to add SWAP</title>
		<link>http://redhatvn.net/quick-way-to-add-swap</link>
		<comments>http://redhatvn.net/quick-way-to-add-swap#comments</comments>
		<pubDate>Fri, 31 Jul 2009 17:08:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[swap]]></category>

		<guid isPermaLink="false">http://redhatvn.net/?p=39</guid>
		<description><![CDATA[While it would be ideal if every server had plenty of RAM in the real world that does not happen. If for some reason you have a server with too little SWAP or you are hitting the max of the swap here is a quick hack which will create a 2Gb container file then use [...]]]></description>
			<content:encoded><![CDATA[<div class="google_plus_one"><g:plusone size="medium" count="true" url="http://redhatvn.net/quick-way-to-add-swap"></g:plusone></div><div>
<p>While it would be ideal if every server had plenty of RAM in the real world that does not happen. If for some reason you have a server with too little SWAP or you are hitting the max of the swap here is a quick hack which will create a 2Gb container file then use it for additional swap space on the server. To check the swap space used you can use &#8220;free -m&#8221;.<br />
<span id="more-39"></span></p>
<p>dd if=/dev/zero of=/usr/swap-file bs=1024 count=2048000<br />
mkswap /usr/swap-file<br />
swapon /usr/swap-file<br />
swapon -s</p>
<p>Now add the following to the /etc/fstab and you are done.<br />
/usr/swap-file               swap                    swap    defaults        0 0</p></div>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/quick-way-to-add-swap/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
