<?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 / swap problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-swap-problem/m-p/4387571#M349728</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;1)Why eventhough there is a memory bottleneck, the swap space is not utilised?&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;How did you say memory bottleneck?. It is just 99% used not 100%. Still you have 1% memory. No swap activity will happen as long as the number of free pages remains larger than a predefined minimum limit known as "lotsfree".&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;2)When I run a tsm backup it fails as the system unable to allocate memory for tsm read. Why the swap case is not helping here?&lt;BR /&gt;&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;What is the error you are getting when you start tsm backup?</description>
    <pubDate>Wed, 25 Mar 2009 12:33:30 GMT</pubDate>
    <dc:creator>Ganesan R</dc:creator>
    <dc:date>2009-03-25T12:33:30Z</dc:date>
    <item>
      <title>memory / swap problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-swap-problem/m-p/4387567#M349724</link>
      <description>Hi Gurus,&lt;BR /&gt;&lt;BR /&gt;I have rp7420 server running HPUX B 11:11.&lt;BR /&gt;The memory in this server is utilised 99% almost all the time.&lt;BR /&gt;But I can not see swap is utilised for this server.No page in page out found.&lt;BR /&gt;&lt;BR /&gt;My queries are below.&lt;BR /&gt;1)Why eventhough there is a memory bottleneck, the swap space is not utilised?&lt;BR /&gt;2)When I run a tsm backup it fails as the system unable to allocate memory for tsm read. Why the swap case is not helping here?&lt;BR /&gt;3)How can I fix this?&lt;BR /&gt;&lt;BR /&gt;Note : There are no performance issue with the server.&lt;BR /&gt;&lt;BR /&gt;Please find the attachment for more details&lt;BR /&gt;&lt;BR /&gt;Thanks &lt;BR /&gt;SO&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Mar 2009 11:04:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-swap-problem/m-p/4387567#M349724</guid>
      <dc:creator>so_2</dc:creator>
      <dc:date>2009-03-25T11:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: memory / swap problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-swap-problem/m-p/4387568#M349725</link>
      <description>hi&lt;BR /&gt;&lt;BR /&gt;this is ok, the memory is used by caches and buffers.&lt;BR /&gt;&lt;BR /&gt;if a process needs memory, this portions of memory will be freed automatically for the process needing it.&lt;BR /&gt;&lt;BR /&gt;in linux you have following command:&lt;BR /&gt;&lt;BR /&gt;$ free&lt;BR /&gt;             total       used       free     shared    buffers     cached&lt;BR /&gt;Mem:       2074792     440016    1634776          0      49852     306576&lt;BR /&gt;-/+ buffers/cache:      83588    1991204&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;here you can see the "real" memory utilization.&lt;BR /&gt;&lt;BR /&gt;maybe there is such a command in hp-ux too.</description>
      <pubDate>Wed, 25 Mar 2009 11:55:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-swap-problem/m-p/4387568#M349725</guid>
      <dc:creator>Roman Schmidt</dc:creator>
      <dc:date>2009-03-25T11:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: memory / swap problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-swap-problem/m-p/4387569#M349726</link>
      <description>use&lt;BR /&gt;&lt;BR /&gt;# glance -m&lt;BR /&gt;&lt;BR /&gt;there you have for example following entries:&lt;BR /&gt;&lt;BR /&gt;Phys Mem:  12.0gb&lt;BR /&gt;Buf Cache:   7.2gb&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;you see that most of the space is used by buffers, this will be free if necessary, so you can count them as free as well.</description>
      <pubDate>Wed, 25 Mar 2009 12:04:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-swap-problem/m-p/4387569#M349726</guid>
      <dc:creator>Roman Schmidt</dc:creator>
      <dc:date>2009-03-25T12:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: memory / swap problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-swap-problem/m-p/4387570#M349727</link>
      <description>From your swapinfo, you could be running out of reserve swap, so new processes that whant to start on the server can't reserve enough memory in swap to start.&lt;BR /&gt;&lt;BR /&gt;If you are getting fork and out memory errors in syslog.log, then thats the case.&lt;BR /&gt;&lt;BR /&gt;You can add more swap, to get you going for the moment,but when vhand starts swaping out to disk, the performance is horrible, but that server needs more ram on the long run.&lt;BR /&gt;&lt;BR /&gt;# swapinfo -tam&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       0    4096    0%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;dev        4000     502    3498   13%       0       -    0  /dev/vg00/swap2&lt;BR /&gt;reserve       -    5980   -5980&lt;BR /&gt;total      8096    6482    1614   80%       -       0    -&lt;BR /&gt;#</description>
      <pubDate>Wed, 25 Mar 2009 12:17:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-swap-problem/m-p/4387570#M349727</guid>
      <dc:creator>likid0</dc:creator>
      <dc:date>2009-03-25T12:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: memory / swap problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-swap-problem/m-p/4387571#M349728</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;1)Why eventhough there is a memory bottleneck, the swap space is not utilised?&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;How did you say memory bottleneck?. It is just 99% used not 100%. Still you have 1% memory. No swap activity will happen as long as the number of free pages remains larger than a predefined minimum limit known as "lotsfree".&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;2)When I run a tsm backup it fails as the system unable to allocate memory for tsm read. Why the swap case is not helping here?&lt;BR /&gt;&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;What is the error you are getting when you start tsm backup?</description>
      <pubDate>Wed, 25 Mar 2009 12:33:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-swap-problem/m-p/4387571#M349728</guid>
      <dc:creator>Ganesan R</dc:creator>
      <dc:date>2009-03-25T12:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: memory / swap problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-swap-problem/m-p/4387572#M349729</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;From kmeminfo out put, toatl memory in your server is 8 GB, and 6.1Gb (76%) is being used by the users. So you&lt;BR /&gt;can check the running processes for high memory utilization. If possible plz post the output of "top'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thnx...Farhan</description>
      <pubDate>Wed, 25 Mar 2009 14:22:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-swap-problem/m-p/4387572#M349729</guid>
      <dc:creator>Md. Farhan A Azam</dc:creator>
      <dc:date>2009-03-25T14:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: memory / swap problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-swap-problem/m-p/4387573#M349730</link>
      <description>You should enable pseudoswap so it shows in swapinfo: swapmem_on&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Why even though there is a memory bottleneck, the swap space is not utilised?&lt;BR /&gt;&lt;BR /&gt;Why do you say bottleneck, since you say no performance issue?  You do have a limit.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;2) When I run a tsm backup it fails as the system unable to allocate memory for tsm read. &amp;gt;Why the swap case is not helping here?&lt;BR /&gt;&lt;BR /&gt;Because you need more than the 1.6 Gb you have free?</description>
      <pubDate>Wed, 25 Mar 2009 19:27:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-swap-problem/m-p/4387573#M349730</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-03-25T19:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: memory / swap problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-swap-problem/m-p/4387574#M349731</link>
      <description>What database are you using?    I think they can tweak that down max out at less.    We run Oracle and I had the same issue.  Even when no one was on the system it was at 100%.  Because of an Oracle paramater, the databse was told to put every thing in memory.  &lt;BR /&gt;   Off the top of my head, I forgot which Database paramater they tweaked out and lowered.   But when they did now it. memory is still always constant, but now it is at a constant 85%, not 98% like before.  When they lowered it the D.B. seems to run as well as before.</description>
      <pubDate>Wed, 25 Mar 2009 20:02:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-swap-problem/m-p/4387574#M349731</guid>
      <dc:creator>John Jimenez</dc:creator>
      <dc:date>2009-03-25T20:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: memory / swap problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-swap-problem/m-p/4387575#M349732</link>
      <description>Thanks a lot to all for their wonderful response. I have more queries and a effort has made to put more info to you&lt;BR /&gt;wherehever requeted. Apologies if I am wrong or infor is not adeqaute anywhere.&lt;BR /&gt;&lt;BR /&gt;          &lt;BR /&gt;The desfree ,memfree and minfree values are as below.&lt;BR /&gt;Theoriticaly the swap will not happen until entire memory is exhausted. Am i right?&lt;BR /&gt;What is the recommended value for these?&lt;BR /&gt;&lt;BR /&gt;# kmtune | grep -i free&lt;BR /&gt;desfree                     -  -  0&lt;BR /&gt;lotsfree                    -  -  0&lt;BR /&gt;minfree                     -  -  0&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The memory details are already provided with kmeminfo output.buffer cashe is 363 MB which seems normal.&lt;BR /&gt;There are only 8Gb memory and 8Gb swap. Adding more memory and enabling psuedo swap seems help bring the&lt;BR /&gt; % utilisation of memory down.But is there any other method for me to make the swaping happen and avaoid&lt;BR /&gt; me adding more memory?&lt;BR /&gt;&lt;BR /&gt;We are running sybase database in it. Sybase is consuming more memory.Had a check with the database team,&lt;BR /&gt;but  they says everything is normal at their end.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;  #UNIX95= ps -eo vsz,ruser,pid,args | sort -rn | more&lt;BR /&gt;  55360 sybase    3886 /opt/sybase/ASE-15_0/bin/dataserver -ONLINE:2,0,0xffffffffc7d02&lt;BR /&gt;  55360 sybase    3817 /opt/sybase/ASE-15_0/bin/dataserver -ONLINE:1,0,0xffffffffc7d02&lt;BR /&gt;  55360 sybase    2597 /opt/sybase/ASE-15_0/bin/dataserver -sATLASPRD -d/dev/prdavg02/&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The tsmerror.log extracts&lt;BR /&gt;=========================&lt;BR /&gt;&lt;BR /&gt;The backup happen for long time and finally fails with this error.Observed that /home/chklogs&lt;BR /&gt;has millions of files inside in diffrenet directories.Does that mean,tsm is trying to copy those&lt;BR /&gt;files in to memory but fails due to insufficinet memory?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;03/25/09   13:19:59 ANS1520E Failure writing to the Tivoli Storage Manager error log: errno = 13, No child pr&lt;BR /&gt;ocesses&lt;BR /&gt;03/26/09   00:19:23 PrivIncrFileSpace: Received rc=102 from fioGetDirEntries:  /home/chklogs  /workplace/logs&lt;BR /&gt;03/26/09   00:19:23 ANS1999E Incremental processing of '/home/chklogs' stopped.&lt;BR /&gt;&lt;BR /&gt;03/26/09   00:19:23 ANS1030E The operating system refused a TSM request for memory allocation.&lt;BR /&gt;03/26/09   00:19:23 ANS1512E Scheduled event 'P0400D' failed.  Return code = 12.&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Mar 2009 10:11:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-swap-problem/m-p/4387575#M349732</guid>
      <dc:creator>so_2</dc:creator>
      <dc:date>2009-03-26T10:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: memory / swap problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-swap-problem/m-p/4387576#M349733</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Let me check the logs you have posted..&lt;BR /&gt;&lt;BR /&gt;Hmm,,.&lt;BR /&gt;What makes you think, swapping is not happening..&lt;BR /&gt;Yes, there is a memory pressure on the server&lt;BR /&gt;&lt;BR /&gt;Physical memory       =  2090240    8.0g 100%&lt;BR /&gt;Free memory           =    19854   77.6m   1% &amp;lt;&amp;lt;---&lt;BR /&gt;User processes        =  1591851    6.1g  76%  details with -user&lt;BR /&gt;System                =   474513    1.8g  23%&lt;BR /&gt;&lt;BR /&gt;## We are having only 77 MB of free memory out of 8 GB&lt;BR /&gt;&lt;BR /&gt;# swapinfo -tam&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       0    4096    0%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;dev        4000     502    3498   13%       0       -    0  /dev/vg00/swap2 &amp;lt;&amp;lt;===&lt;BR /&gt;reserve       -    5980   -5980&lt;BR /&gt;total      8096    6482    1614   80%       -       0    -&lt;BR /&gt;&lt;BR /&gt;## Since /dev/vg00/swap2 is of PRI=0, this will taken as the first swap device and 13% of device swapping is taking place.&lt;BR /&gt;&lt;BR /&gt;You could observe the output of &lt;BR /&gt;&lt;BR /&gt;# vmstat 5 5 &lt;BR /&gt;&lt;BR /&gt;You will observe lot of page-outs(po)&lt;BR /&gt;This suggests that the pages are being swapped from memory to disk due to insufficient memory&lt;BR /&gt;&lt;BR /&gt;Let me check you next question !!&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Mar 2009 14:12:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-swap-problem/m-p/4387576#M349733</guid>
      <dc:creator>Avinash20</dc:creator>
      <dc:date>2009-03-26T14:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: memory / swap problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-swap-problem/m-p/4387577#M349734</link>
      <description>We are running sybase database in it. Sybase is consuming more memory.Had a check with the database team,&lt;BR /&gt;but they says everything is normal at their end.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;## There is no running away from the problem&lt;BR /&gt;&lt;BR /&gt;Please post the output of &lt;BR /&gt;&lt;BR /&gt;# ./kmeminfo -V&lt;BR /&gt;# ./kmeminfo -user &lt;BR /&gt;# vmstat 2 2&lt;BR /&gt;# swapinfo -tam&lt;BR /&gt;# ipcs -ma</description>
      <pubDate>Thu, 26 Mar 2009 14:15:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-swap-problem/m-p/4387577#M349734</guid>
      <dc:creator>Avinash20</dc:creator>
      <dc:date>2009-03-26T14:15:16Z</dc:date>
    </item>
  </channel>
</rss>

