<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how to clear cache memory in linux in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/how-to-clear-cache-memory-in-linux/m-p/5239869#M52121</link>
    <description>&lt;!--!*#--&gt;Hello.&lt;BR /&gt;&lt;BR /&gt;From Documentation/sysctl/vm.txt:&lt;BR /&gt;&lt;BR /&gt;drop_caches&lt;BR /&gt;&lt;BR /&gt;Writing to this will cause the kernel to drop clean caches, dentries and&lt;BR /&gt;inodes from memory, causing that memory to become free.&lt;BR /&gt;&lt;BR /&gt;To free pagecache:&lt;BR /&gt;        echo 1 &amp;gt; /proc/sys/vm/drop_caches&lt;BR /&gt;To free dentries and inodes:&lt;BR /&gt;        echo 2 &amp;gt; /proc/sys/vm/drop_caches&lt;BR /&gt;To free pagecache, dentries and inodes:&lt;BR /&gt;        echo 3 &amp;gt; /proc/sys/vm/drop_caches&lt;BR /&gt;&lt;BR /&gt;As this is a non-destructive operation and dirty objects are not freeable, the&lt;BR /&gt;user should run `sync' first.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Goran</description>
    <pubDate>Fri, 14 May 2010 04:17:57 GMT</pubDate>
    <dc:creator>Goran Koruga</dc:creator>
    <dc:date>2010-05-14T04:17:57Z</dc:date>
    <item>
      <title>how to clear cache memory in linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-clear-cache-memory-in-linux/m-p/5239866#M52118</link>
      <description>Hello Gurus,&lt;BR /&gt;&lt;BR /&gt;I have a doubt on memory here.&lt;BR /&gt;As per the below details.&lt;BR /&gt;&lt;BR /&gt;             total       used       free     shared    buffers     cached&lt;BR /&gt;Mem:       8046296    5224000    2822296          0     696388    2917184&lt;BR /&gt;&lt;BR /&gt;Total memory usage is 5224000 which includes (actual usage + cached right)?&lt;BR /&gt;If that’s is the case so, &lt;BR /&gt;&lt;BR /&gt;1) What is cached? ( as of I know, it’s used for tmp usage as like swap ) Correct me if I am wrong.&lt;BR /&gt;2) Can I clear cache to make my memory usage better?&lt;BR /&gt;3) If so, how to clear cache memory.</description>
      <pubDate>Thu, 13 May 2010 17:25:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-clear-cache-memory-in-linux/m-p/5239866#M52118</guid>
      <dc:creator>bullz</dc:creator>
      <dc:date>2010-05-13T17:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to clear cache memory in linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-clear-cache-memory-in-linux/m-p/5239867#M52119</link>
      <description>1) What is cached? &lt;BR /&gt;&lt;BR /&gt;Information for recent/frecuently used data, as file system structures and data.&lt;BR /&gt;&lt;BR /&gt;2) Can I clear cache to make my memory usage better?&lt;BR /&gt;&lt;BR /&gt;The operating system handles that for you. You don't need to manually clear the cache. The OS is very efficient using memory.&lt;BR /&gt;&lt;BR /&gt;Related information:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.cyberciti.biz/faq/linux-kernel-tuning-virtual-memory-subsystem/" target="_blank"&gt;http://www.cyberciti.biz/faq/linux-kernel-tuning-virtual-memory-subsystem/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 13 May 2010 17:58:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-clear-cache-memory-in-linux/m-p/5239867#M52119</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2010-05-13T17:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to clear cache memory in linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-clear-cache-memory-in-linux/m-p/5239868#M52120</link>
      <description>Hi bullz,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; 1) What is cached? ( as of I know, its used for tmp usage as like swap )&lt;BR /&gt;&amp;gt;&amp;gt;   Correct me if I am wrong.&lt;BR /&gt;Files that are actively used on a system are cached.&lt;BR /&gt;i.e. when you access the file form the disk for the first time, it is fetched from&lt;BR /&gt;disk. This time it gets copied to cache also. Next time if the same file is&lt;BR /&gt;accessed the OS gives you the file from the cache itself. The IO to the disk is&lt;BR /&gt;avoided and hence you get performance improvement. Data is got by&lt;BR /&gt;accessing the main memory rather than the disk and hence the performance boost.&lt;BR /&gt;&lt;BR /&gt;Generally most Cache's use the LRU mechanism to keep/remove data from&lt;BR /&gt;the cache. i.e. the file that gets most actively used will remain in the cache&lt;BR /&gt;for more time when compared to other files.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; 2) Can I clear cache to make my memory usage better?&lt;BR /&gt;The OS does this for you. It does the complete cache management and hence&lt;BR /&gt;you dont have to worry about it.&lt;BR /&gt;&lt;BR /&gt;However if there are any application that can thrash the cache then you have to&lt;BR /&gt;deal with those. By thrashing the cache i mean some bulk disk accessing&lt;BR /&gt;operation like backup of disk which would access the entire contents of the&lt;BR /&gt;disk and hence would get them in cache. But in doing so the data already in&lt;BR /&gt;cache gets knowcked out.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Murali</description>
      <pubDate>Fri, 14 May 2010 00:12:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-clear-cache-memory-in-linux/m-p/5239868#M52120</guid>
      <dc:creator>P Muralidhar Kini</dc:creator>
      <dc:date>2010-05-14T00:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to clear cache memory in linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-clear-cache-memory-in-linux/m-p/5239869#M52121</link>
      <description>&lt;!--!*#--&gt;Hello.&lt;BR /&gt;&lt;BR /&gt;From Documentation/sysctl/vm.txt:&lt;BR /&gt;&lt;BR /&gt;drop_caches&lt;BR /&gt;&lt;BR /&gt;Writing to this will cause the kernel to drop clean caches, dentries and&lt;BR /&gt;inodes from memory, causing that memory to become free.&lt;BR /&gt;&lt;BR /&gt;To free pagecache:&lt;BR /&gt;        echo 1 &amp;gt; /proc/sys/vm/drop_caches&lt;BR /&gt;To free dentries and inodes:&lt;BR /&gt;        echo 2 &amp;gt; /proc/sys/vm/drop_caches&lt;BR /&gt;To free pagecache, dentries and inodes:&lt;BR /&gt;        echo 3 &amp;gt; /proc/sys/vm/drop_caches&lt;BR /&gt;&lt;BR /&gt;As this is a non-destructive operation and dirty objects are not freeable, the&lt;BR /&gt;user should run `sync' first.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Goran</description>
      <pubDate>Fri, 14 May 2010 04:17:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-clear-cache-memory-in-linux/m-p/5239869#M52121</guid>
      <dc:creator>Goran Koruga</dc:creator>
      <dc:date>2010-05-14T04:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to clear cache memory in linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-clear-cache-memory-in-linux/m-p/5239870#M52122</link>
      <description>Thanx all</description>
      <pubDate>Fri, 14 May 2010 20:10:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-clear-cache-memory-in-linux/m-p/5239870#M52122</guid>
      <dc:creator>bullz</dc:creator>
      <dc:date>2010-05-14T20:10:33Z</dc:date>
    </item>
  </channel>
</rss>

