<?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: memory puzzle! in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-puzzle/m-p/5140919#M452363</link>
    <description>to Ganesan R &lt;BR /&gt;&lt;BR /&gt;when i use top &lt;BR /&gt;&lt;BR /&gt;it reports that :&lt;BR /&gt;&lt;BR /&gt;Memory: 403504K (298180K) real, 512236K (368448K) virtual, 4107416K free&lt;BR /&gt;&lt;BR /&gt;so 1.5Gb phy-memory=403504*4k/1024/1024&lt;BR /&gt;&lt;BR /&gt;i don't kown  what does "512236K (368448K) virtual"  mean ? the virtual means what?is that swap ?</description>
    <pubDate>Fri, 14 Nov 2008 09:29:27 GMT</pubDate>
    <dc:creator>leelangco_1</dc:creator>
    <dc:date>2008-11-14T09:29:27Z</dc:date>
    <item>
      <title>memory puzzle!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-puzzle/m-p/5140914#M452358</link>
      <description>when i use swapinfo -atm ,output is: &lt;BR /&gt;            Kb      Kb      Kb   PCT  START/      Kb&lt;BR /&gt;TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME&lt;BR /&gt;dev     12582912       0 12582912    0%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;reserve       -  454624 -454624&lt;BR /&gt;memory  6373012 3033380 3339632   48%&lt;BR /&gt;total   18955924 3488004 15467920   18%       -       0    -&lt;BR /&gt;the swap reserver for process is 454Mb&lt;BR /&gt;&lt;BR /&gt;the out put of TOP: &lt;BR /&gt;Memory: 403504K (298180K) real, 512236K (368448K) virtual, 4107416K free&lt;BR /&gt;&lt;BR /&gt;403504/1024/1024=1.5Gb for all process of the system&lt;BR /&gt;&lt;BR /&gt;i know that when  starting a process,the system will reserve swapspace for that,my question is that 1.5gb phy-memory has been used by process,why the swap reserve for that is only 454Mb ? does it means some process must not swap out? is the 1.5Gb phy-memory contains databuffercache?&lt;BR /&gt; &lt;BR /&gt;thank you!</description>
      <pubDate>Fri, 14 Nov 2008 05:40:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-puzzle/m-p/5140914#M452358</guid>
      <dc:creator>leelangco_1</dc:creator>
      <dc:date>2008-11-14T05:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: memory puzzle!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-puzzle/m-p/5140915#M452359</link>
      <description>There is no swap space reserved for file-backed shared space allocation. Typically, all binaries and shared libraries fall into this category. That is why you are seeing this difference.</description>
      <pubDate>Fri, 14 Nov 2008 07:05:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-puzzle/m-p/5140915#M452359</guid>
      <dc:creator>Venkatesh BL</dc:creator>
      <dc:date>2008-11-14T07:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: memory puzzle!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-puzzle/m-p/5140916#M452360</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;There will not be swap space reserved for kernel also(and other process which cannot be swaped out).&lt;BR /&gt;&lt;BR /&gt;The o/p given is not swapinfo -atm, because its shows space in MB.&lt;BR /&gt;&lt;BR /&gt;Rgds&lt;BR /&gt;Sreekanth</description>
      <pubDate>Fri, 14 Nov 2008 07:37:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-puzzle/m-p/5140916#M452360</guid>
      <dc:creator>sreekanthtm</dc:creator>
      <dc:date>2008-11-14T07:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: memory puzzle!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-puzzle/m-p/5140917#M452361</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Where you are seeing the physical memory usage of 1.5GB?&lt;BR /&gt;&lt;BR /&gt;The cumulative value of memory usage includes both user process + system process.&lt;BR /&gt;&lt;BR /&gt;Again system process includes many things like kernel text data, Dynamic Arenas, Static tables and more importantly Buffer cache. Most cases Buffer cache would be the default value of 50% max. Those memory will not reserve swap.&lt;BR /&gt;&lt;BR /&gt;You can use tools like kmeminfo to see the memory usage in details..</description>
      <pubDate>Fri, 14 Nov 2008 07:52:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-puzzle/m-p/5140917#M452361</guid>
      <dc:creator>Ganesan R</dc:creator>
      <dc:date>2008-11-14T07:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: memory puzzle!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-puzzle/m-p/5140918#M452362</link>
      <description>I posted a more or less similar question like that about a year ago.&lt;BR /&gt;&lt;BR /&gt;see the responses I got may shed some more light:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=1198658" target="_blank"&gt;http://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=1198658&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 14 Nov 2008 08:45:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-puzzle/m-p/5140918#M452362</guid>
      <dc:creator>Frank de Vries</dc:creator>
      <dc:date>2008-11-14T08:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: memory puzzle!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-puzzle/m-p/5140919#M452363</link>
      <description>to Ganesan R &lt;BR /&gt;&lt;BR /&gt;when i use top &lt;BR /&gt;&lt;BR /&gt;it reports that :&lt;BR /&gt;&lt;BR /&gt;Memory: 403504K (298180K) real, 512236K (368448K) virtual, 4107416K free&lt;BR /&gt;&lt;BR /&gt;so 1.5Gb phy-memory=403504*4k/1024/1024&lt;BR /&gt;&lt;BR /&gt;i don't kown  what does "512236K (368448K) virtual"  mean ? the virtual means what?is that swap ?</description>
      <pubDate>Fri, 14 Nov 2008 09:29:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-puzzle/m-p/5140919#M452363</guid>
      <dc:creator>leelangco_1</dc:creator>
      <dc:date>2008-11-14T09:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: memory puzzle!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-puzzle/m-p/5140920#M452364</link>
      <description>Consider a simple binary file for example. The total 'text' size of it may be 10MB. But, during runtime it may not refer to all of them. So, you could end up having just 1MB (referenced portion) of text in RAM. Here, 10MB is 'virtual', 1MB is 'real'.</description>
      <pubDate>Fri, 14 Nov 2008 09:44:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-puzzle/m-p/5140920#M452364</guid>
      <dc:creator>Venkatesh BL</dc:creator>
      <dc:date>2008-11-14T09:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: memory puzzle!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-puzzle/m-p/5140921#M452365</link>
      <description>i have another quesiton about swap: &lt;BR /&gt;&lt;BR /&gt;TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME&lt;BR /&gt;dev 12582912 0 12582912 0% 0 - 1 /dev/vg00/lvol2&lt;BR /&gt;from the above report,i see used pct is %0&lt;BR /&gt;does that means the system swap nothing to the disk ,that is no process have been swapped out?&lt;BR /&gt;&lt;BR /&gt;does the seelping process use memory?</description>
      <pubDate>Fri, 14 Nov 2008 09:46:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-puzzle/m-p/5140921#M452365</guid>
      <dc:creator>leelangco_1</dc:creator>
      <dc:date>2008-11-14T09:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: memory puzzle!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-puzzle/m-p/5140922#M452366</link>
      <description>See the memory details from top output.&lt;BR /&gt;&lt;BR /&gt;top &lt;BR /&gt;     System: opie1                                         Sat Dec 18 22:10:07 2004&lt;BR /&gt;     Load averages: 3.39, 4.42, 4.54&lt;BR /&gt;     193 processes: 155 sleeping, 38 running&lt;BR /&gt;     Cpu states:&lt;BR /&gt;      LOAD   USER   NICE    SYS   IDLE  BLOCK  SWAIT   INTR   SSYS&lt;BR /&gt;      3.39   0.0%   0.0%   0.0% 100.0%   0.0%   0.0%   0.0%   0.0%&lt;BR /&gt;&lt;BR /&gt;     Memory: 515216K (441660K) real, 1537516K (1434024K) virtual, 1365132K free&lt;BR /&gt;&lt;BR /&gt;         ^          ^             ^         ^                  ^ &lt;BR /&gt;&lt;BR /&gt;         |          |             |         |                  | &lt;BR /&gt;&lt;BR /&gt;              1          2             3         4                  5 &lt;BR /&gt;Memory is not all of physcial, memory, it is: &lt;BR /&gt;Total physical memory in the system DEDICATED to text, data or stack segments for all processes on the system. &lt;BR /&gt;Total physical memory for runnable processes, as opposed to sleeping processes. &lt;BR /&gt;Total memory dedicated to text, data or stack segments for all processes on the system. Some of this is paged out to disk (that is, not all of this is in current physical memory.) &lt;BR /&gt;Total memory for runnable processes, as opposed to sleeping or stopped processes. &lt;BR /&gt;Physical memory the system considers to be unused and available to new processes. When this value is low, swapping is likely to occur. &lt;BR /&gt;For more about top, see top(1) man page.</description>
      <pubDate>Fri, 14 Nov 2008 09:49:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-puzzle/m-p/5140922#M452366</guid>
      <dc:creator>Ganesan R</dc:creator>
      <dc:date>2008-11-14T09:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: memory puzzle!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-puzzle/m-p/5140923#M452367</link>
      <description>&lt;BR /&gt;&amp;gt; from the above report,i see used pct is %0&lt;BR /&gt;does that means the system swap nothing to the disk ,that is no process have been swapped out?&lt;BR /&gt;&lt;BR /&gt;It means that no process is swapped out as of now. It could have happened in the past.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; does the seelping process use memory?&lt;BR /&gt;&lt;BR /&gt;A Sleeping process is not a 'dead' process. Of course it will use memory!</description>
      <pubDate>Fri, 14 Nov 2008 10:02:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-puzzle/m-p/5140923#M452367</guid>
      <dc:creator>Venkatesh BL</dc:creator>
      <dc:date>2008-11-14T10:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: memory puzzle!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-puzzle/m-p/5140924#M452368</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;This will clear your dobut hopefully..&lt;BR /&gt;&lt;BR /&gt;swapinfo description and example... &lt;BR /&gt;Use 'swapinfo -tm' to get a complete/total picutre of swap usage (see below for example and details.)  Pay particular attention to the total line as it indicates how much swap space has been actually reseved for swap. When this percentage gets near 100%, processes will not start up (unable to fork process) and new shared memory segments can not be created.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;swapinfo -tm  example and explanation: &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;             Mb      Mb      Mb   PCT  START/      Mb&lt;BR /&gt;TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME&lt;BR /&gt;dev         288      83     205   29%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;reserve       -     141    -141&lt;BR /&gt;memory      102      41      61   40%&lt;BR /&gt;total       390     265     125   68%       -       0    -&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;dev line(s):&lt;BR /&gt;&lt;BR /&gt;are the actual physical swap device(s) &lt;BR /&gt;show if swapping has actually occurred. In other words, the  PCT USED column in the dev lines represents the value last attained during a previous period of swapping. This is analogous to the high-water mark that a flood leaves. &lt;BR /&gt;to check to see if swapping is currently occuring, use 'vmstat -v 5 5' to see if the 'po' (page outs) is sustained above 0. &lt;BR /&gt;&lt;BR /&gt;reserve line(s)&lt;BR /&gt;&lt;BR /&gt;indicate how much of the swap device(s) has(have) been set aside for memory should it need to be swapped. &lt;BR /&gt;&lt;BR /&gt;memory line:&lt;BR /&gt;&lt;BR /&gt;indicative of how much of pseudo-swap has been reserved &lt;BR /&gt;when present, indicates  pseudo-swap is enabled   (i.e.  swapmem_on kernel paraemter is set to 1, which  is the default.) The size of pseudoswap is calculated to be 75% of the size of RAM (a.k.a. memory.)  In other words, it does not refer to acual physical memory use!!!!  Pseudo-swap was designed specifically for large memory systems for which acutal swapping is never (or rarely) expected to occur, so thereâ  s less need to use actual physical disk space for swap. For more information, see swapmem_on(5) , which reads:&lt;BR /&gt;&lt;BR /&gt;       In previous versions of HP-UX, system configuration required sufficient physical swap space for the maximum possible&lt;BR /&gt;       number of processes on the system. This is because HP-UX reserves swap space for a process when it is created, to&lt;BR /&gt;       ensure that a running process never needs to be killed due to insufficient swap.&lt;BR /&gt;       This was difficult, however, for systems needing gigabytes of swap space with gigabytes of physical memory, and those&lt;BR /&gt;       with workloads where the entire load would always be in core. This tunable was created to allow system swap space to&lt;BR /&gt;       be less than core  memory. To accomplish this, a portion of physical memory is set aside as 'pseudo-swap' space.&lt;BR /&gt;       While actual swap space is still available, processes still reserve all the swap they will need at fork or execute time from&lt;BR /&gt;       the physical device or file system swap. Once this swap is completely used, new processes do not reserve swap, and&lt;BR /&gt;       each page which would have been swapped to the physical device or file system is instead locked in memory and&lt;BR /&gt;       counted as part of the pseudo-swap space. &lt;BR /&gt;total line: &lt;BR /&gt; the PCT USED value shown in the total line indicates how much swap space has been actually reseved for swap. When this percentage gets near 100%, processes will not start up (unable to fork process) and new shared memory segments can not be created.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 14 Nov 2008 10:05:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-puzzle/m-p/5140924#M452368</guid>
      <dc:creator>Ganesan R</dc:creator>
      <dc:date>2008-11-14T10:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: memory puzzle!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-puzzle/m-p/5140925#M452369</link>
      <description>very helpful!&lt;BR /&gt;&lt;BR /&gt;thank you all !</description>
      <pubDate>Fri, 14 Nov 2008 10:12:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-puzzle/m-p/5140925#M452369</guid>
      <dc:creator>leelangco_1</dc:creator>
      <dc:date>2008-11-14T10:12:14Z</dc:date>
    </item>
  </channel>
</rss>

