<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>https://wiki.webko.net.ua/index.php?action=history&amp;feed=atom&amp;title=Clear_RAM_Memory_Cache%2C_Buffer_and_Swap</id>
	<title>Clear RAM Memory Cache, Buffer and Swap - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.webko.net.ua/index.php?action=history&amp;feed=atom&amp;title=Clear_RAM_Memory_Cache%2C_Buffer_and_Swap"/>
	<link rel="alternate" type="text/html" href="https://wiki.webko.net.ua/index.php?title=Clear_RAM_Memory_Cache,_Buffer_and_Swap&amp;action=history"/>
	<updated>2026-05-22T17:43:51Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.webko.net.ua/index.php?title=Clear_RAM_Memory_Cache,_Buffer_and_Swap&amp;diff=607&amp;oldid=prev</id>
		<title>Sol: Новая страница: «=== How to Clear Cache in Linux? === Every Linux System has three options to clear cache without interrupting any processes or services.  '''1.''' Clear PageCache…»</title>
		<link rel="alternate" type="text/html" href="https://wiki.webko.net.ua/index.php?title=Clear_RAM_Memory_Cache,_Buffer_and_Swap&amp;diff=607&amp;oldid=prev"/>
		<updated>2019-02-01T10:49:46Z</updated>

		<summary type="html">&lt;p&gt;Новая страница: «=== How to Clear Cache in Linux? === Every Linux System has three options to clear cache without interrupting any processes or services.  &amp;#039;&amp;#039;&amp;#039;1.&amp;#039;&amp;#039;&amp;#039; Clear PageCache…»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== How to Clear Cache in Linux? ===&lt;br /&gt;
Every Linux System has three options to clear cache without interrupting any processes or services.&lt;br /&gt;
&lt;br /&gt;
'''1.''' Clear PageCache only.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sync; echo 1 &amp;gt; /proc/sys/vm/drop_caches&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
'''2.''' Clear dentries and inodes.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sync; echo 2 &amp;gt; /proc/sys/vm/drop_caches&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
'''3.''' Clear PageCache, dentries and inodes.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sync; echo 3 &amp;gt; /proc/sys/vm/drop_caches&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== How to Clear Swap Space in Linux? ===&lt;br /&gt;
If you want to clear Swap space, you may like to run the below command.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
swapoff -a &amp;amp;&amp;amp; swapon -a&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Also you may add above command to a cron script above, after understanding all the associated risk.&lt;br /&gt;
&lt;br /&gt;
Now we will be combining both above commands into one single command to make a proper script to clear RAM Cache and Swap Space.&lt;br /&gt;
[[Категория:Linux]]&lt;/div&gt;</summary>
		<author><name>Sol</name></author>
	</entry>
</feed>