<?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: SWAP question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-question/m-p/2457985#M13112</link>
    <description>The only problem I have with NOT having as much swap as you do RAM is that when the machine crashes you will not get your entire crashdump file.  I don't know if those things are really useful to HP for diagnosing the cause of a crash or not.&lt;BR /&gt;&lt;BR /&gt;I prefer having at least as much swap as I have RAM, so I can get the whole crash dump if necessary.  Better to be safe than sorry.  And with disk capacity increasing as it is, why not?!&lt;BR /&gt;&lt;BR /&gt;Just my 2 cents.</description>
    <pubDate>Wed, 25 Oct 2000 20:35:44 GMT</pubDate>
    <dc:creator>Patrick Wallek</dc:creator>
    <dc:date>2000-10-25T20:35:44Z</dc:date>
    <item>
      <title>SWAP question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-question/m-p/2457981#M13108</link>
      <description>OLD DAYS - RAM x 2 maybe 2.25 for swap (initial DEVICE)&lt;BR /&gt;&lt;BR /&gt;After attending a seminar from HP, it appears that &lt;BR /&gt;RAM x.25 or 256 MB; whichever is greater is acceptable &lt;BR /&gt;for a Database Sever.&lt;BR /&gt;&lt;BR /&gt;I have set my N4000 with 4GB RAM with 1024MB Device Swap&lt;BR /&gt;Any comments.</description>
      <pubDate>Wed, 25 Oct 2000 19:35:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-question/m-p/2457981#M13108</guid>
      <dc:creator>Tony Willis_1</dc:creator>
      <dc:date>2000-10-25T19:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: SWAP question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-question/m-p/2457982#M13109</link>
      <description>I believe that swap should be large enough to hold the largest running program (process) in core... unless you are running some really large programs (databases etc.) you should be fine with 1G swap.</description>
      <pubDate>Wed, 25 Oct 2000 19:45:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-question/m-p/2457982#M13109</guid>
      <dc:creator>Kofi ARTHIABAH</dc:creator>
      <dc:date>2000-10-25T19:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: SWAP question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-question/m-p/2457983#M13110</link>
      <description>1GB is a fine starting place.  Bu swap space needs to be watched under expected processing load.  The system requires the ability to reserve swap space for any new processes, so you can run into a bind from inadequate swap well before you are actually "using" much swap space.&lt;BR /&gt;&lt;BR /&gt;I also recommend turning memory swap on in the kernel.</description>
      <pubDate>Wed, 25 Oct 2000 19:56:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-question/m-p/2457983#M13110</guid>
      <dc:creator>Alan Riggs</dc:creator>
      <dc:date>2000-10-25T19:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: SWAP question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-question/m-p/2457984#M13111</link>
      <description>Tony:&lt;BR /&gt;&lt;BR /&gt;Seems to me that the old rules were fine when memory was scarce.  My choice is to watch swap utilization (Glance or swapinfo -ta) and adjust as really necessary.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 25 Oct 2000 19:59:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-question/m-p/2457984#M13111</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2000-10-25T19:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: SWAP question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-question/m-p/2457985#M13112</link>
      <description>The only problem I have with NOT having as much swap as you do RAM is that when the machine crashes you will not get your entire crashdump file.  I don't know if those things are really useful to HP for diagnosing the cause of a crash or not.&lt;BR /&gt;&lt;BR /&gt;I prefer having at least as much swap as I have RAM, so I can get the whole crash dump if necessary.  Better to be safe than sorry.  And with disk capacity increasing as it is, why not?!&lt;BR /&gt;&lt;BR /&gt;Just my 2 cents.</description>
      <pubDate>Wed, 25 Oct 2000 20:35:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-question/m-p/2457985#M13112</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2000-10-25T20:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: SWAP question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-question/m-p/2457986#M13113</link>
      <description>Hi,&lt;BR /&gt;You need to have large amount of swap space, if you are running large programs or databases because it need to allocate virutal address space in swap for forking a new process. So, if you have small swap, you may find yourself in a situation where ur system can't fork any more processes even though your memory is not fully utilized.</description>
      <pubDate>Thu, 26 Oct 2000 00:15:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-question/m-p/2457986#M13113</guid>
      <dc:creator>Ramesh Donti</dc:creator>
      <dc:date>2000-10-26T00:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: SWAP question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-question/m-p/2457987#M13114</link>
      <description>Patrick brings up a good point, but also keep inmind that 11.0 will not need the 1 to 1 ratio to capture a full dump like 10.20 needed.  11.0 will take specific portions of memory to include with the dump.&lt;BR /&gt;&lt;BR /&gt;To get an idea of how much space you'd need in dump on 11.0 look at crashconf&lt;BR /&gt;&lt;BR /&gt;# /sbin/crashconf -v</description>
      <pubDate>Thu, 26 Oct 2000 00:56:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-question/m-p/2457987#M13114</guid>
      <dc:creator>Denver Osborn</dc:creator>
      <dc:date>2000-10-26T00:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: SWAP question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-question/m-p/2457988#M13115</link>
      <description>1Gb is plenty on a server where you are not intending to oversubscribe the memory PROVIDING that you have the kernel parameter swapmem_on set to 1.&lt;BR /&gt;&lt;BR /&gt;If it is 0 (and SAM's 'general database server' template sets it to 0) you will be limited to that 1Gb of data segments.&lt;BR /&gt;&lt;BR /&gt;Denver is correct regarding the amount of dump space required, HP rewrote the crashdump mechanism at 11.00. After all, with amounts of server RAM increasing dramatically, who would want to reserve many Gb's of device swap for use in the unlikely event of a crash.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John</description>
      <pubDate>Thu, 26 Oct 2000 09:30:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-question/m-p/2457988#M13115</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2000-10-26T09:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: SWAP question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-question/m-p/2457989#M13116</link>
      <description>From HP-UX 10.20 onwards swap is implemented somewhat differently which is why the old rules do not apply.  From 10.20 onwards you have a true demand paged memory model, so when things execute they have two types of pages, retrievable and anonymous, retreivable pages are related to things like files on disk and these will no longer be allocated against your swap device, as they can simply be retreived from disk if they ever get kicked from memory, now your anonymous pages are the interesting ones, they cannot be retreived and you must therefore allocate some swap for them, now we have the awkward question of what is swap, well it is no longer your swap device, it is normal demand paged memory, so the swap page will be allocated initially against memory and if accessed enough will remain there, however if the machine starts to become short of memory pages get flushed from the memory cache according to the same rules as any other page and if the page had not been accessed it will be put on the freelist, if it remains there long enough without a page reclaim, it will be re-used, at this point it will be written to the swap device.&lt;BR /&gt;&lt;BR /&gt;This is why you hear statements like if you have enough memory you do not need any swap space, this can be true these days, the rule of 4 came from the days when an entire process, plus all its stack, etc must have a one to one relationship with space on the swap device, this has not been true for a number of years now.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.</description>
      <pubDate>Thu, 26 Oct 2000 09:39:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-question/m-p/2457989#M13116</guid>
      <dc:creator>Ken Robson</dc:creator>
      <dc:date>2000-10-26T09:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: SWAP question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/swap-question/m-p/2457990#M13117</link>
      <description>Thanks to all! ( Points also.)&lt;BR /&gt;&lt;BR /&gt;This was the replies that I expected.&lt;BR /&gt;Good comments all.&lt;BR /&gt;swapmem was set to 1.&lt;BR /&gt;swap has 1GB DEVICE&lt;BR /&gt;and 1GB FILE.&lt;BR /&gt;If, after monitoring DEVICE meets the needs,&lt;BR /&gt;I will reclaim FILE.&lt;BR /&gt;&lt;BR /&gt;We do not experience "non-hardware" crashes;&lt;BR /&gt;tombstone does the trick in 11.&lt;BR /&gt;&lt;BR /&gt;Once again, THANKS for the input.&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Oct 2000 16:45:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/swap-question/m-p/2457990#M13117</guid>
      <dc:creator>Tony Willis_1</dc:creator>
      <dc:date>2000-10-26T16:45:17Z</dc:date>
    </item>
  </channel>
</rss>

