<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Random-Access Memory on Amit Agarwal Linux Blog</title>
    <link>/tags/random-access-memory/</link>
    <description>Recent content in Random-Access Memory 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/random-access-memory/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>browsing the windows machines and their shares – listing</title>
      <link>/2011/04/30/browsing-windows-machines-shares-listing/</link>
      <pubDate>Sat, 30 Apr 2011 15:01:55 +0000</pubDate>
      
      <guid>/2011/04/30/browsing-windows-machines-shares-listing/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;smbtree is a very nice command to check all the machines that are present in the &lt;a class=&#34;zem_slink&#34; title=&#34;Local area network&#34; rel=&#34;wikipedia&#34; href=&#34;http://en.wikipedia.org/wiki/Local_area_network&#34;&gt;LAN&lt;/a&gt; (your connected network). For this to work you may need to look at &lt;a href=&#34;http://blog.amit-agarwal.co.in/2011/04/28/client-lanman-auth-disabled-error-samba/&#34;&gt;&lt;strong&gt;this&lt;/strong&gt;&lt;/a&gt; article also.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;div class=&#34;codecolorer-container text solarized-light&#34; style=&#34;overflow:auto;white-space:nowrap;width:550px;&#34;&gt;
  &lt;table cellspacing=&#34;0&#34; cellpadding=&#34;0&#34;&gt;
    &lt;tr&gt;
      &lt;td class=&#34;line-numbers&#34;&gt;
        &lt;div&gt;
          1&lt;br /&gt;
        &lt;/div&gt;
      &lt;/td&gt;
&lt;pre&gt;&lt;code&gt;  &amp;lt;td&amp;gt;
    &amp;lt;div class=&amp;quot;text codecolorer&amp;quot;&amp;gt;
      smbtree -U &amp;lt;strong&amp;gt;username
    &amp;lt;/div&amp;gt;
  &amp;lt;/td&amp;gt;
&amp;lt;/tr&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
  &lt;/table&gt;
&lt;/div&gt;
&lt;/strong&gt;
&lt;h6 class=&#34;zemanta-related-title&#34; style=&#34;font-size: 1em;&#34;&gt;
  Related articles
&lt;/h6&gt;
&lt;ul class=&#34;zemanta-article-ul&#34;&gt;
  &lt;li class=&#34;zemanta-article-ul-li&#34;&gt;
    &lt;a href=&#34;http://ask.metafilter.com/183636/Prompted-for-a-username-and-password-when-browsing-to-an-IIS-virtual-directory&#34;&gt;Prompted for a username and password when browsing to an IIS virtual directory&lt;/a&gt; (ask.metafilter.com)
  &lt;/li&gt;
  &lt;li class=&#34;zemanta-article-ul-li&#34;&gt;
    &lt;a href=&#34;http://www.lockergnome.com/net/2011/04/15/how-to-delete-history-in-internet-explorer/&#34;&gt;How to Delete History in Internet Explorer&lt;/a&gt; (lockergnome.com)
  &lt;/li&gt;
  &lt;li class=&#34;zemanta-article-ul-li&#34;&gt;
    &lt;a href=&#34;http://www.edugeek.net/forums/network-classroom-management/74441-how-guide-deploy-vnc-via-group-policy.html&#34;&gt;How To Guide: Deploy VNC via Group Policy&lt;/a&gt; (edugeek.net)
  &lt;/li&gt;
  &lt;li class=&#34;zemanta-article-ul-li&#34;&gt;
    &lt;a href=&#34;http://ask.metafilter.com/179348/Windows-just-doesnt-like-tunnels&#34;&gt;Windows just doesn&amp;#8217;t like tunnels&lt;/a&gt; (ask.metafilter.com)
  &lt;/li&gt;
  &lt;li class=&#34;zemanta-article-ul-li&#34;&gt;
    &lt;a href=&#34;http://hitechbarkadaz.wordpress.com/2011/03/04/windows-tips-speed-up-your-network-share-browsing/&#34;&gt;Windows Tips &amp;#8211; Speed Up your Network Share Browsing&lt;/a&gt; (hitechbarkadaz.wordpress.com)
  &lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&#34;zemanta-pixie&#34; style=&#34;margin-top: 10px; height: 15px;&#34;&gt;
  &lt;a class=&#34;zemanta-pixie-a&#34; title=&#34;Enhanced by Zemanta&#34; href=&#34;http://www.zemanta.com/&#34;&gt;&lt;img class=&#34;zemanta-pixie-img&#34; style=&#34;border: medium none; float: right;&#34; src=&#34;https://i1.wp.com/img.zemanta.com/zemified_e.png?w=688&#34; alt=&#34;Enhanced by Zemanta&#34; data-recalc-dims=&#34;1&#34; /&gt;&lt;/a&gt;&lt;span class=&#34;zem-script more-related pretty-attribution&#34;&gt;&lt;/span&gt;
&lt;/div&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>
    
    <item>
      <title>Speed Up Firefox by Moving Your Cache to RAM</title>
      <link>/2011/01/08/speed-firefox-moving-cache-ram/</link>
      <pubDate>Sat, 08 Jan 2011 15:11:23 +0000</pubDate>
      
      <guid>/2011/01/08/speed-firefox-moving-cache-ram/</guid>
      <description>&lt;div class=&#34;zemanta-img&#34; style=&#34;margin: 1em; display: block;&#34;&gt;
  &lt;div&gt;
    &lt;dl class=&#34;wp-caption alignright&#34; style=&#34;width: 310px;&#34;&gt;
      &lt;dt class=&#34;wp-caption-dt&#34;&gt;
        &lt;a href=&#34;http://commons.wikipedia.org/wiki/File:Memory_module_DDRAM_20-03-2006.jpg&#34;&gt;&lt;img title=&#34;The 536,870,912 byte (512×2 20 ) capacity of t...&#34; src=&#34;http://upload.wikimedia.org/wikipedia/commons/thumb/c/ca/Memory_module_DDRAM_20-03-2006.jpg/300px-Memory_module_DDRAM_20-03-2006.jpg&#34; alt=&#34;The 536,870,912 byte (512×2 20 ) capacity of t...&#34; width=&#34;300&#34; height=&#34;225&#34; /&gt;&lt;/a&gt;
      &lt;/dt&gt;
&lt;pre&gt;&lt;code&gt;  &amp;lt;dd class=&amp;quot;wp-caption-dd zemanta-img-attribution&amp;quot; style=&amp;quot;font-size: 0.8em;&amp;quot;&amp;gt;
    Image via &amp;lt;a href=&amp;quot;http://commons.wikipedia.org/wiki/File:Memory_module_DDRAM_20-03-2006.jpg&amp;quot;&amp;gt;Wikipedia&amp;lt;/a&amp;gt;
  &amp;lt;/dd&amp;gt;
&amp;lt;/dl&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;Speed Up Firefox by Moving Your &lt;a class=&#34;zem_slink&#34; title=&#34;Cache&#34; rel=&#34;wikipedia&#34; href=&#34;http://en.wikipedia.org/wiki/Cache&#34;&gt;Cache&lt;/a&gt; to &lt;a class=&#34;zem_slink&#34; title=&#34;Random-access memory&#34; rel=&#34;wikipedia&#34; href=&#34;http://en.wikipedia.org/wiki/Random-access_memory&#34;&gt;RAM&lt;/a&gt;, No RAM Disk Required [Firefox Tip] Click here to read Speed Up Firefox by Moving Your Cache to RAM, No RAM Disk Required We’ved talked about moving your cache files to a &lt;a class=&#34;zem_slink&#34; title=&#34;RAM disk&#34; rel=&#34;wikipedia&#34; href=&#34;http://en.wikipedia.org/wiki/RAM_disk&#34;&gt;RAM disk&lt;/a&gt; to speed things up, but it turns out Firefox has this feature built in. Here’s how to turn it on. More »&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Are you swapped? Increase the performance of Linux machine.</title>
      <link>/2010/07/14/are-you-swapped-increase-the-performance-of-linux-machine/</link>
      <pubDate>Wed, 14 Jul 2010 01:06:31 +0000</pubDate>
      
      <guid>/2010/07/14/are-you-swapped-increase-the-performance-of-linux-machine/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;With the ever increasing cost of the Hardware, the amount of physical &lt;a class=&#34;\&amp;quot;zem_slink\&amp;quot;&#34; title=&#34;\&amp;quot;Random-access&#34; rel=&#34;\&amp;quot;wikipedia\&amp;quot;&#34; href=&#34;\&#34;&gt;RAM&lt;/a&gt; available on the system is increasing day by day. For example, couple of years back, I had a system which was very high end Desktop with 256MB &lt;a class=&#34;zem_slink&#34; title=&#34;Random-access memory&#34; rel=&#34;wikipedia&#34; href=&#34;http://en.wikipedia.org/wiki/Random-access_memory&#34;&gt;RAM&lt;/a&gt; and today I have a 2GB RAM Desktop. So, whats the point.&lt;/p&gt;
&lt;p&gt;The &lt;a class=&#34;\&amp;quot;zem_slink\&amp;quot;&#34; title=&#34;\&amp;quot;Linux\&amp;quot;&#34; rel=&#34;\&amp;quot;wikipedia\&amp;quot;&#34; href=&#34;\&#34;&gt;Linux&lt;/a&gt; systems (right word should be &lt;a class=&#34;\&amp;quot;zem_slink\&amp;quot;&#34; title=&#34;\&amp;quot;Linux&#34; rel=&#34;\&amp;quot;homepage\&amp;quot;&#34; href=&#34;\&#34;&gt;kernel&lt;/a&gt;) are desiged to use both RAM and &lt;a class=&#34;\&amp;quot;zem_slink\&amp;quot;&#34; title=&#34;\&amp;quot;Paging\&amp;quot;&#34; rel=&#34;\&amp;quot;wikipedia\&amp;quot;&#34; href=&#34;\&#34;&gt;swap partition&lt;/a&gt;. Swap partition is a partition on Hard disk and is used mostly like RAM. Problem is that &lt;a class=&#34;\&amp;quot;zem_slink\&amp;quot;&#34; title=&#34;\&amp;quot;Hard&#34; rel=&#34;\&amp;quot;wikipedia\&amp;quot;&#34; href=&#34;\&#34;&gt;HDD&lt;/a&gt; access is always slower than RAM access and hence inherently, the system will work little slower even if you have enough RAM not to use swap. The term &amp;amp;#8221;&lt;a class=&#34;zem_slink&#34; title=&#34;Swappiness&#34; rel=&#34;wikipedia&#34; href=&#34;http://en.wikipedia.org/wiki/Swappiness&#34;&gt;swappiness&lt;/a&gt;&amp;amp;#8221; is used to determine how the kernel should try to seam-balance between the use of RAM and swap. By default, most of the distro&amp;amp;#8217;s have a swappiness of 60. A higher value of swappiness means that the RAM will be swapped out faster.&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
