<?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 Shared ?? swap?? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-swap/m-p/2952124#M116223</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am new to UNIX and this is not even one of my job duties. Don???t ask me but now I need to handle a UNIX (k200) box with Sybase on it. First thing I need to do is Sybase upgrade. I have some question about memory and swap. Total physical memory on my box is 512 MB.&lt;BR /&gt;&lt;BR /&gt;What is shared memory? &lt;BR /&gt;What is swap?&lt;BR /&gt;How do they (shared memory &amp;amp; swap) relate to each other?&lt;BR /&gt;How do they (shared memory &amp;amp; swap) relate to physical memory?&lt;BR /&gt;How do they (shared memory &amp;amp; swap) relate to Sybase database or any database?&lt;BR /&gt;&lt;BR /&gt;On my box shared memory is configured to 70MB and following is the output of swapinfo command:&lt;BR /&gt; &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       524288        0   524288    0%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;reserve       -  190596 -190596&lt;BR /&gt;memory   202724    34524   168200   17%&lt;BR /&gt;&lt;BR /&gt;Which memory Sybase uses? I don???t know whether is it shared memory or physical memory?  Probably Sybase uses shared memory. I want to allocate as much shared memory as I can. &lt;BR /&gt;&lt;BR /&gt;What should I do? Should I increase shared memory? If yes, do I need to increase swap too?&lt;BR /&gt;&lt;BR /&gt;By now you guys can figure out that I am lost. Please do help me. &lt;BR /&gt;&lt;BR /&gt;Really counting on your help guys.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;</description>
    <pubDate>Tue, 15 Apr 2003 21:55:01 GMT</pubDate>
    <dc:creator>Vivek_15</dc:creator>
    <dc:date>2003-04-15T21:55:01Z</dc:date>
    <item>
      <title>Shared ?? swap??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-swap/m-p/2952124#M116223</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am new to UNIX and this is not even one of my job duties. Don???t ask me but now I need to handle a UNIX (k200) box with Sybase on it. First thing I need to do is Sybase upgrade. I have some question about memory and swap. Total physical memory on my box is 512 MB.&lt;BR /&gt;&lt;BR /&gt;What is shared memory? &lt;BR /&gt;What is swap?&lt;BR /&gt;How do they (shared memory &amp;amp; swap) relate to each other?&lt;BR /&gt;How do they (shared memory &amp;amp; swap) relate to physical memory?&lt;BR /&gt;How do they (shared memory &amp;amp; swap) relate to Sybase database or any database?&lt;BR /&gt;&lt;BR /&gt;On my box shared memory is configured to 70MB and following is the output of swapinfo command:&lt;BR /&gt; &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       524288        0   524288    0%       0       -    1  /dev/vg00/lvol2&lt;BR /&gt;reserve       -  190596 -190596&lt;BR /&gt;memory   202724    34524   168200   17%&lt;BR /&gt;&lt;BR /&gt;Which memory Sybase uses? I don???t know whether is it shared memory or physical memory?  Probably Sybase uses shared memory. I want to allocate as much shared memory as I can. &lt;BR /&gt;&lt;BR /&gt;What should I do? Should I increase shared memory? If yes, do I need to increase swap too?&lt;BR /&gt;&lt;BR /&gt;By now you guys can figure out that I am lost. Please do help me. &lt;BR /&gt;&lt;BR /&gt;Really counting on your help guys.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Apr 2003 21:55:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-swap/m-p/2952124#M116223</guid>
      <dc:creator>Vivek_15</dc:creator>
      <dc:date>2003-04-15T21:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Shared ?? swap??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-swap/m-p/2952125#M116224</link>
      <description>Check this&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/hpux/onlinedocs/os/memwn1_4.pdf" target="_blank"&gt;http://docs.hp.com/hpux/onlinedocs/os/memwn1_4.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I am posting other also&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Zafar</description>
      <pubDate>Tue, 15 Apr 2003 22:05:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-swap/m-p/2952125#M116224</guid>
      <dc:creator>Zafar A. Mohammed_1</dc:creator>
      <dc:date>2003-04-15T22:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Shared ?? swap??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-swap/m-p/2952126#M116225</link>
      <description>Check this also&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/hpux/onlinedocs/939/KCParms/KCparam.ShMemParmsOverview.html" target="_blank"&gt;http://docs.hp.com/hpux/onlinedocs/939/KCParms/KCparam.ShMemParmsOverview.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Zafar</description>
      <pubDate>Tue, 15 Apr 2003 22:11:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-swap/m-p/2952126#M116225</guid>
      <dc:creator>Zafar A. Mohammed_1</dc:creator>
      <dc:date>2003-04-15T22:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Shared ?? swap??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-swap/m-p/2952127#M116226</link>
      <description>Thanks zafar,&lt;BR /&gt;&lt;BR /&gt;First link is quite too much for me. because i don't have that complicate problem with me. there is not much in second link.&lt;BR /&gt;&lt;BR /&gt;I still want to know that what are the realation between all three&lt;BR /&gt;&lt;BR /&gt;Physical memory ( in my case 512 MB)&lt;BR /&gt;Shared Memory ( I think 70 MB)&lt;BR /&gt;swap (524288 + 202724 kb) &lt;BR /&gt;&lt;BR /&gt;how do they restrict or help to each other?&lt;BR /&gt;&lt;BR /&gt;Can i configure the shared memory more than 512 MB or what is the max? how come swap looks like more than 512 MB (physical).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Please just explain me at zero level. i am sorry if i may sounds like stupid.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Please do help me.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 15 Apr 2003 22:42:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-swap/m-p/2952127#M116226</guid>
      <dc:creator>Vivek_15</dc:creator>
      <dc:date>2003-04-15T22:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Shared ?? swap??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-swap/m-p/2952128#M116227</link>
      <description>Hi Vivek,&lt;BR /&gt;&lt;BR /&gt;Lots of question....&lt;BR /&gt;&lt;BR /&gt;1) Shared memory is a area of address space that different processes can share. There are several benefits to this technique:&lt;BR /&gt;&lt;BR /&gt;You don't have multiple copies of the data taking up physical memory. &lt;BR /&gt;Processes can access a common data area, i.e. a database, allowing proper synchronisation of changes.&lt;BR /&gt;&lt;BR /&gt;2) Swap space is an area, typically on disk, that provides a backing store to main memory. If memory is almost full certain parts of processes memory regions can be stored here until the memory utilisation decreases.&lt;BR /&gt;&lt;BR /&gt;3) &amp;amp; 4) Most modern unix operating systems use a memory management technique called virtual memory. To go into this in any depth would take me hundred of lines I expect. The first few pages from this document should give you a good description:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/hpux/onlinedocs/5965-4641/5965-4641.html" target="_blank"&gt;http://docs.hp.com/hpux/onlinedocs/5965-4641/5965-4641.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The total amount of virtual memory on the system is the swap area + physical memory. There is no real correlation between shared memory and swap per-say.&lt;BR /&gt;&lt;BR /&gt;5) I don't know Sybase but i'd imagine, like all other DB products, it will use shared memory for the reasons in 1).&lt;BR /&gt;&lt;BR /&gt;The kernel parameter shmmax determines the maximum size of a shared memory segment. This should be equal or larger than your largest DB SGA. To see the shared memory allocation use the command:&lt;BR /&gt;&lt;BR /&gt;# ipcs -mob&lt;BR /&gt;&lt;BR /&gt;All processes that run need to reserve swap space in case any part of their memory regions need to be paged out. If this did not happen then the process would have to be killed if the swap space reached 100%. The more memory load you place on the system, or the more processes that run, you will need to increase swap space to increase the total amount of virtual memory. Processes will not be able to start without first reserving the required swap space, hence the reserve column in the swapinfo output. &lt;BR /&gt;&lt;BR /&gt;None of this is straightforward, although I have tried to make it as non-cryptic as possible. I hope it has helped a little.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;James.</description>
      <pubDate>Tue, 15 Apr 2003 22:45:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-swap/m-p/2952128#M116227</guid>
      <dc:creator>James Murtagh</dc:creator>
      <dc:date>2003-04-15T22:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Shared ?? swap??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-swap/m-p/2952129#M116228</link>
      <description>Shared memory is common memory used by related processes for high efficiency.  Sybase is one example.  All shared memory can be swapped out to a reserve area if need be.  Swap is the reserve area.  That's the relationship shared memory and swap.&lt;BR /&gt;&lt;BR /&gt;RAM is finite physical memory.  If the O/S runs out of physical memory it has to have a place to go for a temporary holding area.  This is swap and this is the relationship between swap and physical memory.&lt;BR /&gt;&lt;BR /&gt;Here is a nice quote and link about shared memory:&lt;BR /&gt;&lt;BR /&gt;"...Sharing a common memory space eliminates the need for copying or moving data to a separate location before it can be used by other processes, reducing processor time and overhead as well as memory consumption..."&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/cgi-bin/otsearch/getfile?id=/hpux/onlinedocs/939/KCParms/KCparam.ShMemParmsOverview.html&amp;amp;searchterms=memory%7cshared&amp;amp;queryid=20030415-184505" target="_blank"&gt;http://docs.hp.com/cgi-bin/otsearch/getfile?id=/hpux/onlinedocs/939/KCParms/KCparam.ShMemParmsOverview.html&amp;amp;searchterms=memory%7cshared&amp;amp;queryid=20030415-184505&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Here is a nice quote and link about swap:&lt;BR /&gt;&lt;BR /&gt;Swap space is an area on disk that temporarily holds a process memory image.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90672/B2355-90672_top.html&amp;amp;con=/hpux/onlinedocs/B2355-90672/00/00/60-con.html&amp;amp;toc=/hpux/onlinedocs/B2355-90672/00/00/60-toc.html&amp;amp;searchterms=swap&amp;amp;queryid=20030415-185345" target="_blank"&gt;http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90672/B2355-90672_top.html&amp;amp;con=/hpux/onlinedocs/B2355-90672/00/00/60-con.html&amp;amp;toc=/hpux/onlinedocs/B2355-90672/00/00/60-toc.html&amp;amp;searchterms=swap&amp;amp;queryid=20030415-185345&lt;/A&gt;</description>
      <pubDate>Wed, 16 Apr 2003 00:04:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-swap/m-p/2952129#M116228</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2003-04-16T00:04:42Z</dc:date>
    </item>
  </channel>
</rss>

