- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Memory allocation for Oracle database
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2005 03:15 AM
05-02-2005 03:15 AM
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?
There is a SAM report:
Memory:
Real active: 1322504.3 KB
Virtual active: 1839271.7 KB
Free Memory pages: 2706 at 4 KB/page
Swap Space:
Used 2146 MB
Free 2974 MB
# dmesg | grep memory
Memory Information:
physical page size = 4096 bytes, logical page size = 4096 bytes
Physical: 2097152 Kbytes, lockable: 1546392 Kbytes, available: 1782672 Kbyte
# cat /stand/system
STRMSGSZ 65535
dbc_max_pct 25
dnlc_hash_locks 512
max_thread_proc 256
maxdsiz 1073741824
maxdsiz_64bit 2147483648
maxssiz 134217728
maxssiz_64bit 1073741824
maxswapchunks 16384
maxtsiz 0X4000000
maxtsiz_64bit 0X40000000
maxuprc ((NPROC*9)/10)
msgmni (NPROC)
msgseg 32767
msgtql (NPROC)
ncsize ((8*NPROC+2048)+VX_NCSIZE)
nfile (15*NPROC+2048)
nflocks 4096
ninode (8*NPROC+2048)
nproc 4096
nstrpty 60
semmni 4096
semmns (SEMMNI*2)
semmnu (NPROC-4)
semvmx 32768
shmmax (----space----)2147483648 <--- There is a space in this parameter.
shmmni 512
shmseg 32
This is SGA size:
SQL> show sga
Total System Global Area 1261400032 bytes
Fixed Size 737248 bytes
Variable Size 838860800 bytes
Database Buffers 419430400 bytes
Redo Buffers 2371584 bytes
Regards,
Augusto Cesar
(from Brazil)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2005 03:23 AM
05-02-2005 03:23 AM
Solutionglance/gpm and its memory report would help.
swapinfo -tam
would help.
the tools I'm attaching will let you measure use over time.
Now that being said, I've run oracle on 2 GB 11.11 machines and resource use can get a little tight.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2005 04:40 AM
05-02-2005 04:40 AM
Re: Memory allocation for Oracle database
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).
Regards
Augusto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2005 05:11 AM
05-02-2005 05:11 AM
Re: Memory allocation for Oracle database
Sorry, but the question is a little unclear.
HP-UX will allocate all the physical memory and its allocated swap as virtual memory.
Kernel parameters (such as dbc_max_pct) can influence how this is allocated, as can application settings (like SGA size).
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.
Hope this helps,
Tony.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2005 06:47 AM
05-02-2005 06:47 AM
Re: Memory allocation for Oracle database
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.
Regards,
Augusto
PS: Sorry my Englis
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2005 08:34 AM
05-02-2005 08:34 AM
Re: Memory allocation for Oracle database
I think you want to use more memory, right?
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.
Rega
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2005 01:46 PM
05-02-2005 01:46 PM
Re: Memory allocation for Oracle database
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).
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.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2005 11:38 PM
05-02-2005 11:38 PM
Re: Memory allocation for Oracle database
I will decrease the number of dedicated server, maybe solve a little.
Thanks.
Hi Bill,
Lately this message shows to me:
"ORA-27102: out of memory
HP-UX Error: 12: Not enough space
Additional information: 103
Additional information: 33554432
Additional information: 14833656 "
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.
A little question: Whats means the "avaliable" in this command?
# dmesg | grep memory
Memory Information:
physical page size = 4096 bytes, logical page size = 4096 bytes
Physical: 2097152 Kbytes, lockable: 1546392 Kbytes, available: 1782672 Kbyte
Thanks,
Augusto.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2005 12:10 AM
05-03-2005 12:10 AM
Re: Memory allocation for Oracle database
from /usr/include/sys/errno.h:
define ENOMEM 12 /* Not enough core */
from man 2 errno:
[ENOMEM] Not enough space.
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().
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).
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):
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,
2. Reduce the number of users on the system by more than 1/2.
3. Add 4Gb of additional RAM to eliminate swapping and provide room for growth.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2005 04:11 PM
05-03-2005 04:11 PM
Re: Memory allocation for Oracle database
As you said, you have 2GB of RAM but in your Oracle's SGA, it nearly 1.1 GB.....
Need to discuss with DBA administrator.
Regard,
HoangChiCong