<?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: Multiple swap files on the same device in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-swap-files-on-the-same-device/m-p/5147745#M453941</link>
    <description>Hi Ken:&lt;BR /&gt;&lt;BR /&gt;If you must put multiple device swap files on the same physical disk, you should probably make their swap priorities different.  Using the same swap priority would mean that I/O interleaving would occur.  While this is desirable if the swap devices reside on different disks, disk head movement (if I/O actually occured) would futher degrade already degraded performance.&lt;BR /&gt;&lt;BR /&gt;Of course, if you are adding device swap largely to satisfy process swap reservation, and you generally do not swap then all of this is moot.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Tue, 23 Dec 2008 16:08:34 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2008-12-23T16:08:34Z</dc:date>
    <item>
      <title>Multiple swap files on the same device</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-swap-files-on-the-same-device/m-p/5147743#M453939</link>
      <description>Does anyone know if there are issues in HP-UX 11i v2 or v3 when more than one swap file resides on the same volume group.  Typically we try to size our systems so they do not actually page, but things don't always end up as planned.&lt;BR /&gt;&lt;BR /&gt;I've been told that on AIX if there is more than one swap file on the same device, it is possible the system will crash when it starts paging.&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Dec 2008 15:59:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-swap-files-on-the-same-device/m-p/5147743#M453939</guid>
      <dc:creator>Ken Englander</dc:creator>
      <dc:date>2008-12-23T15:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple swap files on the same device</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-swap-files-on-the-same-device/m-p/5147744#M453940</link>
      <description>It is not necessarily a good practice to have multiple swap files on the same device, especially if they are the same priority.&lt;BR /&gt;&lt;BR /&gt;If you do have multiple swap areas on the same device it can lead to disk head thrashing if you actually do page.  This can lead to a degradation of performanace, but if you are actually paging to any extent then performance will suck anyway.</description>
      <pubDate>Tue, 23 Dec 2008 16:04:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-swap-files-on-the-same-device/m-p/5147744#M453940</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2008-12-23T16:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple swap files on the same device</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-swap-files-on-the-same-device/m-p/5147745#M453941</link>
      <description>Hi Ken:&lt;BR /&gt;&lt;BR /&gt;If you must put multiple device swap files on the same physical disk, you should probably make their swap priorities different.  Using the same swap priority would mean that I/O interleaving would occur.  While this is desirable if the swap devices reside on different disks, disk head movement (if I/O actually occured) would futher degrade already degraded performance.&lt;BR /&gt;&lt;BR /&gt;Of course, if you are adding device swap largely to satisfy process swap reservation, and you generally do not swap then all of this is moot.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 23 Dec 2008 16:08:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-swap-files-on-the-same-device/m-p/5147745#M453941</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-12-23T16:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple swap files on the same device</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-swap-files-on-the-same-device/m-p/5147746#M453942</link>
      <description>Thanks for the input!&lt;BR /&gt;&lt;BR /&gt;I just re-read some of the HP doc about interleaving swap files and I can see that they generally recommend using separate devices although it does not actually state NOT to put them on the same device.&lt;BR /&gt;&lt;BR /&gt;If I read it right, the lv swap areas need to be the same size to utilize interleaving.&lt;BR /&gt;&lt;BR /&gt;I find there are two issues I've had to handle that make it simpler to put additional swap on the same device.  First, the primary swap is preallocated on vg00 and it is difficult to resize it.&lt;BR /&gt;&lt;BR /&gt;It is true that I have a number of systems that use internal disks so head movement could be an issue, however, so many systems utilize SAN technology that I wonder if the head movement issue is actually a problem.</description>
      <pubDate>Tue, 23 Dec 2008 16:35:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-swap-files-on-the-same-device/m-p/5147746#M453942</guid>
      <dc:creator>Ken Englander</dc:creator>
      <dc:date>2008-12-23T16:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple swap files on the same device</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-swap-files-on-the-same-device/m-p/5147747#M453943</link>
      <description>Hi (again) Ken:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I just re-read some of the HP doc about interleaving swap files and I can see that they generally recommend using separate devices although it does not actually state NOT to put them on the same device.&lt;BR /&gt;&lt;BR /&gt;There's always more than one way in Unix...&lt;BR /&gt;&lt;BR /&gt;&amp;gt; If I read it right, the lv swap areas need to be the same size to utilize interleaving.&lt;BR /&gt;&lt;BR /&gt;Yes, but I believe that swap devices of unequal size (even on the same physical volume) will round-robin I/O until the smaller is "exhausted".&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I find there are two issues I've had to handle that make it simpler to put additional swap on the same device. First, the primary swap is preallocated on vg00 and it is difficult to resize it.&lt;BR /&gt;&lt;BR /&gt;Resizing primary swap is best achieved by re-Ignite-ing your server.  Primary swap needs contiguous extents and to extend it you would first need to move '/' outward.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; It is true that I have a number of systems that use internal disks so head movement could be an issue, however, so many systems utilize SAN technology that I wonder if the head movement issue is actually a problem. &lt;BR /&gt; &lt;BR /&gt;It's probably not nearly as much concern on a SAN as you say.  As I said above, ideally you are only adding swapspace for the purposes of process swap reservation.  You should be sure that pseudoswap is enabled ('swapmem_on'=1 in your kernel settings).  This allows 75% of physical memory to be counted for swap reservation --- an accounting trick of the kernel.  As of 11.31 this is set by default.  Prior to 11.31 you need to verify and/or set it.  The presence of the "memory" line in 'swapinfo -tam' means that it is set on.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Dec 2008 17:17:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-swap-files-on-the-same-device/m-p/5147747#M453943</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-12-23T17:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple swap files on the same device</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-swap-files-on-the-same-device/m-p/5147748#M453944</link>
      <description>Yes, swapmem is on.&lt;BR /&gt;&lt;BR /&gt;I'm still wondering if anyone knows if an actual problem (or crash) can occur when more than one swap area is set up on the same disk.  I do understand performance can definitely be considered a problem, but I'm more interested to know if it can crash the system as I was told can happen on AIX.</description>
      <pubDate>Tue, 23 Dec 2008 17:26:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-swap-files-on-the-same-device/m-p/5147748#M453944</guid>
      <dc:creator>Ken Englander</dc:creator>
      <dc:date>2008-12-23T17:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple swap files on the same device</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-swap-files-on-the-same-device/m-p/5147749#M453945</link>
      <description>&amp;gt;I'm still wondering if anyone knows if an actual problem (or crash) can occur when more than one swap area is set up on the same disk.&lt;BR /&gt;&lt;BR /&gt;It would most likely be illegal to copy the bugs in another OS.  :-)&lt;BR /&gt;Don't worry about it on HP-UX.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;JRF: As of 11.31 this is set by default.&lt;BR /&gt;&lt;BR /&gt;On 11.31, swapmem_on only comes in black, it can't be turned off.  Which implies users should always have it on, on previous OS versions.</description>
      <pubDate>Tue, 23 Dec 2008 17:39:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-swap-files-on-the-same-device/m-p/5147749#M453945</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-12-23T17:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple swap files on the same device</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-swap-files-on-the-same-device/m-p/5147750#M453946</link>
      <description>&lt;!--!*#--&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;You already got good replies. To emphasize&lt;BR /&gt;the critical points:&lt;BR /&gt;&lt;BR /&gt;Avoid having multiple swap devices on the&lt;BR /&gt;same physical volume!&lt;BR /&gt;&lt;BR /&gt;SOme good design principles:&lt;BR /&gt;&lt;BR /&gt;a) Primary swap is 4 GB (maximum 8 GB&lt;BR /&gt;if there is enough space on boot disks).&lt;BR /&gt;&lt;BR /&gt;b) Add secondary swap devices in the same&lt;BR /&gt;size (4 GB) on other disks, or even better,&lt;BR /&gt;SAN LUNs (if possible).&lt;BR /&gt;&lt;BR /&gt;c) Set the priority to be the same (that&lt;BR /&gt;way you achieve perfect interleaving).&lt;BR /&gt;&lt;BR /&gt;e) If you add more RAM, it is easy to &lt;BR /&gt;add extra swap devices, without breaking perfect design rules.&lt;BR /&gt;&lt;BR /&gt;f) If you ever start using swap, your boot disk will not suffer from high I/O because&lt;BR /&gt;only a small chunk of swap is used on it.&lt;BR /&gt;&lt;BR /&gt;g) Create dedicated dump device.&lt;BR /&gt;If enough space, dedicated dump volume&lt;BR /&gt;equals RAM size, or between 1/2 and 3/4&lt;BR /&gt;of it.&lt;BR /&gt;&lt;BR /&gt;Dedicated dump device will not shorten the&lt;BR /&gt;time required to write from memory to dump&lt;BR /&gt;during the crash, but WILL SHORTEN the&lt;BR /&gt;reboot time.&lt;BR /&gt;&lt;BR /&gt;Think what happens at crash time typically:&lt;BR /&gt;&lt;BR /&gt;1. Memory image gets dumped into swap/dump area.&lt;BR /&gt;&lt;BR /&gt;2. At reboot, due to risk of swap&lt;BR /&gt;overwriting those dump pages, savecrash&lt;BR /&gt;"exports" them into the crash dump directory&lt;BR /&gt;(typically /var/adm/crash).&lt;BR /&gt;&lt;BR /&gt;That way, you can keep an image in the dump&lt;BR /&gt;area until the next crash or run&lt;BR /&gt;savecrash at will.&lt;BR /&gt;&lt;BR /&gt;On a server with large amount of RAM, this is&lt;BR /&gt;a serious problem because the reboot&lt;BR /&gt;can take a loooong time. That is a huge&lt;BR /&gt;risk because the golden rule of system&lt;BR /&gt;administration is: restore production&lt;BR /&gt;services AS SOON AS POSSIBLE and then&lt;BR /&gt;analyze the root cause.&lt;BR /&gt;&lt;BR /&gt;For that very reason, in my Operations Acceptance Testing, I check these things and fail servers that are not built properly:&lt;BR /&gt;&lt;BR /&gt;INFO Swap space&lt;BR /&gt;             Kb      Kb      Kb   PCT  START/      Kb&lt;BR /&gt;TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME&lt;BR /&gt;dev     12517376       0 12517376    0%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;dev     4194304       0 4194304    0%       0       -    1  /dev/vg00/lvswap2&lt;BR /&gt;reserve       - 1610368 -1610368&lt;BR /&gt;memory  12473024 11362304 1110720   91%&lt;BR /&gt;&lt;BR /&gt;AUDIT-INFO Physical volume /dev/disk/disk3_p2 contains swap device /dev/vg00/lvol2&lt;BR /&gt;AUDIT-INFO Physical volume /dev/disk/disk3_p2 contains swap device /dev/vg00/lvswap2&lt;BR /&gt;&lt;BR /&gt;AUDIT-WARN /dev/vg00/lvol2 has no mirrors&lt;BR /&gt;&lt;BR /&gt;AUDIT-WARN /dev/vg00/lvswap2 has no mirrors&lt;BR /&gt;AUDIT-PASS /dev/vg00/lvswap2 has Mirror Consistency Recovery enabled for additional (non-primary) swap&lt;BR /&gt;&lt;BR /&gt;AUDIT-FAIL Physical volume /dev/disk/disk3_p2 contains multiple device-based paging spaces&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;VK2COT&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.circlingcycle.com.au/Unix-sources/HP-UX-check-OAT.pl.txt" target="_blank"&gt;http://www.circlingcycle.com.au/Unix-sources/HP-UX-check-OAT.pl.txt&lt;/A&gt;</description>
      <pubDate>Tue, 23 Dec 2008 23:52:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-swap-files-on-the-same-device/m-p/5147750#M453946</guid>
      <dc:creator>VK2COT</dc:creator>
      <dc:date>2008-12-23T23:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple swap files on the same device</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-swap-files-on-the-same-device/m-p/5147751#M453947</link>
      <description>&amp;gt; It would most likely be illegal to copy the bugs in another OS. :-)&lt;BR /&gt;&lt;BR /&gt;Dennis - GREAT answer - I did not think HP did such things, but my associate who works with AIX seemed to think it was logical to make such an assumption.&lt;BR /&gt;&lt;BR /&gt;VK2COT - Thanks for the suggestions about the dump device!  I have systems with over 8 GB primary swap, so I'm not sure that rule applies.  Also, I would suggest it is not practical to set up sufficient manageable swap with only files of 8 GB in size with the large memory systems we use.</description>
      <pubDate>Mon, 29 Dec 2008 18:12:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-swap-files-on-the-same-device/m-p/5147751#M453947</guid>
      <dc:creator>Ken Englander</dc:creator>
      <dc:date>2008-12-29T18:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple swap files on the same device</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-swap-files-on-the-same-device/m-p/5147752#M453948</link>
      <description>Hello Ken,&lt;BR /&gt;&lt;BR /&gt;The size of RAM is almost irrelevant when you&lt;BR /&gt;design the device-based swaps.&lt;BR /&gt;&lt;BR /&gt;We have servers with 128 GB and 256 GB of RAM&lt;BR /&gt;where the primary swap is only 4 GB. And&lt;BR /&gt;you can imagine how long would take&lt;BR /&gt;to reboot after crash if classical (shared)&lt;BR /&gt;swap/dump design is used.&lt;BR /&gt;&lt;BR /&gt;The other swaps are also 4 GB in size and&lt;BR /&gt;reside in many LUNs on SAN. Dump areas&lt;BR /&gt;are separate. Simple and easy.&lt;BR /&gt;&lt;BR /&gt;And if swap ever gets used, the boot disk will not suffer the silly I/O bottleneck :)&lt;BR /&gt;Plus, I will never ever worry about&lt;BR /&gt;resizing the primary swap (for whatever reason). As we know, that is not a pleasant&lt;BR /&gt;task (requires a reboot) in HP-UX.&lt;BR /&gt;&lt;BR /&gt;"A friend in need is a friend indeed".&lt;BR /&gt;When swap is not used, ANY server (even those&lt;BR /&gt;built by grandmothers) will work fine.&lt;BR /&gt;What happens when swap really gets used&lt;BR /&gt;is my concern and I like to address it&lt;BR /&gt;before it happens.&lt;BR /&gt;&lt;BR /&gt;I guess I had worked for too long in&lt;BR /&gt;Unix/Linux support as well. So, I know what&lt;BR /&gt;hurts in real life. Theory is one thing and&lt;BR /&gt;reality the other :)&lt;BR /&gt;&lt;BR /&gt;In the end, the important things is&lt;BR /&gt;that there are number of choices and we are&lt;BR /&gt;free to form a different opinion :)&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;VK2COT</description>
      <pubDate>Mon, 29 Dec 2008 20:42:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-swap-files-on-the-same-device/m-p/5147752#M453948</guid>
      <dc:creator>VK2COT</dc:creator>
      <dc:date>2008-12-29T20:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple swap files on the same device</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-swap-files-on-the-same-device/m-p/5147753#M453949</link>
      <description>VK2COT&lt;BR /&gt;&lt;BR /&gt;I understand your statement about sizing swap as a general view, but we must size it large at 1-2 times the size of memory because of our application and/or running an Oracle database where we typically load as much into memory as possible in the SGA.&lt;BR /&gt;&lt;BR /&gt;How much swap do you have allocated for your large memory systems?  Do you actually have dozens of 4 GB LUNs?</description>
      <pubDate>Tue, 30 Dec 2008 16:42:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-swap-files-on-the-same-device/m-p/5147753#M453949</guid>
      <dc:creator>Ken Englander</dc:creator>
      <dc:date>2008-12-30T16:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple swap files on the same device</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-swap-files-on-the-same-device/m-p/5147754#M453950</link>
      <description>&amp;gt;Ken: but we must size it large at 1-2 times the size of memory because of our application and/or running an Oracle database where we typically load as much into memory as possible in the SGA.&lt;BR /&gt;&lt;BR /&gt;If you want to load as much in memory as possible, you don't want to be in swap.  It does no good to have that much swap because if you need it, it will run dog slow.&lt;BR /&gt;&lt;BR /&gt;So what is the "swapinfo -tam" output of your system?&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Dec 2008 17:03:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-swap-files-on-the-same-device/m-p/5147754#M453950</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-12-30T17:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple swap files on the same device</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-swap-files-on-the-same-device/m-p/5147755#M453951</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Dennis already answered your 1 or 2 x RAM&lt;BR /&gt;for swap requirement.&lt;BR /&gt;&lt;BR /&gt;If you really need that much swap, simply&lt;BR /&gt;add many 4 GB LUNs for swap devices.&lt;BR /&gt;&lt;BR /&gt;Let's say, you have a server with 64 GB RAM.&lt;BR /&gt;&lt;BR /&gt;Set primary swap to 4 GB on boot disks (make&lt;BR /&gt;sure swap is mirrored UNLESS BOOT DISK IS&lt;BR /&gt;SAN-BASED LUN, which might be RAID-1 or RAID-5 on SAN already).&lt;BR /&gt;&lt;BR /&gt;If you want to use formula 2 x RAM for swap,&lt;BR /&gt;than add 31 LUNs of 4 GB for swap devices.&lt;BR /&gt;&lt;BR /&gt;In total, you will have 128 GB swap and&lt;BR /&gt;yet, its performance will be perfect.&lt;BR /&gt;Plus, you will never cause disk I/O&lt;BR /&gt;load on boot disks if swap is used.&lt;BR /&gt;And you will not "waste" disk space on&lt;BR /&gt;boot disk for silly swap area.&lt;BR /&gt;&lt;BR /&gt;And, if you ever add more RAM, you simply&lt;BR /&gt;add more 4 GB devices for swap to&lt;BR /&gt;match whatever rule you use. No need to&lt;BR /&gt;resize primary swap or set up additional&lt;BR /&gt;swaps which do not have same size as primary&lt;BR /&gt;swap...&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;VK2COT</description>
      <pubDate>Tue, 30 Dec 2008 22:43:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-swap-files-on-the-same-device/m-p/5147755#M453951</guid>
      <dc:creator>VK2COT</dc:creator>
      <dc:date>2008-12-30T22:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple swap files on the same device</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-swap-files-on-the-same-device/m-p/5147756#M453952</link>
      <description>Dennis and VK2COT,&lt;BR /&gt;&lt;BR /&gt;I understand you both to be saying it is not necessary to have as much swap as I am allocating.  I'd like to know what it is that I do not understand.  HP-UX is requiring this swap space so it can "allocate" enough swap to match our memory requirements even though it is not using it.  Are we doing something wrong?&lt;BR /&gt;&lt;BR /&gt;It is my understanding and confirmed by HP consultants who have helped us that we must have sufficient swap reservable.&lt;BR /&gt;&lt;BR /&gt;VK2COT - I would hardly consider managing 31 LUNs in order to set up 128 GB of swap simple.  That strikes me as a small nightmare.  That is simply my opinion.&lt;BR /&gt;&lt;BR /&gt;Thanks for your input!</description>
      <pubDate>Wed, 31 Dec 2008 20:01:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-swap-files-on-the-same-device/m-p/5147756#M453952</guid>
      <dc:creator>Ken Englander</dc:creator>
      <dc:date>2008-12-31T20:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple swap files on the same device</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-swap-files-on-the-same-device/m-p/5147757#M453953</link>
      <description>Hi (again) Ken:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; It is my understanding and confirmed by HP consultants who have helped us that we must have sufficient swap reservable.&lt;BR /&gt;&lt;BR /&gt;Yes, this is true insofar as sufficient swap must be available to be *reserved* when a process is first spawned whether or not that process ever actually uses swap space.  As I originally noted, turning on pseduoswap 'swampmem_on=1' in releases prior to 11.31 (or simply running 11.31 where the kernel behaves intrinsicly as if it were on), means that about 75% of your physical memory is counted "as" swap space for the purposes of meeting swap reservation requirements.&lt;BR /&gt;&lt;BR /&gt;You have indicated that you have pseudoswap enabled.  Hence you don't need to waste great amounts of disk apportioning it to device swap.  As Dennis noted, you don't ever want to actually swap.  Pseudoswap was designed for servers with large amounts of memory.  You should be able to use a smaller number of device swap gigabytes than you have physical memory and still run everything you need.  As always, YMMV (Your-Mileage-May-Vary), so emperical measurements on your part would be best :-)&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 31 Dec 2008 20:35:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-swap-files-on-the-same-device/m-p/5147757#M453953</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-12-31T20:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple swap files on the same device</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-swap-files-on-the-same-device/m-p/5147758#M453954</link>
      <description>James and VK2COT - I believe the issue we have relates to lockable memory, that is required by Oracle for the SGA.  According to HP, swapmem actually decreases the amount of available lockable memory, but adding more disk swap helps with it.  So, we are stuck with having rather large swap areas.</description>
      <pubDate>Fri, 02 Jan 2009 16:04:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-swap-files-on-the-same-device/m-p/5147758#M453954</guid>
      <dc:creator>Ken Englander</dc:creator>
      <dc:date>2009-01-02T16:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple swap files on the same device</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-swap-files-on-the-same-device/m-p/5147759#M453955</link>
      <description>&amp;gt;I believe the issue we have relates to lockable memory, that is required by Oracle for the SGA.&lt;BR /&gt;&lt;BR /&gt;I wasn't aware you had to be lockable for the SGA?  Is it optional?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;we are stuck with having rather large swap areas.&lt;BR /&gt;&lt;BR /&gt;This seems to defeat the purpose of having large memory systems.</description>
      <pubDate>Fri, 02 Jan 2009 20:18:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-swap-files-on-the-same-device/m-p/5147759#M453955</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-01-02T20:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple swap files on the same device</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-swap-files-on-the-same-device/m-p/5147760#M453956</link>
      <description>Hello Ken,&lt;BR /&gt;&lt;BR /&gt;Yes, your Oracle DB requirements seem to be&lt;BR /&gt;counter-productive in regards to RAM and swap&lt;BR /&gt;sizing. I have seen some other weird&lt;BR /&gt;applications that also commanded high amount&lt;BR /&gt;of swap (even though they did not use it).&lt;BR /&gt;&lt;BR /&gt;Nevertheless, the effort to set up multiple&lt;BR /&gt;swaps on SAN is small in comparison to&lt;BR /&gt;the benefits. After all, how often do we add&lt;BR /&gt;or remove device swaps? It is typically&lt;BR /&gt;done via simple Shell scripts at the time&lt;BR /&gt;when the server is built and not revisited&lt;BR /&gt;during lifetime of the server (if the design&lt;BR /&gt;is good).&lt;BR /&gt;&lt;BR /&gt;Spend a bit more time on this and other&lt;BR /&gt;issues when the server is built and then enjoy life without panics and performance&lt;BR /&gt;issues later on :)&lt;BR /&gt;&lt;BR /&gt;Make computers work on boring and repetitive&lt;BR /&gt;tasks (they never complain) :)&lt;BR /&gt;&lt;BR /&gt;Of course, as other said, there is no&lt;BR /&gt;bullet-proof solution that work in all&lt;BR /&gt;environments. The magic in our jobs is&lt;BR /&gt;to adapt and listen!&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;VK2COT</description>
      <pubDate>Sun, 04 Jan 2009 02:46:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-swap-files-on-the-same-device/m-p/5147760#M453956</guid>
      <dc:creator>VK2COT</dc:creator>
      <dc:date>2009-01-04T02:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple swap files on the same device</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-swap-files-on-the-same-device/m-p/5147761#M453957</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;One important item I forgot to mention (that I teach in HP-UX courses).&lt;BR /&gt;&lt;BR /&gt;There is a significant difference in number of devices that could be used for swaps in HP-UX. Take a look at this kernel parameter:&lt;BR /&gt;&lt;BR /&gt;HP-UX 11.11, maximum value nswapdev is 25&lt;BR /&gt;&lt;BR /&gt;HP-UX 11.23, maximum value nswapdev is 25&lt;BR /&gt;&lt;BR /&gt;HP-UX 11.31, maximum value nswapdev is 1024&lt;BR /&gt;&lt;BR /&gt;If, for example, you need to set up 128 GB&lt;BR /&gt;of swap on HP-UX 11.23, you could not use 4&lt;BR /&gt;GB for primary swap and each additional LUN&lt;BR /&gt;(you would need 32 device-based swaps). So, primary swap of, say, 8 GB would be more appropriate (and hence, 8 GB for additional&lt;BR /&gt;LUNs).&lt;BR /&gt;&lt;BR /&gt;If you use HP-UX 11.31, having 32&lt;BR /&gt;device-based swaps is easy and fully supported.&lt;BR /&gt;&lt;BR /&gt;So, the moral of the story is: 4 GB for the primary swap needs to be taken with a grain&lt;BR /&gt;of salt. It depends on which version of the&lt;BR /&gt;HP-UX O/S is used too...&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;VK2COT</description>
      <pubDate>Mon, 05 Jan 2009 00:59:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-swap-files-on-the-same-device/m-p/5147761#M453957</guid>
      <dc:creator>VK2COT</dc:creator>
      <dc:date>2009-01-05T00:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple swap files on the same device</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-swap-files-on-the-same-device/m-p/5147762#M453958</link>
      <description>VK2COT - You make a valid point about only setting up swap one time, but setting up dozens of LUNs does not make much sense if we never end up swapping anyway.  Also, I have to consider that my recommendations can affect literally hundreds of systems.  The impact of such a recommendation can be major in terms of time required.&lt;BR /&gt;&lt;BR /&gt;Dennis - I may have inadvertently left out the fact that our goal is to use async IO and I think that is what requires the lockable memory.  Oracle will run without it.</description>
      <pubDate>Mon, 26 Jan 2009 18:24:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-swap-files-on-the-same-device/m-p/5147762#M453958</guid>
      <dc:creator>Ken Englander</dc:creator>
      <dc:date>2009-01-26T18:24:57Z</dc:date>
    </item>
  </channel>
</rss>

