<?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: the swap mode in Operating System - Tru64 Unix</title>
    <link>https://community.hpe.com/t5/operating-system-tru64-unix/the-swap-mode/m-p/3079924#M7628</link>
    <description>RTFM! Or Google! or Manpage or Online Doc.!&lt;BR /&gt;&lt;BR /&gt;Did you simply google +lazy +eager +unix? You'll get plenty of explanations.&lt;BR /&gt;&lt;BR /&gt;One place to read up on this on the system is under "man swapon"... if you know what to look for as it is called "deferred mode" and "immediate mode" there.&lt;BR /&gt;Also check sysconfig.&lt;BR /&gt;&lt;BR /&gt;-- &lt;A href="http://www.ptc.com/partners/hardware/2000i2/faq/dec_faq.htm#3a" target="_blank"&gt;http://www.ptc.com/partners/hardware/2000i2/faq/dec_faq.htm#3a&lt;/A&gt; :&lt;BR /&gt;Tru64 Unix has two swap modes; the default is called "eager" mode and the alternate is called &lt;BR /&gt;"overcommit" or "lazy" swap mode. In eager swap mode, the operating system reserves swap &lt;BR /&gt;space for a process whenever it makes a request for memory. That way if it ever needs to be &lt;BR /&gt;swapped out, it has somewhere to store it's pages in the swap area(s). In "lazy" swap mode, swap &lt;BR /&gt;space is used by a process only when it needs to be paged to disk. &lt;BR /&gt;&lt;BR /&gt;What are the advantages and disadvantages? &lt;BR /&gt;In "eager" swap mode, a process always has a place to go if it needs to be paged out. In "lazy" &lt;BR /&gt;mode, if a process needs to be paged out and there is no place in the swap area to go, the OS will &lt;BR /&gt;start killing off other idle processes to make room for the active process to go to the swap &lt;BR /&gt;partition(s). This can be dangerous and it is for this reason that it is generally not recommended &lt;BR /&gt;to run in "lazy" swap mode. This is especially true for multi-user servers where users' processes &lt;BR /&gt;could be killed off seemingly at random. However, for single user workstations, this can be more &lt;BR /&gt;of an acceptable risk. If you are getting a lot of "Swap space below 10% free" messages in the &lt;BR /&gt;console window and do not have any additional free disk space to add more swap, switching to &lt;BR /&gt;"lazy" mode can usually alleviate these messages. This is because in "eager" swap mode, the &lt;BR /&gt;virtual memory of the system is essentially equal to the amount of swap space configured (every &lt;BR /&gt;process reserves it's space). In "lazy" swap mode, virtual memory = physical RAM + swap space &lt;BR /&gt;(swap isn't used until it's needed). "Lazy" swap mode also seems to have a slight performance &lt;BR /&gt;advantage because the OS doesn't have to reserve swap space for a process whenever it asks for &lt;BR /&gt;more memory. &lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Sun, 28 Sep 2003 12:13:38 GMT</pubDate>
    <dc:creator>Hein van den Heuvel</dc:creator>
    <dc:date>2003-09-28T12:13:38Z</dc:date>
    <item>
      <title>the swap mode</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/the-swap-mode/m-p/3079923#M7627</link>
      <description>Hi all,&lt;BR /&gt;  who can tell me the two swap mode:laze and &lt;BR /&gt;eager.thanks!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 28 Sep 2003 01:40:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/the-swap-mode/m-p/3079923#M7627</guid>
      <dc:creator>naVigAtor</dc:creator>
      <dc:date>2003-09-28T01:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: the swap mode</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/the-swap-mode/m-p/3079924#M7628</link>
      <description>RTFM! Or Google! or Manpage or Online Doc.!&lt;BR /&gt;&lt;BR /&gt;Did you simply google +lazy +eager +unix? You'll get plenty of explanations.&lt;BR /&gt;&lt;BR /&gt;One place to read up on this on the system is under "man swapon"... if you know what to look for as it is called "deferred mode" and "immediate mode" there.&lt;BR /&gt;Also check sysconfig.&lt;BR /&gt;&lt;BR /&gt;-- &lt;A href="http://www.ptc.com/partners/hardware/2000i2/faq/dec_faq.htm#3a" target="_blank"&gt;http://www.ptc.com/partners/hardware/2000i2/faq/dec_faq.htm#3a&lt;/A&gt; :&lt;BR /&gt;Tru64 Unix has two swap modes; the default is called "eager" mode and the alternate is called &lt;BR /&gt;"overcommit" or "lazy" swap mode. In eager swap mode, the operating system reserves swap &lt;BR /&gt;space for a process whenever it makes a request for memory. That way if it ever needs to be &lt;BR /&gt;swapped out, it has somewhere to store it's pages in the swap area(s). In "lazy" swap mode, swap &lt;BR /&gt;space is used by a process only when it needs to be paged to disk. &lt;BR /&gt;&lt;BR /&gt;What are the advantages and disadvantages? &lt;BR /&gt;In "eager" swap mode, a process always has a place to go if it needs to be paged out. In "lazy" &lt;BR /&gt;mode, if a process needs to be paged out and there is no place in the swap area to go, the OS will &lt;BR /&gt;start killing off other idle processes to make room for the active process to go to the swap &lt;BR /&gt;partition(s). This can be dangerous and it is for this reason that it is generally not recommended &lt;BR /&gt;to run in "lazy" swap mode. This is especially true for multi-user servers where users' processes &lt;BR /&gt;could be killed off seemingly at random. However, for single user workstations, this can be more &lt;BR /&gt;of an acceptable risk. If you are getting a lot of "Swap space below 10% free" messages in the &lt;BR /&gt;console window and do not have any additional free disk space to add more swap, switching to &lt;BR /&gt;"lazy" mode can usually alleviate these messages. This is because in "eager" swap mode, the &lt;BR /&gt;virtual memory of the system is essentially equal to the amount of swap space configured (every &lt;BR /&gt;process reserves it's space). In "lazy" swap mode, virtual memory = physical RAM + swap space &lt;BR /&gt;(swap isn't used until it's needed). "Lazy" swap mode also seems to have a slight performance &lt;BR /&gt;advantage because the OS doesn't have to reserve swap space for a process whenever it asks for &lt;BR /&gt;more memory. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 28 Sep 2003 12:13:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/the-swap-mode/m-p/3079924#M7628</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2003-09-28T12:13:38Z</dc:date>
    </item>
  </channel>
</rss>

