<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Proc on BAFM</title><link>https://christian.blog.pakiheim.de/tags/proc/</link><description>Recent content in Proc on BAFM</description><generator>Hugo -- 0.160.1</generator><language>en</language><lastBuildDate>Tue, 05 Feb 2008 02:46:21 +0000</lastBuildDate><atom:link href="https://christian.blog.pakiheim.de/tags/proc/index.xml" rel="self" type="application/rss+xml"/><item><title>Flushing the disk cache</title><link>https://christian.blog.pakiheim.de/posts/2008-02-05_flushing-the-disk-cache/</link><pubDate>Tue, 05 Feb 2008 02:46:21 +0000</pubDate><guid isPermaLink="false">http://blog.barfoo.org/?p=184</guid><description>&lt;p&gt;I&amp;rsquo;ve been looking for this over and over and over, until I had some &lt;a href="http://www.webpronews.com/expertarticles/2007/01/10/invalidating-the-linux-buffer-cache"&gt;inspiration&lt;/a&gt; today (thanks to Andew and Chris) .. this has one and only one sole purpose: safekeeping, so I don&amp;rsquo;t end up searching for it all over again &amp;hellip;&lt;/p&gt;
&lt;p&gt;To free pagecache:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt" id="hl-0-1"&gt;&lt;a class="lnlinks" href="#hl-0-1"&gt;1&lt;/a&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# sync; echo 1 &amp;gt; /proc/sys/vm/drop_caches
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;To free dentries and inodes:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt" id="hl-1-1"&gt;&lt;a class="lnlinks" href="#hl-1-1"&gt;1&lt;/a&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;# sync; echo 2 &amp;gt; /proc/sys/vm/drop_caches
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;To free pagecache, dentries and inodes:&lt;/p&gt;</description></item></channel></rss>