<?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: swapping versus memory in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/swapping-versus-memory/m-p/3083519#M811297</link>
    <description>Hi A.Clay,&lt;BR /&gt;&lt;BR /&gt;I only have one daily vmstat output for the last days. This is insufficient information, to base some decision on it.&lt;BR /&gt;&lt;BR /&gt;Anyway they all show 0 for the po column and often numbers below 10 for the pi column.&lt;BR /&gt;&lt;BR /&gt;Suppose this would be the current picture. Does this mean anything, in the context of this discussion.&lt;BR /&gt;&lt;BR /&gt;Franky</description>
    <pubDate>Thu, 02 Oct 2003 09:26:46 GMT</pubDate>
    <dc:creator>Franky Leeuwerck_1</dc:creator>
    <dc:date>2003-10-02T09:26:46Z</dc:date>
    <item>
      <title>swapping versus memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapping-versus-memory/m-p/3083510#M811288</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;We have an Ingres 2.0 DBMS running on a HP-UX 11.&lt;BR /&gt;&lt;BR /&gt;When running swapinfo I see a lot of memory is used 89%, sometimes 90% .. ?&lt;BR /&gt;&lt;BR /&gt;One could conclude that the memory is well used, but there is also a possibility that the system swaps to disk a lot.&lt;BR /&gt;&lt;BR /&gt;With DBMS running on the system I would like to know if due to swapping there is a loss in performance.&lt;BR /&gt;&lt;BR /&gt;I could allocate less cache memory for avoiding swapping, but less cache means more other disk i/o operations by the DBMS.&lt;BR /&gt;&lt;BR /&gt;This DBMS version does I/O with internally managed IO threads.&lt;BR /&gt;&lt;BR /&gt;Does someone has some guidelines for this problem ? What would be the best approach for getting a good performance.&lt;BR /&gt;&lt;BR /&gt;Regards in advance,&lt;BR /&gt;Franky&lt;BR /&gt;&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        1024     230     794   22%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;reserve       -     794    -794&lt;BR /&gt;memory      465     413      52   89%&lt;BR /&gt;total      1489    1437      52   97%       -       0    -&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Oct 2003 03:01:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapping-versus-memory/m-p/3083510#M811288</guid>
      <dc:creator>Franky Leeuwerck_1</dc:creator>
      <dc:date>2003-10-02T03:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: swapping versus memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapping-versus-memory/m-p/3083511#M811289</link>
      <description>The memory line from swapinfo DOES NOT SHOW MEMORY USAGE. It shows how much of memory is locked by processes ineligble for swap.&lt;BR /&gt;&lt;BR /&gt;To accurately see how much free memory you have use glance/gpm, or vmstat. The free line from vmstat shows pages free, multiply it by 4096 to get size in bytes.&lt;BR /&gt;&lt;BR /&gt;The main point to swapinfo is to show device swap usage - in your case set to 1024MB, and 230MB used - which means at some point you have completely run out of memory. swapinfo doesnt update accurately, so all it means is at one point you had 230MB of memory swapped to disk (which cripples performance). Use vmstat or glance/gpm to check the current memory and swap usage.&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Oct 2003 03:11:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapping-versus-memory/m-p/3083511#M811289</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2003-10-02T03:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: swapping versus memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapping-versus-memory/m-p/3083512#M811290</link>
      <description>As for good performance;&lt;BR /&gt;&lt;BR /&gt;Do not allow any swapping to disk at all. This cripples performance, to something like a factor of 100 times worse. So always keep enough free ram to prevent swapping to disk, even if this means reducing other caches (like hpux buffer cache or database caches).&lt;BR /&gt;&lt;BR /&gt;We dont allow any of our production servers to run out of RAM. If you want to increase your cache sizes to improve performance some more simply purchase more RAM - its cheap nowadays.&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Oct 2003 03:22:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapping-versus-memory/m-p/3083512#M811290</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2003-10-02T03:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: swapping versus memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapping-versus-memory/m-p/3083513#M811291</link>
      <description>Thanks Stefan for your quick and clear explanation.&lt;BR /&gt;&lt;BR /&gt;In my example, device swapping was 22% used.&lt;BR /&gt;What is an acceptable % of device swapping ?&lt;BR /&gt;&lt;BR /&gt;Franky</description>
      <pubDate>Thu, 02 Oct 2003 08:07:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapping-versus-memory/m-p/3083513#M811291</guid>
      <dc:creator>Franky Leeuwerck_1</dc:creator>
      <dc:date>2003-10-02T08:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: swapping versus memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapping-versus-memory/m-p/3083514#M811292</link>
      <description>Hi Franky,&lt;BR /&gt;&lt;BR /&gt;For optimal performance - zero.&lt;BR /&gt;Disks are thousands of times slower than memory.&lt;BR /&gt; &lt;BR /&gt;Rgds,&lt;BR /&gt;Jeff</description>
      <pubDate>Thu, 02 Oct 2003 08:09:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapping-versus-memory/m-p/3083514#M811292</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2003-10-02T08:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: swapping versus memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapping-versus-memory/m-p/3083515#M811293</link>
      <description>That's one of those impossible to answer questions, other than "It depends". Even the overall percentage of device swap could be quite high and performance could be still quite good --- IF THE PAGEOUT RATE IS VERY LOW. You really should use Glance or vmstat and examine the pageout rate; if this value is anything above very small values then you are taking a large performance hit. Note that you might actually see some pageout's even if not swapping at all if memory-mapped files are in use.&lt;BR /&gt;&lt;BR /&gt;The rule for most modern boxes is to do no swapping at all because the the performance hits are so big. On the other hand, if swapping only occurs late at night with few users but large batch jobs then you might find that it is perfectly acceptable.&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Oct 2003 08:15:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapping-versus-memory/m-p/3083515#M811293</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-10-02T08:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: swapping versus memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapping-versus-memory/m-p/3083516#M811294</link>
      <description>I quite agree with Jeff.  The only real reason to allocate swap space anymore is so each process can allocate a piece of it *just in case* it ever needs it.  You do not ever want to actually have to use swap space.  Memory is cheap enough that you should add memory before adding swap.&lt;BR /&gt; &lt;BR /&gt;In you case it appears that you are VERY VERY short on memory.  I would seriously look at adding more.  If you don't want HP memory, you could go with a company like Kingston.  I have used them without any problems at all.</description>
      <pubDate>Thu, 02 Oct 2003 08:17:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapping-versus-memory/m-p/3083516#M811294</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2003-10-02T08:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: swapping versus memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapping-versus-memory/m-p/3083517#M811295</link>
      <description>Thanks all for your inputs.&lt;BR /&gt;&lt;BR /&gt;The point is that extra memory costs money ( esp. the engineer doing it ). Sometimes the current budget doesn't allow anymore hardware upgrades. &lt;BR /&gt;The choice I have is either &lt;BR /&gt;- sticking to my dbms configuration with almost all the memory allocated for dbms caching, minimizing dbms io, resulting with swapping&lt;BR /&gt;or&lt;BR /&gt;- lowering the amount of dedicated dbms cache, therefore minimizing swapping, but resulting in more dbms i/o's&lt;BR /&gt;&lt;BR /&gt;What would be the best choice ?&lt;BR /&gt;&lt;BR /&gt;Franky</description>
      <pubDate>Thu, 02 Oct 2003 08:53:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapping-versus-memory/m-p/3083517#M811295</guid>
      <dc:creator>Franky Leeuwerck_1</dc:creator>
      <dc:date>2003-10-02T08:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: swapping versus memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapping-versus-memory/m-p/3083518#M811296</link>
      <description>If you are seeing significant pageout rates (and I think you are) then reduce the database cache sizes. Swapping is much more expensive (by at least two orders of magnitude) than extra trips to the disk for database access. My Plan A would be to look for 3rd-party memory. Kingston is literally a factor of 10 cheaper than HP and I've never had any more problems with it than with HP memory. I even keep a spare module on-hand because it's so cheap.&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Thu, 02 Oct 2003 09:04:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapping-versus-memory/m-p/3083518#M811296</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-10-02T09:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: swapping versus memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapping-versus-memory/m-p/3083519#M811297</link>
      <description>Hi A.Clay,&lt;BR /&gt;&lt;BR /&gt;I only have one daily vmstat output for the last days. This is insufficient information, to base some decision on it.&lt;BR /&gt;&lt;BR /&gt;Anyway they all show 0 for the po column and often numbers below 10 for the pi column.&lt;BR /&gt;&lt;BR /&gt;Suppose this would be the current picture. Does this mean anything, in the context of this discussion.&lt;BR /&gt;&lt;BR /&gt;Franky</description>
      <pubDate>Thu, 02 Oct 2003 09:26:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapping-versus-memory/m-p/3083519#M811297</guid>
      <dc:creator>Franky Leeuwerck_1</dc:creator>
      <dc:date>2003-10-02T09:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: swapping versus memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapping-versus-memory/m-p/3083520#M811298</link>
      <description>Hi A. Clay,&lt;BR /&gt;&lt;BR /&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;My Plan A would be to look for 3rd-party &amp;gt;memory. Kingston is literally a factor of&lt;BR /&gt;&amp;gt;10 cheaper than HP and I've never had any&lt;BR /&gt;&amp;gt;more problems with it than with HP memory.&lt;BR /&gt;&amp;gt;I even keep a spare module on-hand because&lt;BR /&gt;&amp;gt;it's so cheap.&lt;BR /&gt;&lt;BR /&gt;The usage of non-HP memory into s700 or s800 boxes is totally unsupported by HP and can lead to sneaky problems during your operations.  Most of them are HPMCs, kernel panics or luckily PDTs (Page Deallocation Tables) filled up randomly.&lt;BR /&gt;&lt;BR /&gt;One thing more.  There could also be problems during firmware upgrades made by HW engineers on site. &lt;BR /&gt;&lt;BR /&gt;So, if the server is a critical server, i would not recommend your plan A (unless you accept to play with risks).&lt;BR /&gt;&lt;BR /&gt;Sorry, Bye.&lt;BR /&gt;&lt;BR /&gt;Francis DERDEYN - HP-UX ASCE.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Oct 2003 09:37:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapping-versus-memory/m-p/3083520#M811298</guid>
      <dc:creator>Francis_12</dc:creator>
      <dc:date>2003-10-02T09:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: swapping versus memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapping-versus-memory/m-p/3083521#M811299</link>
      <description>Francis, &lt;BR /&gt; &lt;BR /&gt;No offense intended, but that sounds like a bunch of HP nonsense to discourage use of 3rd party memory.  Granted 3rd party memory is not supported by HP.  That's why I generally have at least 1 bank of HP memory so all the other can be removed if need be.  As to your other points, I have never seen any of that.  If that truly were the case the 3rd party manufacturers wouldn't be in business very long.&lt;BR /&gt; &lt;BR /&gt;Until HP does something with its memory pricing I still recommend minimal HP memory and the rest 3rd party.  HP is just WAY WAY too pricy with its memory.</description>
      <pubDate>Thu, 02 Oct 2003 09:57:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapping-versus-memory/m-p/3083521#M811299</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2003-10-02T09:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: swapping versus memory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swapping-versus-memory/m-p/3083522#M811300</link>
      <description>Hello Francis,&lt;BR /&gt;&lt;BR /&gt;Thanks for your input too. &lt;BR /&gt;Let us not start another topic (HP versus non HP RAM) in this thread.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Franky</description>
      <pubDate>Thu, 02 Oct 2003 09:58:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swapping-versus-memory/m-p/3083522#M811300</guid>
      <dc:creator>Franky Leeuwerck_1</dc:creator>
      <dc:date>2003-10-02T09:58:39Z</dc:date>
    </item>
  </channel>
</rss>

