<?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: howmuch free memory in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/howmuch-free-memory/m-p/2441793#M7754</link>
    <description>The reason why I don't want any swapping or paging, is that the memory used by an&lt;BR /&gt;Oracle database instance is almost all buffers for data etc. If that starts to&lt;BR /&gt;page to disk (however efficient that may be in HP-UX), performance will degrade.&lt;BR /&gt;(you would not want your disk buffers to be paged out/in, do you?)&lt;BR /&gt;&lt;BR /&gt;Some of your replies seem to say: "try it and see". I am looking at a live system&lt;BR /&gt;and I do not want to take any risks.&lt;BR /&gt;&lt;BR /&gt;My problem is knowing what is virtual memory and what is real memory...&lt;BR /&gt;&lt;BR /&gt;I copy output from some commands below.&lt;BR /&gt;I see that 'vmstat' 1229 * 4K = 4916  is roughly the same as 4892K in 'top'.&lt;BR /&gt;Is this my answer? Just under 5Mb free? Or is virtual memory included in this&lt;BR /&gt;figure?&lt;BR /&gt;&lt;BR /&gt;When I add up the last column of 'ipcs -mob' I get 887941788 (846M). Where does&lt;BR /&gt;that fit in the picture?&lt;BR /&gt;&lt;BR /&gt;I have 1Gb RAM installed, I don't recognise that anywhere in the output below&lt;BR /&gt;(just making sure I understand what I see).&lt;BR /&gt;&lt;BR /&gt;Or am I making a thinking error somewhere?&lt;BR /&gt;&lt;BR /&gt;---------------&lt;BR /&gt;# vmstat&lt;BR /&gt;         procs           memory                   page                          &lt;BR /&gt;    faults       cpu&lt;BR /&gt;    r     b     w      avm    free   re   at    pi   po    fr   de    sr     in &lt;BR /&gt;    sy    cs  us sy id&lt;BR /&gt;    0     0     0    23593    1229    2    0     1    0     0    0     5    501 &lt;BR /&gt;   403    77   1  0 99&lt;BR /&gt;&lt;BR /&gt;---------------   &lt;BR /&gt;# top&lt;BR /&gt;Memory: 62080K (11708K) real, 211796K (55696K) virtual, 4892K free  Page# 1/11&lt;BR /&gt;&lt;BR /&gt;---------------&lt;BR /&gt;# ipcs -mob&lt;BR /&gt;IPC status from /dev/kmem as of Fri Sep  1 15:51:22 2000&lt;BR /&gt;T      ID     KEY        MODE        OWNER     GROUP NATTCH  SEGSZ&lt;BR /&gt;Shared Memory:&lt;BR /&gt;m       0 0x411c0232 --rw-rw-rw-      root      root      0    348&lt;BR /&gt;m       1 0x4e0c0002 --rw-rw-rw-      root      root      1  31040&lt;BR /&gt;m       2 0x41200c15 --rw-rw-rw-      root      root      1   8192&lt;BR /&gt;m  104451 0xc468aa0c --rw-r-----    oracle       dba     33 713961472&lt;BR /&gt;m    6148 0xfc9e5780 --rw-r-----    oracle       dba     10 173940736&lt;BR /&gt;&lt;BR /&gt;---------------&lt;BR /&gt;# swapinfo -t&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     1048576  785912  262664   75%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;reserve       -  262664 -262664&lt;BR /&gt;memory   748668  300276  448392   40%&lt;BR /&gt;total   1797244 1348852  448392   75%       -       0    -&lt;BR /&gt;&lt;BR /&gt;---------------&lt;BR /&gt;# echo "bufpages/D" |adb /stand/vmunix /dev/mem&lt;BR /&gt;Error from elf64_getehdr(application core file)&lt;BR /&gt;Not an Elf file: No Elf header&lt;BR /&gt;bufpages:&lt;BR /&gt;bufpages:       13106&lt;BR /&gt;&lt;BR /&gt;---------------</description>
    <pubDate>Fri, 01 Sep 2000 14:43:41 GMT</pubDate>
    <dc:creator>Geetam</dc:creator>
    <dc:date>2000-09-01T14:43:41Z</dc:date>
    <item>
      <title>howmuch free memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/howmuch-free-memory/m-p/2441785#M7746</link>
      <description>How do I find out whether I have enough memory for another database instance without swapping to disk. (sorry, I don't have Glance installed, yet)&lt;BR /&gt;&lt;BR /&gt;Either I have never seen an answer to this question, or it was too difficult to remember...&lt;BR /&gt;&lt;BR /&gt;Can you also remind me how to reduce buffers to get more memory for the database instance.</description>
      <pubDate>Thu, 31 Aug 2000 15:54:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/howmuch-free-memory/m-p/2441785#M7746</guid>
      <dc:creator>Geetam</dc:creator>
      <dc:date>2000-08-31T15:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: howmuch free memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/howmuch-free-memory/m-p/2441786#M7747</link>
      <description>Use vmstat&lt;BR /&gt;vmstat 1 5&lt;BR /&gt;        procs           memory                   page                              faults       cpu&lt;BR /&gt;    r     b     w      avm    free   re   at    pi   po    fr   de    sr     in     sy    cs  us sy id&lt;BR /&gt;    0     0     0    10598  299827   20   21     0    0     0    0     0      0    149    53   8  3 89&lt;BR /&gt;    0     0     0    10598  299800   11    0     0    0     0    0     0    331    526    86  35  1 64&lt;BR /&gt;    0     0     0    10598  299800    8    0     0    0     0    0     0    365    824   140  21  3 76&lt;BR /&gt;    0     0     0    11109  299800    6    0     0    0     0    0     0    353    702   126   1  2 97&lt;BR /&gt;    0     0     0    11109  299800    4    0     0    0     0    0     0    344    596   113   2 -3 102</description>
      <pubDate>Thu, 31 Aug 2000 16:08:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/howmuch-free-memory/m-p/2441786#M7747</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2000-08-31T16:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: howmuch free memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/howmuch-free-memory/m-p/2441787#M7748</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;You can also get some indications from:&lt;BR /&gt;&lt;BR /&gt;swapinfo -t&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 31 Aug 2000 16:37:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/howmuch-free-memory/m-p/2441787#M7748</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2000-08-31T16:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: howmuch free memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/howmuch-free-memory/m-p/2441788#M7749</link>
      <description>&lt;BR /&gt;simply use top see how much free memory you have (FREE MEM). If its low then you wont want to add another database without freeing up some memory first by say adjusting the buffer cache or adding some more RAM. The free mem column from vmstat is in pages (4096bytes per page) so you need to do some math, use top, its easier.&lt;BR /&gt;&lt;BR /&gt;If you want to reduce your buffer cache then check the kernel parameter bc_max_pct.&lt;BR /&gt;Try reducing it to free up some memory, build a new kenerl and reboot and see how much free ram you have now. To see if your system is swapping to disk then use swapinfo -mt and look at the used column. %0 used is great, no swapping.&lt;BR /&gt;</description>
      <pubDate>Thu, 31 Aug 2000 17:32:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/howmuch-free-memory/m-p/2441788#M7749</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2000-08-31T17:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: howmuch free memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/howmuch-free-memory/m-p/2441789#M7750</link>
      <description>Geetam, keep in mind that HP-UX is a virtual memory operating system.  It works very well with only bringing in parts of the process that needs to be in memory in order to run it.  In fact, it would rather keep most of the process in VM rather than in real memory in order to maintain a large free list. &lt;BR /&gt;&lt;BR /&gt;What I am trying to say is that at the time you install and run the additional database instance, you will have to measure your real memory and virtual memory stats in order to determine if there is any memory pressure.  &lt;BR /&gt;&lt;BR /&gt;Use vmstat and swapinfo -tma to monitor memory usage. You can post the outputs here if you need help interpreting the values.&lt;BR /&gt;&lt;BR /&gt;Tony</description>
      <pubDate>Thu, 31 Aug 2000 18:39:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/howmuch-free-memory/m-p/2441789#M7750</guid>
      <dc:creator>Anthony deRito</dc:creator>
      <dc:date>2000-08-31T18:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: howmuch free memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/howmuch-free-memory/m-p/2441790#M7751</link>
      <description>Hi Geetam,&lt;BR /&gt;&lt;BR /&gt;Go through this attached document. It has all you can learn to tackle job.&lt;BR /&gt;You can also use sysdef; adb command (echo "bufpages/D" |adb /stand/vmunix /dev/mem) to determine your bufpages. &lt;BR /&gt;From kernel configuration, set swapmem_on=1;&lt;BR /&gt;bufpages=0&lt;BR /&gt;nbuf=0 &lt;BR /&gt;So the bufpage caching will be dynamic and you have 75% of you total physical memory as virtual reserved memory.&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 31 Aug 2000 19:31:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/howmuch-free-memory/m-p/2441790#M7751</guid>
      <dc:creator>CHRIS_ANORUO</dc:creator>
      <dc:date>2000-08-31T19:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: howmuch free memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/howmuch-free-memory/m-p/2441791#M7752</link>
      <description>HP-UX is indeed a virtual memory machine so free memory is not too important.  What is important is when you add additional porcesses, that the paging rate is reasonable (the po column in vmstat). Page outs indicate that additional memory was rfequired and occupied memory had to be freed by writing a few pages to disk. This is normal.&lt;BR /&gt;&lt;BR /&gt;However, if the page out rate is dozens to hundreds, then RAM is indeed too small as the processes are constantly fighting for RAM.  HP-UX manages memory in a very complex manner such that a simple value like free memory won't tell the entire picture.&lt;BR /&gt;&lt;BR /&gt;You'd be better off looking at Glance. You can load a copy immediately from Application CDROMs.  If you like the results from Glance's screens, you can order a permanent codeword from HP.</description>
      <pubDate>Fri, 01 Sep 2000 00:26:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/howmuch-free-memory/m-p/2441791#M7752</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2000-09-01T00:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: howmuch free memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/howmuch-free-memory/m-p/2441792#M7753</link>
      <description>All the above are valuable points of view... You said you do not have Glance installed, yet. Should I understand you could have no problems if you had Glance? Glance has a trial version that you can install and use it for 60 days. Calling HP, you can get 30 more days of evaluation copy... total of 90 days could give you the posibility to get an answer to your Oracle issue and as well to the management if baying or not...</description>
      <pubDate>Fri, 01 Sep 2000 04:03:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/howmuch-free-memory/m-p/2441792#M7753</guid>
      <dc:creator>Antoanetta Naghiu</dc:creator>
      <dc:date>2000-09-01T04:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: howmuch free memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/howmuch-free-memory/m-p/2441793#M7754</link>
      <description>The reason why I don't want any swapping or paging, is that the memory used by an&lt;BR /&gt;Oracle database instance is almost all buffers for data etc. If that starts to&lt;BR /&gt;page to disk (however efficient that may be in HP-UX), performance will degrade.&lt;BR /&gt;(you would not want your disk buffers to be paged out/in, do you?)&lt;BR /&gt;&lt;BR /&gt;Some of your replies seem to say: "try it and see". I am looking at a live system&lt;BR /&gt;and I do not want to take any risks.&lt;BR /&gt;&lt;BR /&gt;My problem is knowing what is virtual memory and what is real memory...&lt;BR /&gt;&lt;BR /&gt;I copy output from some commands below.&lt;BR /&gt;I see that 'vmstat' 1229 * 4K = 4916  is roughly the same as 4892K in 'top'.&lt;BR /&gt;Is this my answer? Just under 5Mb free? Or is virtual memory included in this&lt;BR /&gt;figure?&lt;BR /&gt;&lt;BR /&gt;When I add up the last column of 'ipcs -mob' I get 887941788 (846M). Where does&lt;BR /&gt;that fit in the picture?&lt;BR /&gt;&lt;BR /&gt;I have 1Gb RAM installed, I don't recognise that anywhere in the output below&lt;BR /&gt;(just making sure I understand what I see).&lt;BR /&gt;&lt;BR /&gt;Or am I making a thinking error somewhere?&lt;BR /&gt;&lt;BR /&gt;---------------&lt;BR /&gt;# vmstat&lt;BR /&gt;         procs           memory                   page                          &lt;BR /&gt;    faults       cpu&lt;BR /&gt;    r     b     w      avm    free   re   at    pi   po    fr   de    sr     in &lt;BR /&gt;    sy    cs  us sy id&lt;BR /&gt;    0     0     0    23593    1229    2    0     1    0     0    0     5    501 &lt;BR /&gt;   403    77   1  0 99&lt;BR /&gt;&lt;BR /&gt;---------------   &lt;BR /&gt;# top&lt;BR /&gt;Memory: 62080K (11708K) real, 211796K (55696K) virtual, 4892K free  Page# 1/11&lt;BR /&gt;&lt;BR /&gt;---------------&lt;BR /&gt;# ipcs -mob&lt;BR /&gt;IPC status from /dev/kmem as of Fri Sep  1 15:51:22 2000&lt;BR /&gt;T      ID     KEY        MODE        OWNER     GROUP NATTCH  SEGSZ&lt;BR /&gt;Shared Memory:&lt;BR /&gt;m       0 0x411c0232 --rw-rw-rw-      root      root      0    348&lt;BR /&gt;m       1 0x4e0c0002 --rw-rw-rw-      root      root      1  31040&lt;BR /&gt;m       2 0x41200c15 --rw-rw-rw-      root      root      1   8192&lt;BR /&gt;m  104451 0xc468aa0c --rw-r-----    oracle       dba     33 713961472&lt;BR /&gt;m    6148 0xfc9e5780 --rw-r-----    oracle       dba     10 173940736&lt;BR /&gt;&lt;BR /&gt;---------------&lt;BR /&gt;# swapinfo -t&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     1048576  785912  262664   75%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;reserve       -  262664 -262664&lt;BR /&gt;memory   748668  300276  448392   40%&lt;BR /&gt;total   1797244 1348852  448392   75%       -       0    -&lt;BR /&gt;&lt;BR /&gt;---------------&lt;BR /&gt;# echo "bufpages/D" |adb /stand/vmunix /dev/mem&lt;BR /&gt;Error from elf64_getehdr(application core file)&lt;BR /&gt;Not an Elf file: No Elf header&lt;BR /&gt;bufpages:&lt;BR /&gt;bufpages:       13106&lt;BR /&gt;&lt;BR /&gt;---------------</description>
      <pubDate>Fri, 01 Sep 2000 14:43:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/howmuch-free-memory/m-p/2441793#M7754</guid>
      <dc:creator>Geetam</dc:creator>
      <dc:date>2000-09-01T14:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: howmuch free memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/howmuch-free-memory/m-p/2441794#M7755</link>
      <description>&lt;BR /&gt;Well, your right, you dont have much free memory at all. From your ipcs -sa command you can see how much shared memory is allocated for the existing Oracle Db already, over 700MB. And your swap is reaching 100% as you only have 1 Gb of RAM and Swap, but you can allow the use of more virtual memory (over the 1Gb physical RAM) if you increase your swapsize to say 2xphysical RAM. &lt;BR /&gt;&lt;BR /&gt;So, if you want to add another Oracle DB the same size as the current one you will need another 700 MB of physical RAM and around another 2 Gb of swapspace. Then your server should perform fine without swapping.&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Sep 2000 15:02:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/howmuch-free-memory/m-p/2441794#M7755</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2000-09-01T15:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: howmuch free memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/howmuch-free-memory/m-p/2441795#M7756</link>
      <description>Don't really see your concern. It has been suggested already that you add more swap.  If you think you have a choice of how the HP-UX Memory Management System will deal with the memory regeons of your processes, this would be a wrong assumption. As mentioned before, HP-UX is a virtual operating system. It will do its best bring things into and out of real memory from VM.  You have no control over this.  The only way to hold things down in real memory is to use the plock() system call. Otherwise, a lot of page-ins will have to occur to bring in the memory regeons of a process only when they are needed.&lt;BR /&gt;&lt;BR /&gt;It is very important to understand that this is very dirrent from page-out activities.  Page-outs are your first indication of memory pressure.&lt;BR /&gt;&lt;BR /&gt;The physical memory can be evaluated by looking at the RES values of your processes using top.&lt;BR /&gt;&lt;BR /&gt;Tony</description>
      <pubDate>Fri, 01 Sep 2000 15:16:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/howmuch-free-memory/m-p/2441795#M7756</guid>
      <dc:creator>Anthony deRito</dc:creator>
      <dc:date>2000-09-01T15:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: howmuch free memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/howmuch-free-memory/m-p/2441796#M7757</link>
      <description>Recent versions of Oracle have an initialisation parameter 'lock_sga' which when set to true cause the SGA to be locked in memory.&lt;BR /&gt;&lt;BR /&gt;This requires the MLOCK privilege for the dba group (see man 1m setprivgrp)</description>
      <pubDate>Fri, 01 Sep 2000 15:22:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/howmuch-free-memory/m-p/2441796#M7757</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2000-09-01T15:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: howmuch free memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/howmuch-free-memory/m-p/2441797#M7758</link>
      <description>Thanks John for that info! I am going to inform our DBA of this as well.  I was wondering how Oracle processes were able to have such a large resident set size as compared to other processes. &lt;BR /&gt;&lt;BR /&gt;Tony</description>
      <pubDate>Fri, 01 Sep 2000 15:27:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/howmuch-free-memory/m-p/2441797#M7758</guid>
      <dc:creator>Anthony deRito</dc:creator>
      <dc:date>2000-09-01T15:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: howmuch free memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/howmuch-free-memory/m-p/2441798#M7759</link>
      <description>Dear friends&lt;BR /&gt;&lt;BR /&gt;Thank you for your contributions.&lt;BR /&gt;&lt;BR /&gt;Can you please help me understand how you come to your conclusions. You understand these things, I want to learn to understand them. Quick answers are handy (and very much appreciated in emergencies), but they do not seem to convince me until I understand it myself.&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Sep 2000 09:42:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/howmuch-free-memory/m-p/2441798#M7759</guid>
      <dc:creator>Geetam</dc:creator>
      <dc:date>2000-09-04T09:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: howmuch free memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/howmuch-free-memory/m-p/2441799#M7760</link>
      <description>Stefan&lt;BR /&gt;&lt;BR /&gt;I understand that 'ipcs' shows us that I have two instances of oracle, one using 700Mb, the other 170Mb.&lt;BR /&gt;&lt;BR /&gt;Where do you see that swap is reaching 100%?&lt;BR /&gt;&lt;BR /&gt;Why would I need to add swap if I add more physical RAM? (I trying to make sure I am not going to use swap space)</description>
      <pubDate>Mon, 04 Sep 2000 09:45:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/howmuch-free-memory/m-p/2441799#M7760</guid>
      <dc:creator>Geetam</dc:creator>
      <dc:date>2000-09-04T09:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: howmuch free memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/howmuch-free-memory/m-p/2441800#M7761</link>
      <description>Your posted 'swapinfo -t' indicated that total swap usage was 75%:-&lt;BR /&gt;&lt;BR /&gt;Your current swap space is made up of:-&lt;BR /&gt;&lt;BR /&gt;device swap (/dev/vg00/lvol2) 1Gb&lt;BR /&gt;memory (75% of memory) .75Gb&lt;BR /&gt;&lt;BR /&gt;Total 1.75Gb of which about 1.3Gb was either used or reserved.&lt;BR /&gt;&lt;BR /&gt;You don't need to add more swap space just because you add RAM. In fact you would need less becacause as you've got 'swapmem_on' set, adding more RAM will increase the available 'memory' swap space by approx 75% of that added. So adding another 1Gb for instance would increase your 'memory' swap space from around 750Mb to 1500Mb.&lt;BR /&gt;&lt;BR /&gt;You only need more swap space when you start to use the additional RAM for extra process data. For example, another Oracle SGA of 500Mb or increasing one of your existing SGA's would mean that the system would have to reserve (not necessarily use) that additional amount of swap space.&lt;BR /&gt;&lt;BR /&gt;Remember that it is only data segments (private and shared) that require swap space. Text (code) segments are paged in from the file from which the program was loaded.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;John</description>
      <pubDate>Mon, 04 Sep 2000 10:22:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/howmuch-free-memory/m-p/2441800#M7761</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2000-09-04T10:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: howmuch free memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/howmuch-free-memory/m-p/2441801#M7762</link>
      <description>&lt;BR /&gt;I know this is all a bit confusing. Even I get confused about it sometimes!&lt;BR /&gt;&lt;BR /&gt;Anyway, HP recommed you have enough swapspace for double your RAM, minimum should be 1x RAM. The reason why ? HP-UX needs to reserve swapspace for any programs loaded into memory (not actually use the swapspace, just reserve it in case it is needed later if you run out of RAM). So, do you want it to reserve this swapspace on disk or in memory ?? much better to use the diskspace available as we need our precious RAM for other things - not reserving for future use for swapping - if swapping ever happens (you would hope not for performance reasons).&lt;BR /&gt;&lt;BR /&gt;The reserve column from swapinfo shows you how much RAM is used by running processes that would need swapspace (paging space) if memory got really tight, in your case its 262MB worth.&lt;BR /&gt;&lt;BR /&gt;The memory line of swapinfo indicates you have psuedo-swap enabled, and it shows current usage at 40%, or 300MB. This is not swapped out processes/memory. The only time memory will be used for paging space is if the device swap is fullup - in your case its 75% full, so memory is not yet being used for paging (and you wouldnt want it to - only in an emergency - as it will hit system performance hard gobbling up more of our precious RAM for paging space when we could be using disk instead!)&lt;BR /&gt;So, what on earth is this 40%, 300MB figure showing ? Its showing processes locked into memory - the main culprit it buffercache, your buffercache is set to 13106 pages, or 52 Megabytes (x4k), the rest by other daemons, probably database ones, which are locked into memory to maintain good performance of the database!&lt;BR /&gt;&lt;BR /&gt;Anway, you have 1 GB of device swap, 1GB of Ram, pseudo-swap on (which at max is 75% of RAM) which gives you a total of 1.75Gb of available virtual memory. Try to use more than this and processes will fail to start.&lt;BR /&gt;&lt;BR /&gt;In your case, of your 1 GB of RAM, the databases are using 770MB, the OS and other 'locked in memory' processes are using 300MB, other processes running which arent locked and can be paged out is 262MB worth, which gives a combined total of around 1.3GB of memory needed, and as it is you are using 785Mb of device swap already meaning you are actually trying using around 1.785MB of RAM, (I know we have a difference of around 400Mb here but its difficult to count precisely using the data so far available - but were close!)  which is right on the limit without more device swap setup. This is shown by your free memory, only a few MB. The performance on your server now must be pretty poor ?&lt;BR /&gt;&lt;BR /&gt;If you want to add another oracle instance of say 500MB then I would suggest for maximum performance you add another 1.5GB of RAM and another 2GB of device swap. Then you will see swapinfo -mt results where the %USED column for device swap stays at zero which means you have plenty of RAM free and nothing has been paged out = best performance.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Sep 2000 11:15:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/howmuch-free-memory/m-p/2441801#M7762</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2000-09-04T11:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: howmuch free memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/howmuch-free-memory/m-p/2441802#M7763</link>
      <description>Thanks, John for explaining the output of swapinfo. I think I understand swapping/paging better now.&lt;BR /&gt;&lt;BR /&gt;Stefan, my understanding is that speudo swap is never actually used (that would be the snake trying to eat its own tail). And, no, this system has good performance (and I want to keep it that way, or else...). It may have reserved lots of swap, and even paged some pages to disk (is that "paging in"?), but there is not other demand on memory, so these pages are still accessed from physical memory (it is not "paging out"?).&lt;BR /&gt;&lt;BR /&gt;Can we go back to the original question: how much physical memory do I have free?&lt;BR /&gt;&lt;BR /&gt;Can I do it this way?&lt;BR /&gt;Add up SEGSZ from ipcs -mob (847MB), then add 52MB for buffers used. Total 898MB used. Should I add memory used by kernel, etc? Anything else? Or can I assume that I have 1GB - 898MB = approx 100MB free? (if I want to live dangerously)&lt;BR /&gt;&lt;BR /&gt;That is nothing like what the memory line in 'top' was telling me, but I think I may be on the right track here. What do you think?&lt;BR /&gt;&lt;BR /&gt;Please explain your answers, so I can learn from this discussion. Thanks.</description>
      <pubDate>Tue, 05 Sep 2000 11:09:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/howmuch-free-memory/m-p/2441802#M7763</guid>
      <dc:creator>Geetam</dc:creator>
      <dc:date>2000-09-05T11:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: howmuch free memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/howmuch-free-memory/m-p/2441803#M7764</link>
      <description>Geetham, you wrote:&lt;BR /&gt;&lt;BR /&gt;"my understanding is that speudo swap is never actually used pseudo-swap is used as a last resort."&lt;BR /&gt;&lt;BR /&gt;If virtual memory is used up, as would be seen by high (100%) values in the "PCT USED" column of swapinfo -tma, the memory management subsystem will use this portion of system memory. If you have sufficient amount of swap, there is no need to use pseudo-swap. Chances are, it will never be used.&lt;BR /&gt;&lt;BR /&gt;"It may have reserved lots of swap, and even paged some pages to disk(is that "paging in"?),"&lt;BR /&gt;&lt;BR /&gt;The memory management subsystem reserves the swap from the total available pool for all processes created.  This memory is on disk. It is to be used by the virtual memory subsystem to dynamically page-out the total process. Chances are, it will not need to but it "reserves" the right to.  As I mentioned before, pageing-out indicates memory pressure, paging-in is completely normal.  &lt;BR /&gt;&lt;BR /&gt;"Can we go back to the original question: how much physical memory do I have free? "&lt;BR /&gt;&lt;BR /&gt;The available memory will change often  because the memory mamangement subsystem is contantly trying to maintain a large free list. You need to look at the entire pool of memory... including the virtual memory and that is why there has been so much discussion on swap. &lt;BR /&gt;&lt;BR /&gt;Tony&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Sep 2000 12:35:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/howmuch-free-memory/m-p/2441803#M7764</guid>
      <dc:creator>Anthony deRito</dc:creator>
      <dc:date>2000-09-05T12:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: howmuch free memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/howmuch-free-memory/m-p/2441804#M7765</link>
      <description>The first comment above should have read:&lt;BR /&gt;&lt;BR /&gt;"my understanding is that speudo swap is never actually used"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pseudo-swap is used as a last resort. If virtual memory is used up, as would be seen by high (100%) values in the "PCT USED" column of swapinfo -tma, the memory management subsystem will use this portion of system memory. If you have sufficient amount of swap, there is no need to use pseudo-swap. Chances are, it will never be used. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Sep 2000 12:42:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/howmuch-free-memory/m-p/2441804#M7765</guid>
      <dc:creator>Anthony deRito</dc:creator>
      <dc:date>2000-09-05T12:42:07Z</dc:date>
    </item>
  </channel>
</rss>

