<?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: Diff between RAM, real memory, virtual memory and swap space in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/diff-between-ram-real-memory-virtual-memory-and-swap-space/m-p/3029693#M132265</link>
    <description>Memory mapping and usage is extremely complex since there are so many shared and private uses for memory. Virtual memory (for HP-UX) means the combination of RAM and swap space. However, swap space defines the virtual memory area (regardless of RAM) if the kernel parameter swapmem_on=0. This is leftover from earlier version of HP-UX when memory was measured in megs and swapping was an expected behavior. Today, where typical RAM is several thousand megs, swapmem_on=1 is typical (and the default) so that virtual memory (the space that all processs can use) is defined as 75% * RAM + swap-space. Essentially, swap space is added to 75% of RAM and processes can occupy that entire space.&lt;BR /&gt;&lt;BR /&gt;Swapping is not often a good thing however. If competing processes need to run and they won't all fit in RAM, then swapping takes place with a tremendous performance penalty. To see the entire virtual memory area, always use:&lt;BR /&gt;&lt;BR /&gt;swapinfo -tm&lt;BR /&gt;&lt;BR /&gt;so you can see megs and total.  The total line is all of virtual memory (swap and RAM as defined by swapmem_on). With RAM so cheap and performance a very high requirement, trying to figure out what will fit is more of an academic curiosity rather than a sysadmin job. For instance, the buffer cache, the kernel, shared libraries, shared memory and memory mapped files occupy space in RAM but are not assigned directly to specific processes.</description>
    <pubDate>Tue, 22 Jul 2003 10:37:53 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2003-07-22T10:37:53Z</dc:date>
    <item>
      <title>Diff between RAM, real memory, virtual memory and swap space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diff-between-ram-real-memory-virtual-memory-and-swap-space/m-p/3029686#M132258</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I hope this is not too elementary. I run SAM =&amp;gt; performance monitor =&amp;gt; system properties =&amp;gt; memory and the output is shown below.&lt;BR /&gt;&lt;BR /&gt;Physical Memory: 768.7 MB&lt;BR /&gt;Real Memory:&lt;BR /&gt;  Active:        38937.5 KB&lt;BR /&gt;  Total:         85990.6 KB&lt;BR /&gt;Virtual Memory: &lt;BR /&gt;  Active         278456.7 KB&lt;BR /&gt;  Total:         323585.0 KB&lt;BR /&gt;Free Memory Pages: 89103 at 4KB/page&lt;BR /&gt;Swap Space:&lt;BR /&gt;  Avail:            1024 MB  &lt;BR /&gt;  Used:             508 MB&lt;BR /&gt;    &lt;BR /&gt;I always thought that real mem = physical RAM and virtual mem = swap space. If I'm correct, then why are these figures different? &lt;BR /&gt;&lt;BR /&gt;Also under vmstat, what is the meaning of avm and free memory in relation to the SAM output?&lt;BR /&gt;&lt;BR /&gt;Lastly, what does the last line (memory) of the swapinfo command represent? &lt;BR /&gt;&lt;BR /&gt;#swapinfo&lt;BR /&gt;TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME&lt;BR /&gt;dev     1048576       0 1048576    0%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;reserve       -  510968 -510968&lt;BR /&gt;memory   604852  199040  405812   33%&lt;BR /&gt;&lt;BR /&gt;The man pages/unix manuals merely give the technical definition of the terms, which are not of much help to my understanding. &lt;BR /&gt;&lt;BR /&gt;Any help is appreciated. Thanks.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Jul 2003 08:45:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diff-between-ram-real-memory-virtual-memory-and-swap-space/m-p/3029686#M132258</guid>
      <dc:creator>Mark FCH_1</dc:creator>
      <dc:date>2003-07-22T08:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: Diff between RAM, real memory, virtual memory and swap space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diff-between-ram-real-memory-virtual-memory-and-swap-space/m-p/3029687#M132259</link>
      <description>You may take a look at this paper.</description>
      <pubDate>Tue, 22 Jul 2003 08:54:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diff-between-ram-real-memory-virtual-memory-and-swap-space/m-p/3029687#M132259</guid>
      <dc:creator>twang</dc:creator>
      <dc:date>2003-07-22T08:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Diff between RAM, real memory, virtual memory and swap space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diff-between-ram-real-memory-virtual-memory-and-swap-space/m-p/3029688#M132260</link>
      <description>sorry, no point please!</description>
      <pubDate>Tue, 22 Jul 2003 08:55:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diff-between-ram-real-memory-virtual-memory-and-swap-space/m-p/3029688#M132260</guid>
      <dc:creator>twang</dc:creator>
      <dc:date>2003-07-22T08:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Diff between RAM, real memory, virtual memory and swap space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diff-between-ram-real-memory-virtual-memory-and-swap-space/m-p/3029689#M132261</link>
      <description>&lt;A href="http://www.argray.org/unixfaq/explain_vm.shtml#vmm" target="_blank"&gt;http://www.argray.org/unixfaq/explain_vm.shtml#vmm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;-Karthik S S</description>
      <pubDate>Tue, 22 Jul 2003 08:58:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diff-between-ram-real-memory-virtual-memory-and-swap-space/m-p/3029689#M132261</guid>
      <dc:creator>Karthik S S</dc:creator>
      <dc:date>2003-07-22T08:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Diff between RAM, real memory, virtual memory and swap space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diff-between-ram-real-memory-virtual-memory-and-swap-space/m-p/3029690#M132262</link>
      <description>Tks for the info. &lt;BR /&gt;&lt;BR /&gt;Your attachment says that virtual mem = physical RAM + all swap space. But the sam output above shows virtual mem as 323mb, physical RAM as 767mb and swap space as 1gb. How is this so?&lt;BR /&gt;&lt;BR /&gt;Also what is the meaning of real memory?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Jul 2003 09:12:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diff-between-ram-real-memory-virtual-memory-and-swap-space/m-p/3029690#M132262</guid>
      <dc:creator>Mark FCH_1</dc:creator>
      <dc:date>2003-07-22T09:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Diff between RAM, real memory, virtual memory and swap space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diff-between-ram-real-memory-virtual-memory-and-swap-space/m-p/3029691#M132263</link>
      <description>The following link nice explains various memories in Unix,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://dataexpedition.com/~sbnoble/Tips/memory.html" target="_blank"&gt;http://dataexpedition.com/~sbnoble/Tips/memory.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Main - The physical Random Access Memory located on the CPU motherboard that most people think of when they talk about RAM. Also called Real Memory. This does not include processor caches, video memory, or other peripheral memory. &lt;BR /&gt;&lt;BR /&gt;Also have a look at,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.introcomp.co.uk/hpux/memory_management.html" target="_blank"&gt;http://www.introcomp.co.uk/hpux/memory_management.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;-Karthik S S</description>
      <pubDate>Tue, 22 Jul 2003 09:40:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diff-between-ram-real-memory-virtual-memory-and-swap-space/m-p/3029691#M132263</guid>
      <dc:creator>Karthik S S</dc:creator>
      <dc:date>2003-07-22T09:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Diff between RAM, real memory, virtual memory and swap space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diff-between-ram-real-memory-virtual-memory-and-swap-space/m-p/3029692#M132264</link>
      <description>Point noted. So real Mem = physical RAM and virtual Mem = RAM + swap. Ok, then why does SAM show:&lt;BR /&gt;&lt;BR /&gt;Physical Memory: 768.7 MB &lt;BR /&gt;Real Memory: &lt;BR /&gt;Active: 38937.5 KB &lt;BR /&gt;Total: 85990.6 KB &lt;BR /&gt;Virtual Memory: &lt;BR /&gt;Active 278456.7 KB &lt;BR /&gt;Total: 323585.0 KB &lt;BR /&gt;Free Memory Pages: 89103 at 4KB/page &lt;BR /&gt;Swap Space: &lt;BR /&gt;Avail: 1024 MB &lt;BR /&gt;Used: 508 MB &lt;BR /&gt;&lt;BR /&gt;Unless I'm interpreting it wrongly, it shows different values for RAM &amp;amp; real Mem. Also virtual Mem is less then RAM or swap here. &lt;BR /&gt;&lt;BR /&gt;This is what is confusing me right now.</description>
      <pubDate>Tue, 22 Jul 2003 10:04:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diff-between-ram-real-memory-virtual-memory-and-swap-space/m-p/3029692#M132264</guid>
      <dc:creator>Mark FCH_1</dc:creator>
      <dc:date>2003-07-22T10:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: Diff between RAM, real memory, virtual memory and swap space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diff-between-ram-real-memory-virtual-memory-and-swap-space/m-p/3029693#M132265</link>
      <description>Memory mapping and usage is extremely complex since there are so many shared and private uses for memory. Virtual memory (for HP-UX) means the combination of RAM and swap space. However, swap space defines the virtual memory area (regardless of RAM) if the kernel parameter swapmem_on=0. This is leftover from earlier version of HP-UX when memory was measured in megs and swapping was an expected behavior. Today, where typical RAM is several thousand megs, swapmem_on=1 is typical (and the default) so that virtual memory (the space that all processs can use) is defined as 75% * RAM + swap-space. Essentially, swap space is added to 75% of RAM and processes can occupy that entire space.&lt;BR /&gt;&lt;BR /&gt;Swapping is not often a good thing however. If competing processes need to run and they won't all fit in RAM, then swapping takes place with a tremendous performance penalty. To see the entire virtual memory area, always use:&lt;BR /&gt;&lt;BR /&gt;swapinfo -tm&lt;BR /&gt;&lt;BR /&gt;so you can see megs and total.  The total line is all of virtual memory (swap and RAM as defined by swapmem_on). With RAM so cheap and performance a very high requirement, trying to figure out what will fit is more of an academic curiosity rather than a sysadmin job. For instance, the buffer cache, the kernel, shared libraries, shared memory and memory mapped files occupy space in RAM but are not assigned directly to specific processes.</description>
      <pubDate>Tue, 22 Jul 2003 10:37:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diff-between-ram-real-memory-virtual-memory-and-swap-space/m-p/3029693#M132265</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-07-22T10:37:53Z</dc:date>
    </item>
  </channel>
</rss>

