<?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: Memory allocation for Oracle database in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-allocation-for-oracle-database/m-p/3535846#M222289</link>
    <description>The "HP-UX error 12" is called the errno value, the Unix standard for reporting error conditions.&lt;BR /&gt; &lt;BR /&gt;from /usr/include/sys/errno.h:&lt;BR /&gt;   define       ENOMEM          12      /* Not enough core              */&lt;BR /&gt;&lt;BR /&gt;from man 2 errno:&lt;BR /&gt;      [ENOMEM]       Not enough space. &lt;BR /&gt; &lt;BR /&gt;During a system call such as exec(),                     brk(), fork(), or sbrk(), a program asks for more space than the system is able to supply.  This may not be a temporary condition; the maximum space size is a system parameter.  The error can also occur if there is not enough swap space during a fork().&lt;BR /&gt; &lt;BR /&gt;Now the hardware has nothing to do with memory managemnent and as I mentioned, you have an unlimited amount of RAM as long as you have lots of swap space. The first step is to temporarily add more swap space using swapon. Because you are using so much swap space already, even a relatively small increase in memory usage may run out of swap space. You are already at 200% RAM usage (2Gb of swap already in use).&lt;BR /&gt; &lt;BR /&gt;To see how badly the system is thrashing due to small RAM, use the vmstat command and look at the po (page out) column. 0-9 = OK, 10-99 = low memory, 100+ means severe memory shortage. There are only three fixes for excessive swapping (which means very slow performance):&lt;BR /&gt; &lt;BR /&gt;1. Reduce the size of the Oracle SGA to perhaps 200-400 megs and accept the slow response time especially for row insertions and temp file sorts,&lt;BR /&gt; &lt;BR /&gt;2. Reduce the number of users on the system by more than 1/2.&lt;BR /&gt; &lt;BR /&gt;3. Add 4Gb of additional RAM to eliminate swapping and provide room for growth.</description>
    <pubDate>Tue, 03 May 2005 07:10:40 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2005-05-03T07:10:40Z</dc:date>
    <item>
      <title>Memory allocation for Oracle database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-allocation-for-oracle-database/m-p/3535838#M222281</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I have a server running a HPUX 11.11 with 2 GB memory. This is a database server (Oracle 9i). How I know that all memory is available? How I allocate the 2GB memory for this server?&lt;BR /&gt;&lt;BR /&gt;There is a SAM report:&lt;BR /&gt;&lt;BR /&gt;Memory:&lt;BR /&gt;  Real active:       1322504.3 KB&lt;BR /&gt;  Virtual active:    1839271.7 KB&lt;BR /&gt;  Free Memory pages: 2706 at 4 KB/page&lt;BR /&gt;Swap Space:&lt;BR /&gt;  Used 2146 MB&lt;BR /&gt;  Free 2974 MB&lt;BR /&gt;&lt;BR /&gt;# dmesg | grep memory&lt;BR /&gt;&lt;BR /&gt;Memory Information:&lt;BR /&gt;    physical page size = 4096 bytes, logical page size = 4096 bytes&lt;BR /&gt;    Physical: 2097152 Kbytes, lockable: 1546392 Kbytes, available: 1782672 Kbyte&lt;BR /&gt;&lt;BR /&gt;# cat /stand/system&lt;BR /&gt;&lt;BR /&gt;STRMSGSZ        65535&lt;BR /&gt;dbc_max_pct     25&lt;BR /&gt;dnlc_hash_locks 512&lt;BR /&gt;max_thread_proc 256&lt;BR /&gt;maxdsiz         1073741824&lt;BR /&gt;maxdsiz_64bit   2147483648&lt;BR /&gt;maxssiz         134217728&lt;BR /&gt;maxssiz_64bit   1073741824&lt;BR /&gt;maxswapchunks   16384&lt;BR /&gt;maxtsiz         0X4000000&lt;BR /&gt;maxtsiz_64bit   0X40000000&lt;BR /&gt;maxuprc         ((NPROC*9)/10)&lt;BR /&gt;msgmni          (NPROC)&lt;BR /&gt;msgseg          32767&lt;BR /&gt;msgtql          (NPROC)&lt;BR /&gt;ncsize          ((8*NPROC+2048)+VX_NCSIZE)&lt;BR /&gt;nfile           (15*NPROC+2048)&lt;BR /&gt;nflocks         4096&lt;BR /&gt;ninode          (8*NPROC+2048)&lt;BR /&gt;nproc           4096&lt;BR /&gt;nstrpty         60&lt;BR /&gt;semmni          4096&lt;BR /&gt;semmns          (SEMMNI*2)&lt;BR /&gt;semmnu          (NPROC-4)&lt;BR /&gt;semvmx          32768&lt;BR /&gt;shmmax          (----space----)2147483648 &amp;lt;--- There is a space in this parameter.&lt;BR /&gt;shmmni          512&lt;BR /&gt;shmseg          32&lt;BR /&gt;&lt;BR /&gt;This is SGA size:&lt;BR /&gt;&lt;BR /&gt;SQL&amp;gt; show sga&lt;BR /&gt;&lt;BR /&gt;Total System Global Area 1261400032 bytes&lt;BR /&gt;Fixed Size                   737248 bytes&lt;BR /&gt;Variable Size             838860800 bytes&lt;BR /&gt;Database Buffers          419430400 bytes&lt;BR /&gt;Redo Buffers                2371584 bytes&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Augusto Cesar&lt;BR /&gt;(from Brazil)&lt;BR /&gt;</description>
      <pubDate>Mon, 02 May 2005 10:15:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-allocation-for-oracle-database/m-p/3535838#M222281</guid>
      <dc:creator>Augusto César</dc:creator>
      <dc:date>2005-05-02T10:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Memory allocation for Oracle database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-allocation-for-oracle-database/m-p/3535839#M222282</link>
      <description>a few more tools would be useful.&lt;BR /&gt;&lt;BR /&gt;glance/gpm and its memory report would help.&lt;BR /&gt;&lt;BR /&gt;swapinfo -tam&lt;BR /&gt;&lt;BR /&gt;would help.&lt;BR /&gt;&lt;BR /&gt;the tools I'm attaching will let you measure use over time.&lt;BR /&gt;&lt;BR /&gt;Now that being said, I've run oracle on 2 GB 11.11 machines and resource use can get a little tight. &lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 02 May 2005 10:23:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-allocation-for-oracle-database/m-p/3535839#M222282</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-05-02T10:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Memory allocation for Oracle database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-allocation-for-oracle-database/m-p/3535840#M222283</link>
      <description>Hi Steven,&lt;BR /&gt;&lt;BR /&gt;Thanks for your answer and for the script, but I know little HPUX. I just know how I configure the HPUX for it use all physical memory (2GB).&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Augusto</description>
      <pubDate>Mon, 02 May 2005 11:40:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-allocation-for-oracle-database/m-p/3535840#M222283</guid>
      <dc:creator>Augusto César</dc:creator>
      <dc:date>2005-05-02T11:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Memory allocation for Oracle database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-allocation-for-oracle-database/m-p/3535841#M222284</link>
      <description>Hi Augusto,&lt;BR /&gt;&lt;BR /&gt;Sorry, but the question is a little unclear.&lt;BR /&gt;&lt;BR /&gt;HP-UX will allocate all the physical memory and its allocated swap as virtual memory.&lt;BR /&gt;&lt;BR /&gt;Kernel parameters (such as dbc_max_pct) can influence how this is allocated, as can application settings (like SGA size).&lt;BR /&gt;&lt;BR /&gt;Do you have a problem running the database?  If you do, then post the symptoms.  The commands that Steven suggested will provide output that will help give a picture of the system state as it is now.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Tony.</description>
      <pubDate>Mon, 02 May 2005 12:11:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-allocation-for-oracle-database/m-p/3535841#M222284</guid>
      <dc:creator>Tony Scully_2</dc:creator>
      <dc:date>2005-05-02T12:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Memory allocation for Oracle database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-allocation-for-oracle-database/m-p/3535842#M222285</link>
      <description>Hi Tony,&lt;BR /&gt;&lt;BR /&gt;Sorry if my question is not clear. The problem is: the server have 2GB physical memory and the database has approximately 1,2-1,3 GB. I use the QuestÂ´s Spotlight for database management and its alerts that the HPUX only has 10-25 MB free. Its possible? Therefore my question is how I configure the HPUX for it uses efficiently the memory. &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Augusto&lt;BR /&gt;&lt;BR /&gt;PS: Sorry my Englis</description>
      <pubDate>Mon, 02 May 2005 13:47:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-allocation-for-oracle-database/m-p/3535842#M222285</guid>
      <dc:creator>Augusto César</dc:creator>
      <dc:date>2005-05-02T13:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Memory allocation for Oracle database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-allocation-for-oracle-database/m-p/3535843#M222286</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I think you want to use more memory, right?&lt;BR /&gt;In your case, lower dbc_max_pct to 10 (normally, itÂ´s enough, as oracle doesnÂ´t use hp-uxÂ´s buffercache) and rise db_cache_size and shared_pool_size, but, pay attention to some other issues: if you use dedicated server, each connection that you have in the database will use aproximately 80 MB (processes oracleSID), so you have to calculate the space needed for this processes befores rising the values above.&lt;BR /&gt;&lt;BR /&gt;Rega</description>
      <pubDate>Mon, 02 May 2005 15:34:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-allocation-for-oracle-database/m-p/3535843#M222286</guid>
      <dc:creator>Julio Yamawaki</dc:creator>
      <dc:date>2005-05-02T15:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: Memory allocation for Oracle database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-allocation-for-oracle-database/m-p/3535844#M222287</link>
      <description>The problem is not with HP-UX. All applications will get whatever memory the programs request. Most applications (other than HP's Glance program) give very poor information about free memory. HP-UX is a virtual memory system so you can run programs that need 10Gb of RAM in your 2Gb system. Whatever can't fit into RAM will be moved to the swap area. This create a very large delay for all your programs, but that's what you should expect.&lt;BR /&gt; &lt;BR /&gt;In your case, you have SGA set to 1.26Gb out of your RAM (more than 50%). SAM shows that 50% of your swap space is already used so you have exceeded your memory by 2Gb already. So your report from the measurement tool is very misleading...you are using 200% or your RAM. If you run more processes, you'll just get more pageouts (swapping).&lt;BR /&gt; &lt;BR /&gt;So your RAM size is way too small for this configuration of Oracle. The minimum should be 4Gb, but 6Gb is strongly recommended. Some of the Oracle SGA can't fit into RAM all the time so many of the benefits of a large SGA are being removed by swapping.</description>
      <pubDate>Mon, 02 May 2005 20:46:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-allocation-for-oracle-database/m-p/3535844#M222287</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-05-02T20:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: Memory allocation for Oracle database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-allocation-for-oracle-database/m-p/3535845#M222288</link>
      <description>Hi Julio,&lt;BR /&gt;&lt;BR /&gt;I will decrease the number of dedicated server, maybe solve a little.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hi Bill,&lt;BR /&gt;&lt;BR /&gt;Lately this message shows to me:&lt;BR /&gt;&lt;BR /&gt;"ORA-27102: out of memory&lt;BR /&gt; HP-UX Error: 12: Not enough space&lt;BR /&gt; Additional information: 103&lt;BR /&gt; Additional information: 33554432&lt;BR /&gt; Additional information: 14833656 "&lt;BR /&gt;&lt;BR /&gt;This problem, according the Metalink, is "not enough space usually means there is not enough real memory or swap space. In this case, it seems hardware has some problem freeing the memory". Solution: "Apparently reboot the box fix the problem". Therefore my initial question about the memory configuration.&lt;BR /&gt;A little question: Whats means the "avaliable" in this command?&lt;BR /&gt;&lt;BR /&gt;# dmesg | grep memory&lt;BR /&gt;&lt;BR /&gt;Memory Information:&lt;BR /&gt;physical page size = 4096 bytes, logical page size = 4096 bytes&lt;BR /&gt;Physical: 2097152 Kbytes, lockable: 1546392 Kbytes, available: 1782672 Kbyte&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Augusto.&lt;BR /&gt;</description>
      <pubDate>Tue, 03 May 2005 06:38:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-allocation-for-oracle-database/m-p/3535845#M222288</guid>
      <dc:creator>Augusto César</dc:creator>
      <dc:date>2005-05-03T06:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Memory allocation for Oracle database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-allocation-for-oracle-database/m-p/3535846#M222289</link>
      <description>The "HP-UX error 12" is called the errno value, the Unix standard for reporting error conditions.&lt;BR /&gt; &lt;BR /&gt;from /usr/include/sys/errno.h:&lt;BR /&gt;   define       ENOMEM          12      /* Not enough core              */&lt;BR /&gt;&lt;BR /&gt;from man 2 errno:&lt;BR /&gt;      [ENOMEM]       Not enough space. &lt;BR /&gt; &lt;BR /&gt;During a system call such as exec(),                     brk(), fork(), or sbrk(), a program asks for more space than the system is able to supply.  This may not be a temporary condition; the maximum space size is a system parameter.  The error can also occur if there is not enough swap space during a fork().&lt;BR /&gt; &lt;BR /&gt;Now the hardware has nothing to do with memory managemnent and as I mentioned, you have an unlimited amount of RAM as long as you have lots of swap space. The first step is to temporarily add more swap space using swapon. Because you are using so much swap space already, even a relatively small increase in memory usage may run out of swap space. You are already at 200% RAM usage (2Gb of swap already in use).&lt;BR /&gt; &lt;BR /&gt;To see how badly the system is thrashing due to small RAM, use the vmstat command and look at the po (page out) column. 0-9 = OK, 10-99 = low memory, 100+ means severe memory shortage. There are only three fixes for excessive swapping (which means very slow performance):&lt;BR /&gt; &lt;BR /&gt;1. Reduce the size of the Oracle SGA to perhaps 200-400 megs and accept the slow response time especially for row insertions and temp file sorts,&lt;BR /&gt; &lt;BR /&gt;2. Reduce the number of users on the system by more than 1/2.&lt;BR /&gt; &lt;BR /&gt;3. Add 4Gb of additional RAM to eliminate swapping and provide room for growth.</description>
      <pubDate>Tue, 03 May 2005 07:10:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-allocation-for-oracle-database/m-p/3535846#M222289</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-05-03T07:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Memory allocation for Oracle database</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-allocation-for-oracle-database/m-p/3535847#M222290</link>
      <description>How size of your Database? I think you should reduce the SGA size...&lt;BR /&gt;As you said, you have 2GB of RAM but in your Oracle's SGA, it nearly 1.1 GB.....&lt;BR /&gt;Need to discuss with DBA administrator.&lt;BR /&gt;&lt;BR /&gt;Regard,&lt;BR /&gt;HoangChiCong</description>
      <pubDate>Tue, 03 May 2005 23:11:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-allocation-for-oracle-database/m-p/3535847#M222290</guid>
      <dc:creator>Hoang Chi Cong_1</dc:creator>
      <dc:date>2005-05-03T23:11:01Z</dc:date>
    </item>
  </channel>
</rss>

