<?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 Clear RAM Cache, Buffers, and Swap in Linux Without Reboot	</title>
	<atom:link href="https://www.tecmint.com/clear-ram-memory-cache-buffer-and-swap-space-on-linux/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tecmint.com/clear-ram-memory-cache-buffer-and-swap-space-on-linux/</link>
	<description>Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks.</description>
	<lastBuildDate>Fri, 16 Jan 2026 08:09:52 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Ravi Saive		</title>
		<link>https://www.tecmint.com/clear-ram-memory-cache-buffer-and-swap-space-on-linux/comment-page-1/#comment-2220939</link>

		<dc:creator><![CDATA[Ravi Saive]]></dc:creator>
		<pubDate>Fri, 27 Sep 2024 05:49:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=13515#comment-2220939</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/clear-ram-memory-cache-buffer-and-swap-space-on-linux/comment-page-1/#comment-2220151&quot;&gt;urostor&lt;/a&gt;.

@Urostor,

Thanks for the correction! I’ll use the proper command with &#039;&lt;strong&gt;sudo&lt;/strong&gt;&#039; and &#039;&lt;strong&gt;tee&lt;/strong&gt;&#039; to ensure the necessary permissions are applied when modifying cache settings.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/clear-ram-memory-cache-buffer-and-swap-space-on-linux/comment-page-1/#comment-2220151">urostor</a>.</p>
<p>@Urostor,</p>
<p>Thanks for the correction! I’ll use the proper command with &#8216;<strong>sudo</strong>&#8216; and &#8216;<strong>tee</strong>&#8216; to ensure the necessary permissions are applied when modifying cache settings.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: urostor		</title>
		<link>https://www.tecmint.com/clear-ram-memory-cache-buffer-and-swap-space-on-linux/comment-page-1/#comment-2220151</link>

		<dc:creator><![CDATA[urostor]]></dc:creator>
		<pubDate>Wed, 25 Sep 2024 07:04:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=13515#comment-2220151</guid>

					<description><![CDATA[These commands are incorrect. 

You cannot directly echo to &lt;strong&gt;/proc/sys/vm/drop_caches&lt;/strong&gt; as a regular user. 

The correct command should be:
&lt;pre&gt;
sudo sync; echo 1 &#124; sudo tee /proc/sys/vm/drop_caches
&lt;/pre&gt;
This ensures you have the necessary permissions to modify the cache settings.]]></description>
			<content:encoded><![CDATA[<p>These commands are incorrect. </p>
<p>You cannot directly echo to <strong>/proc/sys/vm/drop_caches</strong> as a regular user. </p>
<p>The correct command should be:</p>
<pre>
sudo sync; echo 1 | sudo tee /proc/sys/vm/drop_caches
</pre>
<p>This ensures you have the necessary permissions to modify the cache settings.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Tony jack		</title>
		<link>https://www.tecmint.com/clear-ram-memory-cache-buffer-and-swap-space-on-linux/comment-page-1/#comment-2219108</link>

		<dc:creator><![CDATA[Tony jack]]></dc:creator>
		<pubDate>Sun, 22 Sep 2024 19:25:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=13515#comment-2219108</guid>

					<description><![CDATA[To clear RAM cache, buffer, and swap space on Linux, use the following commands:

Clear PageCache:
&lt;pre&gt;
sync; echo 1 &#062; /proc/sys/vm/drop_caches
&lt;/pre&gt;
Clear Dentries and Inodes:
&lt;pre&gt;
sync; echo 2 &#062; /proc/sys/vm/drop_caches
&lt;/pre&gt;
Clear PageCache, Dentries, and Inodes:
&lt;pre&gt;
sync; echo 3 &#062; /proc/sys/vm/drop_caches
&lt;/pre&gt;
Clear Swap Space:
&lt;pre&gt;
swapoff -a &#038;&#038; swapon -a
&lt;/pre&gt;
Always use &lt;strong&gt;sync&lt;/strong&gt; to avoid data loss. These commands help free up system memory without impacting performance.

]]></description>
			<content:encoded><![CDATA[<p>To clear RAM cache, buffer, and swap space on Linux, use the following commands:</p>
<p>Clear PageCache:</p>
<pre>
sync; echo 1 &gt; /proc/sys/vm/drop_caches
</pre>
<p>Clear Dentries and Inodes:</p>
<pre>
sync; echo 2 &gt; /proc/sys/vm/drop_caches
</pre>
<p>Clear PageCache, Dentries, and Inodes:</p>
<pre>
sync; echo 3 &gt; /proc/sys/vm/drop_caches
</pre>
<p>Clear Swap Space:</p>
<pre>
swapoff -a &amp;&amp; swapon -a
</pre>
<p>Always use <strong>sync</strong> to avoid data loss. These commands help free up system memory without impacting performance.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Rich		</title>
		<link>https://www.tecmint.com/clear-ram-memory-cache-buffer-and-swap-space-on-linux/comment-page-1/#comment-2196478</link>

		<dc:creator><![CDATA[Rich]]></dc:creator>
		<pubDate>Tue, 30 Jul 2024 03:28:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=13515#comment-2196478</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/clear-ram-memory-cache-buffer-and-swap-space-on-linux/comment-page-1/#comment-1912105&quot;&gt;alex&lt;/a&gt;.

You need to add sudo like so:
&lt;pre&gt;
sudo sync; echo 1 &#124; sudo tee /proc/sys/vm/drop_caches
&lt;/pre&gt;
]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/clear-ram-memory-cache-buffer-and-swap-space-on-linux/comment-page-1/#comment-1912105">alex</a>.</p>
<p>You need to add sudo like so:</p>
<pre>
sudo sync; echo 1 | sudo tee /proc/sys/vm/drop_caches
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ravi Saive		</title>
		<link>https://www.tecmint.com/clear-ram-memory-cache-buffer-and-swap-space-on-linux/comment-page-1/#comment-2186943</link>

		<dc:creator><![CDATA[Ravi Saive]]></dc:creator>
		<pubDate>Fri, 05 Jul 2024 04:14:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=13515#comment-2186943</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/clear-ram-memory-cache-buffer-and-swap-space-on-linux/comment-page-1/#comment-2186596&quot;&gt;KUSHAGRA JAGER&lt;/a&gt;.

@Kushagra,

Exactly. Clearing the cache while programs are running can remove essential files, leading to crashes and data corruption.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/clear-ram-memory-cache-buffer-and-swap-space-on-linux/comment-page-1/#comment-2186596">KUSHAGRA JAGER</a>.</p>
<p>@Kushagra,</p>
<p>Exactly. Clearing the cache while programs are running can remove essential files, leading to crashes and data corruption.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
