- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HPUX error 12 - Not enough space
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
10-31-2001 07:11 AM
10-31-2001 07:11 AM
I have an N-Class HP-UX 11 64-bit server with 3Gb memory. When the Oracle SGA was recently increased from <1Gb to >1Gb I received the following error message in my Oracle logs:
SVRMGR> ORA-07306:sms1sg: shmget error, unable to get a shared memory segment.
HP-UX Error: 12: Not enough space.
The Oracle instance then failed to start. What is an Error 12 or where can I look to find it out for myself.
Thanks in advance,
Anthony.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2001 07:17 AM
10-31-2001 07:17 AM
Re: HPUX error 12 - Not enough space
Check in /usr/include/sys/errno.h; errno 12 is ENOMEM; you need to increase maxdsiz (maxdsiz_64bit for 64-bit apps). You also need to check shmmax.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2001 07:19 AM
10-31-2001 07:19 AM
Re: HPUX error 12 - Not enough space
it is clear that the problem is with the memory but you didnt send any more that like your params or your swap config .
i will advise you to change the params :
maxdsiz
you can increase it by * 2 .
also check to see what is the state of your swap , the swap shuold be * 2 the size of the memory .
if you computer is not ! an nfs server change the dbc_max_pct to 10
and the dbc_min_pct to 5 to increase the memory usage in your computer .
if you want to read on this params check this link : http://docs.hp.com//hpux/onlinedocs/os/KCparams.OverviewAll.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2001 07:20 AM
10-31-2001 07:20 AM
Re: HPUX error 12 - Not enough space
hope this helps ..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2001 07:29 AM
10-31-2001 07:29 AM
Re: HPUX error 12 - Not enough space
Error-12 points to 'maxdsiz' or swap. Don't forget to look at your swap utilization:
# swapinfo -tam
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2001 07:29 AM
10-31-2001 07:29 AM
Re: HPUX error 12 - Not enough space
Sys 12 error:
During execution of an exec routine, a program asked for more space than the system was able to supply. The error may also occur if the arrangement of text, data, and stack segments requires too many segmentation registers, or if there is not enough swap space during execution of the fork routine.
Rgds, Robin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2001 08:06 AM
10-31-2001 08:06 AM
Re: HPUX error 12 - Not enough space
We currently have 9Gb of swap. shmmax is currently set to 17Gb. If If the memory is 3Gb and swap is 9Gb, should shmmax not be set to 12Gb?
Thanks Again,
Anthony.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2001 08:13 AM
10-31-2001 08:13 AM
Re: HPUX error 12 - Not enough space
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2001 08:17 AM
10-31-2001 08:17 AM
Re: HPUX error 12 - Not enough space
Yoy can simply do a sysdef command. You can also go to SAM->Kernel Configuration->Configurable Parameters to see a fgew more that sysdef does not display plus some online help.
As for setting SHMMAX, it should be far less than even your 12GB; there has to be something leftover for programs, OS, data, and other such trivial things. Remember, if you have 12GB as shared memory (or even 9GB) you would be swapping like a madman. Reduce it to something like 2GB.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2001 08:22 AM
10-31-2001 08:22 AM
Re: HPUX error 12 - Not enough space
maxdsiz = 67108864
maxdsiz_64bit = 1073741824
shmmax = 17179869184
Should maxdsiz_64bit be increased or maxdsiz?
Anthony
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2001 08:26 AM
10-31-2001 08:26 AM
Re: HPUX error 12 - Not enough space
'maxdsiz' is for 32-bit processes. 'maxdsiz64' is for 64-bit processes. See here for min, max and defaults:
http://docs.hp.com/hpux/onlinedocs/os/KCparam.MaxDsiz.html
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2001 08:55 AM
10-31-2001 08:55 AM
Re: HPUX error 12 - Not enough space
Is this some kind of default value? If so, what effects could lowering it's value so dramatically have on the system?
Thanks Again,
Anthony.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2001 01:09 PM
10-31-2001 01:09 PM
SolutionJust want to say something about SHMMAX.
On Oracle systems this value is usually set to amount of physical memory. This value sets the larges allowable shared memory SEGMENT.
If Oracle instance requests a shared memory segment less than SHMMAX, the segment will be less (ie the requested size) if requested larger, you'll just get more segments.
In numbers:
If SHMMAX is set to 1 GB, and your SGA is 500MB, the shared memory segment is 500MB.
If your SGA is infact 2 GB, you will get 2 memory segments 1GB each. This requires more of SHMMNI and possibly som other resources as well (don't have my book at the moment), but your SGA and Oracle still works fine.
Setting SHMMAX to a value even bigger than physical mamory will not give any effect.
The main point is that your SGA sizes makes up the size of shared memory that is used, and should not exceed the amount of physical memory (if the SGA begins to page out, you're in trouble)
And because of the fact that the SGA must not page out, the swap that is set up is infact useless (not if you're running other applications at the same time) and that's a waste of diskspace if you have a multigigabyte memory server.
What can be done is to disable swap (don't have the setting; my notebook again!), but you should have fairly good control over your processes use of memory before doing this.
Sybase, on the other hand, grabs the total amount of shared memory set in SHMMAX! This has got many sysadmins (me!) into trouble when attempting to setup both Oracle and Sybase on the same system. Then you infact have to set the SHMMAX as low as the value Sybase needs, and thus ending up with the Oracle SGA quite fragmented. But it works!
Andreas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2006 06:28 PM
04-13-2006 06:28 PM
Re: HPUX error 12 - Not enough space
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2006 01:59 AM
04-14-2006 01:59 AM
Re: HPUX error 12 - Not enough space
To see the layout (and fragmentation) of shared memory, you can download shminfo from:
ftp://contrib:9unsupp8@hprc.external.hp.com/sysadmin/programs/shminfo/
Also use: ipcs -bmop
to look at the current segments. If a process was killed improperly, all shared memory segments created by that process will not be returned to the free memory area and cannot be reused (reboot required unless you are very knowledgeable about each segment).
Now 3Gb is a fairly small amount of RAM. Oracle can perform very well when SGA is large (depending on the number of users and activities) but 3Gb total RAM will reverse the advantage of a large SGA. Make sure that you turn off the dynamic buffer cache by setting the kernel parameter bufpages to something between 102400 and 204800 (400 to 800 megs). That will free up some memory for you.
You can add a lot more swap if Oracle is a 64bit version, but page out (swapping) is a severe performance impact, as much as 50:1 to 100:1 slowdown. If you have a 64bit version of Oracle, I would increase RAM to 6Gb.
Bill Hassell, sysadmin