<?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 About swap memory in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/about-swap-memory/m-p/2870770#M98417</link>
    <description>How can I know the usage status of swap memory ? How can I increase it? thx.</description>
    <pubDate>Fri, 27 Dec 2002 07:50:36 GMT</pubDate>
    <dc:creator>Cheung_2</dc:creator>
    <dc:date>2002-12-27T07:50:36Z</dc:date>
    <item>
      <title>About swap memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-swap-memory/m-p/2870770#M98417</link>
      <description>How can I know the usage status of swap memory ? How can I increase it? thx.</description>
      <pubDate>Fri, 27 Dec 2002 07:50:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-swap-memory/m-p/2870770#M98417</guid>
      <dc:creator>Cheung_2</dc:creator>
      <dc:date>2002-12-27T07:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: About swap memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-swap-memory/m-p/2870771#M98418</link>
      <description>swapinfo is the command&lt;BR /&gt;You can increase it by swapon command . See the man pages for it&lt;BR /&gt;&lt;BR /&gt;kaps</description>
      <pubDate>Fri, 27 Dec 2002 08:29:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-swap-memory/m-p/2870771#M98418</guid>
      <dc:creator>KapilRaj</dc:creator>
      <dc:date>2002-12-27T08:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: About swap memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-swap-memory/m-p/2870772#M98419</link>
      <description>swapinfo is the command you are looking for.&lt;BR /&gt;&lt;BR /&gt;check man pages.</description>
      <pubDate>Fri, 27 Dec 2002 08:43:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-swap-memory/m-p/2870772#M98419</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2002-12-27T08:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: About swap memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-swap-memory/m-p/2870773#M98420</link>
      <description>Yes you can see the usage of swap memory by swapinfo -tm which tells you in MB. And to increase the device swap create a logical volume and if you are new to HPUX and want to be more safe use sam to create the swap. Or add an entry in /etc/fstab and use swapon -a to activate the swap.&lt;BR /&gt;&lt;BR /&gt;Rajeev</description>
      <pubDate>Fri, 27 Dec 2002 09:37:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-swap-memory/m-p/2870773#M98420</guid>
      <dc:creator>Rajeev  Shukla</dc:creator>
      <dc:date>2002-12-27T09:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: About swap memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-swap-memory/m-p/2870774#M98421</link>
      <description>U need to first confirm for which type of swap u need.&lt;BR /&gt;&lt;BR /&gt;well the above persons verdict r correct.&lt;BR /&gt;1.swapinfo -----&amp;gt;to see the information of swap currently configured&lt;BR /&gt;&lt;BR /&gt;2.Go for file swap ie select a filesystem free ...and with swapon command use the file as swap.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Dec 2002 13:53:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-swap-memory/m-p/2870774#M98421</guid>
      <dc:creator>Jaffar</dc:creator>
      <dc:date>2002-12-27T13:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: About swap memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-swap-memory/m-p/2870775#M98422</link>
      <description>All of the above have answered correctly.&lt;BR /&gt;But let me simply add a few thoughts here..&lt;BR /&gt;&lt;BR /&gt;You are correct in wanting to know what is the utilization of swap memory...remember when you read the swapinfo -tam or swapinfo -tm command your bottom line is total/average of ALL your defined swap (i.e. physical memory and device swap)  Take a look at the lines that reflect device or filesys swap - if they show 0 utilization than you are doing well, for you have never had to swap (or page) to physical devices.  And trying to maintain ALL your paging/swapping in memory is what will give you the best performance.&lt;BR /&gt;So let me recommend that before you add more disk swap space...you consider doing a couple other things, that I have learned seem to give the most return for the time invested.&lt;BR /&gt;&lt;BR /&gt;First, check your parms - make certain that they are tuned properly. A poorly set kernel can be a detriment to system performance. Search/look through threads here for more info on kernel tuning !&lt;BR /&gt;&lt;BR /&gt;Second, observe your applications performance.  I have gotten some of my biggest performance improvements by simply getting after the programmers to clean up their syntax.  Amazing how a few lines of bad code...can choke a box.  And all I used was Glance to see what was chewing up resources !&lt;BR /&gt;&lt;BR /&gt;When steps 1 &amp;amp; 2 have been taken as far as I can take them...then I look at adding something as far as hardware.  I look first at adding physical memory, since these days that is not a big cost.  And physical memory will give you the best return for your investment.  The last option I take is to add disk swap.  And I only do this as a last ditch effort to keep running - because if I'm at this point...than the fact is that the 'system' has outgrown the box...and so I (and any UNIX Admin worth their salt) would have already put in for a bigger server.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Rita&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Dec 2002 15:46:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-swap-memory/m-p/2870775#M98422</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2002-12-27T15:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: About swap memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-swap-memory/m-p/2870776#M98423</link>
      <description>To add to above:&lt;BR /&gt;# swapinfo -tma will give you the total %used which is a good indication on how short you are in swap space (60-70% should be alarming) a confusing line in the output is the Memory line which is related to pseudo-swap &amp;amp; not to RAM. Pseudo-swap can be disabled/enabled by setting kernel parm swapmem_on to 0/1. If you don't see it in swapinfo output that means it is disabled, it recommended to enable it. &lt;BR /&gt;Top will also show you the Memory (real &amp;amp; virtual) usage on your system the last nbr is for Free memory that another way, if it is low, to determine if you are short in swap space.&lt;BR /&gt;A system short in swap space will logg msg in syslog or stdout/stderr about "out of memory" &amp;amp; applications will return some indication too. For example a failure with errno 12 in syslog as indicated in /usr/include/sys/errno.h:  &lt;BR /&gt;#define ENOMEM     12      /* Not enough core    */  This means not enough Virtual memory. More about swap can be found in process mangement white paper in docs.hp.com or check in /usr/share/doc dir on ur system.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;T??</description>
      <pubDate>Fri, 27 Dec 2002 16:23:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-swap-memory/m-p/2870776#M98423</guid>
      <dc:creator>T. M. Louah</dc:creator>
      <dc:date>2002-12-27T16:23:56Z</dc:date>
    </item>
  </channel>
</rss>

