<?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: hp-ux swap utilization so high &amp;gt;90% in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-swap-utilization-so-high-gt-90/m-p/4468410#M360841</link>
    <description>Presumably because the current running workload doesn't need more than it reserved.&lt;BR /&gt;&lt;BR /&gt;Virtual address space isn't a system parameter -- it is a measure of the virtual size of all the user processes across the entire system.&lt;BR /&gt;&lt;BR /&gt;For a very simple example, let's say we have 3 processes running in total.&lt;BR /&gt;&lt;BR /&gt;Process A uses: 5 Mb for Text, 15 Mb for Data, 2 Mb for Stack, 30 Mb for Shared data (which is shared with B, but not with C). All counts are Virtual, not physical (i.e. they represent the total size from malloc()/shmget()/mmap() [or just the system setting things up like Stack]).&lt;BR /&gt;&lt;BR /&gt;Process B uses: 3 Mb for Text, 25 Mb for Data, 1 Mb for Stack, 30 Mb for shared with A, 10 Mb for shared with C.&lt;BR /&gt;&lt;BR /&gt;Process C uses: 10 Mb for Text, 200 Mb for Data, 2 Mb for Stack, 10 Mb for shared (with B).&lt;BR /&gt;&lt;BR /&gt;The total virtual address space in use is the virtual size of A (52Mb) plus B (69Mb) plus C (222Mb) minus the duplicates from cross-process sharing (the 30 Mb we counted in B that was counted in A, the 10 Mb we counted in C that was in B -- so 40Mb) or 303Mb. &lt;BR /&gt;&lt;BR /&gt;Swap is required to back all virtual objects which are not backed by other means (which almost always just means "not backed by a File"). So in the above example [assuming the Shared objects are anonymous memory and not shared file mmap for simplicity], we can remove the Text objects from the total.&lt;BR /&gt;&lt;BR /&gt;So our expectation is that the virtual space for each process which needs to be backed by swap is:&lt;BR /&gt;&lt;BR /&gt;A: 15 (Data) + 2 (Stack) + 30 (Shared)&lt;BR /&gt;B: 25 (Data) + 1 (Stack) + 30 + 10 (Shared)&lt;BR /&gt;C: 200 (Data) + 2 (Stack) + 10 (Shared)&lt;BR /&gt;&lt;BR /&gt;Again removing duplicates -- we see that the expected total swap consumption of the system would be:&lt;BR /&gt;&lt;BR /&gt;15 (Data A) + 25 (Data B) + 200 (Data C) + 2 (Stack A) + 1 (Stack B) + 2 (Stack C) + 30 (Shared A/B) + 10 (Shared B/C) = 285Mb.&lt;BR /&gt;&lt;BR /&gt;This is the virtual address space consumption of the System. (Well, there's some interaction with the kernel allocations -- but I'm trying to keep this simple for explanatory purposes...)&lt;BR /&gt;&lt;BR /&gt;The total virtual address space available (for non-file backed objects) is the Total AVAIL on the swap line.&lt;BR /&gt;&lt;BR /&gt;Whether that is Reserved or Used depends on if _physical_ memory got low enough such that the system had to page out memory. [Your output showing multiple Gb USED suggests there was memory pressure on this box in the past at least.] There isn't more Reserved here because no process needs more. If one of these three processes requests more virtual address space (through malloc or other such methods), the corresponding swap reservation request is made at that time, increasing the amount reserved.&lt;BR /&gt;&lt;BR /&gt;By the way, while it hasn't been updated in some time (the tunable statements are very stale for one thing) -- you may find reading the Memory Management white paper illuminating for the basic concepts of HP-UX virtual memory management:&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/1218/mem_mgt.html" target="_blank"&gt;http://docs.hp.com/en/1218/mem_mgt.html&lt;/A&gt;</description>
    <pubDate>Fri, 31 Jul 2009 10:32:40 GMT</pubDate>
    <dc:creator>Don Morris_1</dc:creator>
    <dc:date>2009-07-31T10:32:40Z</dc:date>
    <item>
      <title>hp-ux swap utilization so high &gt;90%</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-swap-utilization-so-high-gt-90/m-p/4468401#M360832</link>
      <description>hi guys&lt;BR /&gt;&lt;BR /&gt;i have a question regarding swap.&lt;BR /&gt;i have read some infomation from book or ITRC...but, i still confuse should i increase swap.&lt;BR /&gt;==================&lt;BR /&gt;# swapinfo -atm&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       20480       0   20480    0%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;dev       10240       0   10240    0%       0       -    1  /dev/vg00/lvol9&lt;BR /&gt;reserve       -   30720  -30720&lt;BR /&gt;memory    40925   35298    5627   86%&lt;BR /&gt;total     71645   66018    5627   92%       -       0    -&lt;BR /&gt;==========================&lt;BR /&gt;this server is a SAP system.&lt;BR /&gt;i use a tool named sappfpar which provided by sap. the result is "the worst case requirement need 37G". (current swap 30G)&lt;BR /&gt;from sap point of view,  i should increase swap to my system.&lt;BR /&gt;&lt;BR /&gt;but, from OS point of view, we can see there is no memory page out occuring.&lt;BR /&gt;&lt;BR /&gt;so, i'm confuse now. should i increase the swap and is it possible to identify the root cause why the swap utilization is so high?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Jul 2009 15:22:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-swap-utilization-so-high-gt-90/m-p/4468401#M360832</guid>
      <dc:creator>joseph123</dc:creator>
      <dc:date>2009-07-28T15:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: hp-ux swap utilization so high &gt;90%</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-swap-utilization-so-high-gt-90/m-p/4468402#M360833</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;When a process starts, it reserves swap. In case it needs to be swapped out.&lt;BR /&gt;&lt;BR /&gt;You are good so long as you are not paging.&lt;BR /&gt;&lt;BR /&gt;vmstat will tell you if you are paging.&lt;BR /&gt;&lt;BR /&gt;If you start paging, increasing swap will let you page and slow you down. If you start paging the solution is either to reduce memory demand or increase memory supply.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 28 Jul 2009 15:25:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-swap-utilization-so-high-gt-90/m-p/4468402#M360833</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-07-28T15:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: hp-ux swap utilization so high &gt;90%</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-swap-utilization-so-high-gt-90/m-p/4468403#M360834</link>
      <description>&amp;gt;&amp;gt;but, from OS point of view, we can see there is no memory page out occuring.&lt;BR /&gt;&lt;BR /&gt;Correct.  Your device swap usage percent is 0.  That is very good.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;should i increase the swap &lt;BR /&gt;&lt;BR /&gt;I don't see any reason to do this from the information provided.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;is it possible to identify the root cause why the swap utilization is so high&lt;BR /&gt;&lt;BR /&gt;There is no swap utilization at this point, other than for reservation purposes.  &lt;BR /&gt;</description>
      <pubDate>Tue, 28 Jul 2009 15:28:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-swap-utilization-so-high-gt-90/m-p/4468403#M360834</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2009-07-28T15:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: hp-ux swap utilization so high &gt;90%</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-swap-utilization-so-high-gt-90/m-p/4468404#M360835</link>
      <description>Shalom,&lt;BR /&gt;so ~ as long as swap usage percent is 0, even thought swap utilization become 100% , then the system is fine ?&lt;BR /&gt;&lt;BR /&gt;but, why our swaw usage is 0, it never used ? and what does reserve mean?&lt;BR /&gt;&lt;BR /&gt;i saw the total used is reserve used + memory used = 30720 + 35298 = 66018</description>
      <pubDate>Tue, 28 Jul 2009 16:04:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-swap-utilization-so-high-gt-90/m-p/4468404#M360835</guid>
      <dc:creator>joseph123</dc:creator>
      <dc:date>2009-07-28T16:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: hp-ux swap utilization so high &gt;90%</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-swap-utilization-so-high-gt-90/m-p/4468405#M360836</link>
      <description>A system going to 100% swap used+reserved means that new virtual memory allocations will be denied. In practice, that will mean you'll start getting ENOMEM from calls like malloc(), fork(), etc. I wouldn't encourage you to be in that state for very long or to explore it. (Not being in that state is the reason for tunables like maxdsiz/maxssiz in the first place).&lt;BR /&gt;&lt;BR /&gt;Reserved means just that -- these are swap resources which have been claimed for _possible future use_ by a client. HP-UX (like other Enterprise OS's) requires that a virtual memory object upon creation or grow be given the corresponding swap resources so that if memory pressure does occur -- everything can find a place on the swap areas. So... while you don't know exactly what disk block or FS entry your process has, you know it is guaranteed X amount of swap. Correspondingly, when no more swap is available for reservations -- no new virtual address space can be consumed, and that's why the system must start to fail these requests.&lt;BR /&gt;&lt;BR /&gt;There's a little more detail in `man 1M swapinfo`, but that's the basics.&lt;BR /&gt;&lt;BR /&gt;Memory swap is an accounting trick that allows the system to include part of physical memory in the swap reservation totals. The idea is that if pressure occurs, some things will be pushed out to disk/FS swap -- but when those are full, the algorithm can "swap" the page to itself... therefore some part of RAM counts in the reservation since that amount will have a place to go (where it already is). It isn't all of RAM because you want to leave the virtual memory subsystem some space to move things around to relieve the pressure.&lt;BR /&gt;&lt;BR /&gt;So getting back to the real question -- you can create around 5Gb of additional virtual objects (new processes, malloc within processes, etc.) If that's enough -- don't change anything. If you're running below your expected maximum workload, however -- and if the SAP tool is working off of the maximum workload expectation, it is telling you to add more swap so it will be there to create the additional processes or virtual memory objects you'll need in the future. I don't know SAP internals so I can't tell you if it is right.</description>
      <pubDate>Tue, 28 Jul 2009 16:19:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-swap-utilization-so-high-gt-90/m-p/4468405#M360836</guid>
      <dc:creator>Don Morris_1</dc:creator>
      <dc:date>2009-07-28T16:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: hp-ux swap utilization so high &gt;90%</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-swap-utilization-so-high-gt-90/m-p/4468406#M360837</link>
      <description>this is my current status&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       20480       5   20475    0%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;dev       10240       5   10235    0%       0       -    1  /dev/vg00/lvol9&lt;BR /&gt;reserve       -   30710  -30710&lt;BR /&gt;memory    40925   34562    6363   84%&lt;BR /&gt;total     71645   65282    6363   91%       -       0    -&lt;BR /&gt;&lt;BR /&gt;i found total used is 5+5+30710+34562 = 65282&lt;BR /&gt;if i used full swap will become&lt;BR /&gt;20480+ 10240+ 30710+ 34562 = 95992&lt;BR /&gt;&lt;BR /&gt;so ~ the total PCT USEd will become 95992/71645 = 1.3398....&lt;BR /&gt;exceed 100% , rite ? &lt;BR /&gt;&lt;BR /&gt;reserve is a system parameter ?&lt;BR /&gt;how can i setup it, can i reduce it ?</description>
      <pubDate>Thu, 30 Jul 2009 16:32:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-swap-utilization-so-high-gt-90/m-p/4468406#M360837</guid>
      <dc:creator>joseph123</dc:creator>
      <dc:date>2009-07-30T16:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: hp-ux swap utilization so high &gt;90%</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-swap-utilization-so-high-gt-90/m-p/4468407#M360838</link>
      <description>No, the reserve is the amount from the above dev/FS lines which is set aside in case of swap.&lt;BR /&gt;&lt;BR /&gt;When/if actual swap occurs, it would shift resources from the Reserved state (accounted for but not specific blocks, no data on dev/FS) to the Used state (accounted for, known specific locations with data on dev/FS).&lt;BR /&gt;&lt;BR /&gt;So a 100% consumption assuming only reservation would look like:&lt;BR /&gt;&lt;BR /&gt;5 + 5 + 30710 + 40925 = 71645&lt;BR /&gt;&lt;BR /&gt;Which, as you'll notice is only different in your memory line. (As 30710 shows you being the sum of 20480 + 10240 [total] minus 5 + 5 [used], you've reserved all of your device/FS swap space. Only memory swap is available at this point for new reservations).&lt;BR /&gt;&lt;BR /&gt;A 100% Used scenario would look like: 20480 + 10240 + 0 + 40925 = 71645. (All reserved swap becomes Used).&lt;BR /&gt;&lt;BR /&gt;As I hope is apparent from the above discussion -- reserve is not a parameter, it is a metric of the workload and represents the virtual address space backed by your device/FS which has not yet had to be swapped out. You can only reduce it by reducing the virtual address space footprint of your workload (run less processes, use fenceline tunables like maxdsiz, maxssiz, shmmax, shmmni, shmseg to enforce smaller virtual objects or fewer objects, etc. and perhaps through tuning in the application space [smaller data set, limiting parameters, whatnot]).</description>
      <pubDate>Thu, 30 Jul 2009 17:36:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-swap-utilization-so-high-gt-90/m-p/4468407#M360838</guid>
      <dc:creator>Don Morris_1</dc:creator>
      <dc:date>2009-07-30T17:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: hp-ux swap utilization so high &gt;90%</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-swap-utilization-so-high-gt-90/m-p/4468408#M360839</link>
      <description>&amp;gt;I found total used is 5+5+30710+34562 = 65282&lt;BR /&gt;&lt;BR /&gt;The total is given by the "total" line.  You don't have to compute it.  ;-)</description>
      <pubDate>Thu, 30 Jul 2009 18:04:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-swap-utilization-so-high-gt-90/m-p/4468408#M360839</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-07-30T18:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: hp-ux swap utilization so high &gt;90%</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-swap-utilization-so-high-gt-90/m-p/4468409#M360840</link>
      <description>hi guys &lt;BR /&gt;i'm understand the formula now.&lt;BR /&gt;&lt;BR /&gt;but, i still confuse&lt;BR /&gt;reserve is not a parameter, it is a metric of the workload and represents the virtual address space backed by your device/FS which has not yet had to be swapped out. &lt;BR /&gt;&lt;BR /&gt;in this case&lt;BR /&gt;====================&lt;BR /&gt;[root@PRDAP3]/usr/sap/PR1/SYS/profile # swapinfo -atm&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        4096    3931     165   96%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;dev       36000    7387   28613   21%       0       -    1  /dev/vg00/lvol9&lt;BR /&gt;reserve       -    3729   -3729&lt;BR /&gt;memory     8180    1662    6518   20%&lt;BR /&gt;total     48276   16709   31567   35%       -       0    -&lt;BR /&gt;====================&lt;BR /&gt;swap has 40G and used approx 11G &lt;BR /&gt;so ~it should reserve 29G&lt;BR /&gt;why in this case it juse reserve 3729M ??&lt;BR /&gt;&lt;BR /&gt;and...&lt;BR /&gt;with regards  virtual address space  &lt;BR /&gt;is it a system parameter ? can i setup it ?</description>
      <pubDate>Fri, 31 Jul 2009 09:52:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-swap-utilization-so-high-gt-90/m-p/4468409#M360840</guid>
      <dc:creator>joseph123</dc:creator>
      <dc:date>2009-07-31T09:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: hp-ux swap utilization so high &gt;90%</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-swap-utilization-so-high-gt-90/m-p/4468410#M360841</link>
      <description>Presumably because the current running workload doesn't need more than it reserved.&lt;BR /&gt;&lt;BR /&gt;Virtual address space isn't a system parameter -- it is a measure of the virtual size of all the user processes across the entire system.&lt;BR /&gt;&lt;BR /&gt;For a very simple example, let's say we have 3 processes running in total.&lt;BR /&gt;&lt;BR /&gt;Process A uses: 5 Mb for Text, 15 Mb for Data, 2 Mb for Stack, 30 Mb for Shared data (which is shared with B, but not with C). All counts are Virtual, not physical (i.e. they represent the total size from malloc()/shmget()/mmap() [or just the system setting things up like Stack]).&lt;BR /&gt;&lt;BR /&gt;Process B uses: 3 Mb for Text, 25 Mb for Data, 1 Mb for Stack, 30 Mb for shared with A, 10 Mb for shared with C.&lt;BR /&gt;&lt;BR /&gt;Process C uses: 10 Mb for Text, 200 Mb for Data, 2 Mb for Stack, 10 Mb for shared (with B).&lt;BR /&gt;&lt;BR /&gt;The total virtual address space in use is the virtual size of A (52Mb) plus B (69Mb) plus C (222Mb) minus the duplicates from cross-process sharing (the 30 Mb we counted in B that was counted in A, the 10 Mb we counted in C that was in B -- so 40Mb) or 303Mb. &lt;BR /&gt;&lt;BR /&gt;Swap is required to back all virtual objects which are not backed by other means (which almost always just means "not backed by a File"). So in the above example [assuming the Shared objects are anonymous memory and not shared file mmap for simplicity], we can remove the Text objects from the total.&lt;BR /&gt;&lt;BR /&gt;So our expectation is that the virtual space for each process which needs to be backed by swap is:&lt;BR /&gt;&lt;BR /&gt;A: 15 (Data) + 2 (Stack) + 30 (Shared)&lt;BR /&gt;B: 25 (Data) + 1 (Stack) + 30 + 10 (Shared)&lt;BR /&gt;C: 200 (Data) + 2 (Stack) + 10 (Shared)&lt;BR /&gt;&lt;BR /&gt;Again removing duplicates -- we see that the expected total swap consumption of the system would be:&lt;BR /&gt;&lt;BR /&gt;15 (Data A) + 25 (Data B) + 200 (Data C) + 2 (Stack A) + 1 (Stack B) + 2 (Stack C) + 30 (Shared A/B) + 10 (Shared B/C) = 285Mb.&lt;BR /&gt;&lt;BR /&gt;This is the virtual address space consumption of the System. (Well, there's some interaction with the kernel allocations -- but I'm trying to keep this simple for explanatory purposes...)&lt;BR /&gt;&lt;BR /&gt;The total virtual address space available (for non-file backed objects) is the Total AVAIL on the swap line.&lt;BR /&gt;&lt;BR /&gt;Whether that is Reserved or Used depends on if _physical_ memory got low enough such that the system had to page out memory. [Your output showing multiple Gb USED suggests there was memory pressure on this box in the past at least.] There isn't more Reserved here because no process needs more. If one of these three processes requests more virtual address space (through malloc or other such methods), the corresponding swap reservation request is made at that time, increasing the amount reserved.&lt;BR /&gt;&lt;BR /&gt;By the way, while it hasn't been updated in some time (the tunable statements are very stale for one thing) -- you may find reading the Memory Management white paper illuminating for the basic concepts of HP-UX virtual memory management:&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/1218/mem_mgt.html" target="_blank"&gt;http://docs.hp.com/en/1218/mem_mgt.html&lt;/A&gt;</description>
      <pubDate>Fri, 31 Jul 2009 10:32:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-swap-utilization-so-high-gt-90/m-p/4468410#M360841</guid>
      <dc:creator>Don Morris_1</dc:creator>
      <dc:date>2009-07-31T10:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: hp-ux swap utilization so high &gt;90%</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-swap-utilization-so-high-gt-90/m-p/4468411#M360842</link>
      <description>Hi Joseph,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;swap has 40G and used approx 11G &lt;BR /&gt;so ~it should reserve 29G&lt;BR /&gt;why in this case it juse reserve 3729M ??&lt;BR /&gt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;Don explanation is well enough to understand how swap system works. &lt;BR /&gt;&lt;BR /&gt;In simple terms, whenever a process starts some amount of swap space will be reserved. Note that only "reserved" not "used". And the "some amount" represents the amount of swap space needed to move the process to swap area in case the physical memory is full. So when the reservation reaches to the maximum available swap then you will not be able to new process. In this situation only you have to increase the swap.&lt;BR /&gt;&lt;BR /&gt;If "USED" column on dev/fs is more, it indicates there is a physical memory pressure so system started using swap area for swap in/out activity. In that case you have to go far increasing physical memory.&lt;BR /&gt;&lt;BR /&gt;You can read this also to understand the swap memory usage.. &lt;BR /&gt;&lt;A href="http://docs.google.com/View?docid=dc7s6mzr_56cgsg9g" target="_blank"&gt;http://docs.google.com/View?docid=dc7s6mzr_56cgsg9g&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 31 Jul 2009 11:03:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-swap-utilization-so-high-gt-90/m-p/4468411#M360842</guid>
      <dc:creator>Ganesan R</dc:creator>
      <dc:date>2009-07-31T11:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: hp-ux swap utilization so high &gt;90%</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-swap-utilization-so-high-gt-90/m-p/4468412#M360843</link>
      <description>hi guys&lt;BR /&gt;&lt;BR /&gt;[root@SAPDBCI]/ # swapinfo -atm&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       20480     230   20250    1%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;dev       10240     230   10010    2%       0       -    1  /dev/vg00/lvol9&lt;BR /&gt;reserve       -   30261  -30261&lt;BR /&gt;memory    40925   36278    4647   89%&lt;BR /&gt;total     71645   66999    4646   94%       -       0    -&lt;BR /&gt;=========================&lt;BR /&gt;this server is start to used swap&lt;BR /&gt;is it possible to find out why memory used (36278) is so high?&lt;BR /&gt;or identify which process used many memory ?</description>
      <pubDate>Sun, 09 Aug 2009 15:40:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-swap-utilization-so-high-gt-90/m-p/4468412#M360843</guid>
      <dc:creator>joseph123</dc:creator>
      <dc:date>2009-08-09T15:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: hp-ux swap utilization so high &gt;90%</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-swap-utilization-so-high-gt-90/m-p/4468413#M360844</link>
      <description>&amp;gt;this server is start to used swap&lt;BR /&gt;&lt;BR /&gt;Are you looking at the vmstat output for "po"?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;is it possible to find out why memory used (36278) is so high?  or identify which process used many memory?&lt;BR /&gt;&lt;BR /&gt;Because you are running too many processes that want to use lots of swap.  Or you have configured SAP to use too much.&lt;BR /&gt;&lt;BR /&gt;You can look at the memory used in the ps(1) output.  You can also look at "ipcs -ma" for shared memory segments.</description>
      <pubDate>Sun, 09 Aug 2009 19:25:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-swap-utilization-so-high-gt-90/m-p/4468413#M360844</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-08-09T19:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: hp-ux swap utilization so high &gt;90%</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-swap-utilization-so-high-gt-90/m-p/4468414#M360845</link>
      <description>hi guys&lt;BR /&gt;&lt;BR /&gt;i met a problem&lt;BR /&gt;from database listener.log&lt;BR /&gt;i did not find any other alert from other log.&lt;BR /&gt;&lt;BR /&gt;11-SEP-2009 04:14:51 * (CONNECT_DATA=(SID=PR1)(GLOBAL_NAME=PR1.WORLD)(CID=(PROGRAM=C:\usr\sap\PR1\D05\exe\disp+work.EXE)(HOST=PRDAP5&lt;BR /&gt;)(USER=pr1adm))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.158.4.16)(PORT=2302)) * establish * PR1 * 12500&lt;BR /&gt;TNS-12500: TNS:listener failed to start a dedicated server process&lt;BR /&gt; TNS-12540: TNS:internal limit restriction exceeded&lt;BR /&gt;  TNS-12560: TNS:protocol adapter error&lt;BR /&gt;   TNS-00510: Internal limit restriction exceeded&lt;BR /&gt;    HPUX Error: 12: Not enough space&lt;BR /&gt;&lt;BR /&gt;==============================&lt;BR /&gt;seems like i should modify two thing&lt;BR /&gt;1. Modify kernel parameter&lt;BR /&gt;2. add swap&lt;BR /&gt;&lt;BR /&gt;with regards 1, i have checked shmmax, this paremeter has been set to the size of the RAM which is 42 GB.&lt;BR /&gt;and maxdsiz*, the kernel parameter has been set as per SAP recommendation.&lt;BR /&gt;so, i don't think i sould modify any kernel parameter.&lt;BR /&gt;&lt;BR /&gt;so, i read some data from &lt;A href="http://docs.google.com/View?docid=dc7s6mzr_56cgsg9g" target="_blank"&gt;http://docs.google.com/View?docid=dc7s6mzr_56cgsg9g&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;i suspect i should add swap &lt;BR /&gt;&lt;BR /&gt;but, from our curreut status &lt;BR /&gt;&lt;BR /&gt;# vmstat&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;    5     7     0  12523101  633358  244   38     2    0     0    0     2  11322  67967  6615  21 17 62&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# swapinfo -atm&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       20480     862   19618    4%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;dev       10240     861    9379    8%       0       -    1  /dev/vg00/lvol9&lt;BR /&gt;reserve       -   28996  -28996&lt;BR /&gt;memory    40925   36228    4697   89%&lt;BR /&gt;total     71645   66947    4698   93%       -       0    -&lt;BR /&gt;&lt;BR /&gt;we can see swap just reserve not used, why does our swap not enough?&lt;BR /&gt;please give me some advise, thanks</description>
      <pubDate>Tue, 22 Sep 2009 09:20:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-swap-utilization-so-high-gt-90/m-p/4468414#M360845</guid>
      <dc:creator>joseph123</dc:creator>
      <dc:date>2009-09-22T09:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: hp-ux swap utilization so high &gt;90%</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-swap-utilization-so-high-gt-90/m-p/4468415#M360846</link>
      <description>&amp;gt;maxdsiz*, the kernel parameter has been set as per SAP recommendation.&lt;BR /&gt;&lt;BR /&gt;What are the values?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;total 71645 66947 4698 93%&lt;BR /&gt;&lt;BR /&gt;You only have 4.6 Gb free to allocate.  Did you do swapinfo at the time of failure?&lt;BR /&gt;How much swap that new process going to use?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;we can see swap just reserve not used ...&lt;BR /&gt;&lt;BR /&gt;That's what reserved mean, it can't be used for anything else.</description>
      <pubDate>Tue, 22 Sep 2009 09:44:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-swap-utilization-so-high-gt-90/m-p/4468415#M360846</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-09-22T09:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: hp-ux swap utilization so high &gt;90%</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-swap-utilization-so-high-gt-90/m-p/4468416#M360847</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;kernel parameter Current value&lt;BR /&gt;maxdsiz                     1073741824  1073741824  yes&lt;BR /&gt;maxdsiz_64bit               17179869184 17179869184 yes      &lt;BR /&gt;shmmax                      42949672960 42949672960 yes      &lt;BR /&gt;&lt;BR /&gt;i did not do swapinfo at that monment, i'm not sure how much swap that the new process will going used.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Sep 2009 16:12:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-swap-utilization-so-high-gt-90/m-p/4468416#M360847</guid>
      <dc:creator>joseph123</dc:creator>
      <dc:date>2009-09-22T16:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: hp-ux swap utilization so high &gt;90%</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-swap-utilization-so-high-gt-90/m-p/4468417#M360848</link>
      <description>&amp;gt;I did not do swapinfo at that moment, I'm not sure how much swap that the new process will going used.&lt;BR /&gt;&lt;BR /&gt;(Did you ever mention which OS version?)&lt;BR /&gt;&lt;BR /&gt;Then you could be out of swap.  You could use size(1) on the executable and all shlibs to see how much you need at the start.&lt;BR /&gt;Of course it could die latter on a big malloc/mmap.</description>
      <pubDate>Wed, 23 Sep 2009 05:21:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-swap-utilization-so-high-gt-90/m-p/4468417#M360848</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-09-23T05:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: hp-ux swap utilization so high &gt;90%</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-swap-utilization-so-high-gt-90/m-p/4468418#M360849</link>
      <description>the os version is 11iv3 B.11.23</description>
      <pubDate>Wed, 23 Sep 2009 06:44:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-swap-utilization-so-high-gt-90/m-p/4468418#M360849</guid>
      <dc:creator>joseph123</dc:creator>
      <dc:date>2009-09-23T06:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: hp-ux swap utilization so high &gt;90%</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-swap-utilization-so-high-gt-90/m-p/4468419#M360850</link>
      <description># swapinfo -atm&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       20480     830   19650    4%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;dev       10240     828    9412    8%       0       -    1  /dev/vg00/lvol9&lt;BR /&gt;reserve       -   29062  -29062&lt;BR /&gt;memory    40925   35720    5205   87%&lt;BR /&gt;total     71645   66440    5205   93%       -       0    -&lt;BR /&gt;&lt;BR /&gt;if i want to create a new swap about 10G&lt;BR /&gt;our pe size is 16M&lt;BR /&gt;i should type&lt;BR /&gt;# lvcreate -l 640 /dev/vg00&lt;BR /&gt;if new lv named lvol10&lt;BR /&gt;i want enable swap via /etc/fstab&lt;BR /&gt;&lt;BR /&gt;# more /etc/fstab&lt;BR /&gt;/dev/vg00/lvol3 / vxfs delaylog 0 1&lt;BR /&gt;/dev/vg00/lvol1 /stand hfs defaults 0 1&lt;BR /&gt;/dev/vg00/lvol4 /opt vxfs delaylog 0 2&lt;BR /&gt;/dev/vg00/lvol5 /tmp vxfs delaylog 0 2&lt;BR /&gt;/dev/vg00/lvol6 /usr vxfs delaylog 0 2&lt;BR /&gt;/dev/vg00/lvol7 /var vxfs delaylog 0 2&lt;BR /&gt;/dev/vg00/lvol8 /home vxfs delaylog 0 2&lt;BR /&gt;/dev/vg00/lvol9 ... swap pri=1 0 0&lt;BR /&gt;devap1:/export/archive/ERP /usr/sap/archive/ERP nfs rw,suid 0 0 &lt;BR /&gt;&lt;BR /&gt;i should edit /etc/fstab&lt;BR /&gt;add a swap entry&lt;BR /&gt;/dev/vg00/lvol10 ... swap pri=1 0 0&lt;BR /&gt;&lt;BR /&gt;and &lt;BR /&gt;# swapon -a&lt;BR /&gt;&lt;BR /&gt;that's all, rite?&lt;BR /&gt;i don't need to stop application server which is on the server, rite?&lt;BR /&gt;i also don't need restart server, rite?&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Sep 2009 16:07:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-swap-utilization-so-high-gt-90/m-p/4468419#M360850</guid>
      <dc:creator>joseph123</dc:creator>
      <dc:date>2009-09-24T16:07:44Z</dc:date>
    </item>
  </channel>
</rss>

