<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Memory Management on Amit Agarwal Linux Blog</title>
    <link>/tags/memory-management/</link>
    <description>Recent content in Memory Management on Amit Agarwal Linux Blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Sun, 17 Nov 2013 01:45:06 +0000</lastBuildDate>
    
	<atom:link href="/tags/memory-management/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>zswap – compcache, compressed swap for better performance</title>
      <link>/2013/11/17/zswap-compcache-compressed-swap-performance/</link>
      <pubDate>Sun, 17 Nov 2013 01:45:06 +0000</pubDate>
      
      <guid>/2013/11/17/zswap-compcache-compressed-swap-performance/</guid>
      <description>&lt;p&gt;First, here is a link to article on compcache.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;http://code.google.com/p/compcache/wiki/CompilingAndUsingNew&#34;&gt;http://code.google.com/p/compcache/wiki/CompilingAndUsingNew&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;zswap is already in the &lt;a class=&#34;zem_slink&#34; title=&#34;Kernel (computing)&#34; href=&#34;http://en.wikipedia.org/wiki/Kernel_%28computing%29&#34; target=&#34;_blank&#34; rel=&#34;wikipedia&#34;&gt;kernel&lt;/a&gt; and you can see the documentation in the kernel documentation. Here is the name of the file if you need:&lt;/p&gt;
&lt;p&gt;/usr/share/doc/kernel-doc-$(&lt;a class=&#34;zem_slink&#34; title=&#34;Uname&#34; href=&#34;http://en.wikipedia.org/wiki/Uname&#34; target=&#34;_blank&#34; rel=&#34;wikipedia&#34;&gt;uname&lt;/a&gt; -r)/Documentation/vm/zswap.txt&lt;/p&gt;
&lt;p&gt;Here is the overview, in case you do not want to install kernel-doc&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Overview:&lt;/p&gt;
&lt;p&gt;Zswap is a lightweight &lt;a class=&#34;zem_slink&#34; title=&#34;Data compression&#34; href=&#34;http://en.wikipedia.org/wiki/Data_compression&#34; target=&#34;_blank&#34; rel=&#34;wikipedia&#34;&gt;compressed&lt;/a&gt; cache for swap pages. It takes pages that are&lt;br&gt;
in the process of being swapped out and attempts to compress them into a&lt;br&gt;
&lt;a class=&#34;zem_slink&#34; title=&#34;Memory management&#34; href=&#34;http://en.wikipedia.org/wiki/Memory_management&#34; target=&#34;_blank&#34; rel=&#34;wikipedia&#34;&gt;dynamically allocated&lt;/a&gt; &lt;a class=&#34;zem_slink&#34; title=&#34;Random-access memory&#34; href=&#34;http://en.wikipedia.org/wiki/Random-access_memory&#34; target=&#34;_blank&#34; rel=&#34;wikipedia&#34;&gt;RAM&lt;/a&gt;-based &lt;a class=&#34;zem_slink&#34; title=&#34;Memory pool&#34; href=&#34;http://en.wikipedia.org/wiki/Memory_pool&#34; target=&#34;_blank&#34; rel=&#34;wikipedia&#34;&gt;memory pool&lt;/a&gt;.  zswap basically trades &lt;a class=&#34;zem_slink&#34; title=&#34;Central processing unit&#34; href=&#34;http://en.wikipedia.org/wiki/Central_processing_unit&#34; target=&#34;_blank&#34; rel=&#34;wikipedia&#34;&gt;CPU&lt;/a&gt; cycles&lt;br&gt;
for potentially reduced swap &lt;a class=&#34;zem_slink&#34; title=&#34;Input/output&#34; href=&#34;http://en.wikipedia.org/wiki/Input/output&#34; target=&#34;_blank&#34; rel=&#34;wikipedia&#34;&gt;I/O&lt;/a&gt;.  This trade-off can also result in a&lt;br&gt;
significant performance improvement if reads from the compressed cache are&lt;br&gt;
faster than reads from a swap device.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>vmstat – what it is and how to use?</title>
      <link>/2011/04/24/vmstat-what-it-is-and-how-to-use/</link>
      <pubDate>Sun, 24 Apr 2011 02:24:52 +0000</pubDate>
      
      <guid>/2011/04/24/vmstat-what-it-is-and-how-to-use/</guid>
      <description>&lt;div class=&#34;zemanta-img&#34; style=&#34;margin: 1em; display: block;&#34;&gt;
  &lt;p&gt;
    &lt;figure style=&#34;width: 300px&#34; class=&#34;wp-caption alignright&#34;&gt;&lt;a href=&#34;http://commons.wikipedia.org/wiki/File:Paging_386%28pl%29.svg&#34;&gt;&lt;img title=&#34;Paging on 386 - address translation (polish texts)&#34; src=&#34;http://upload.wikimedia.org/wikipedia/commons/thumb/9/90/Paging_386%28pl%29.svg/300px-Paging_386%28pl%29.svg.png&#34; alt=&#34;Paging on 386 - address translation (polish texts)&#34; width=&#34;300&#34; height=&#34;208&#34; /&gt;&lt;/a&gt;&lt;figcaption class=&#34;wp-caption-text&#34;&gt;Image via Wikipedia&lt;/figcaption&gt;&lt;/figure&gt;
  &lt;/p&gt;
&lt;/div&gt;
&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;&lt;a class=&#34;zem_slink&#34; title=&#34;Vmstat&#34; rel=&#34;wikipedia&#34; href=&#34;http://en.wikipedia.org/wiki/Vmstat&#34;&gt;vmstat&lt;/a&gt; provides a summary of various functions within the system, including system wide free memory, paging counters, summarized disk activity, &lt;a class=&#34;zem_slink&#34; title=&#34;System call&#34; rel=&#34;wikipedia&#34; href=&#34;http://en.wikipedia.org/wiki/System_call&#34;&gt;system calls&lt;/a&gt; and cpu utilization.&lt;/p&gt;
&lt;p&gt;The &lt;a class=&#34;zem_slink&#34; title=&#34;Output&#34; rel=&#34;wikipedia&#34; href=&#34;http://en.wikipedia.org/wiki/Output&#34;&gt;output&lt;/a&gt; of vmstat and description of what each field means:&lt;/p&gt;
&lt;p&gt;The first line of output from vmstat shows a summary since boot,&lt;br&gt;
followed by the output over the last 3 seconds for each additional line.&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
