- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Memory Allocation Error
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
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
01-19-2005 04:08 AM
01-19-2005 04:08 AM
Memory Allocation Error
I appreciate very much for your response.
Best regards
A. Tjandra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2005 04:18 AM
01-19-2005 04:18 AM
Re: Memory Allocation Error
The first one is the error message which I'm not sure about but will look up.
The second one has to do with only half of the swap space being used.
In general a good bit of swap space is used simply reserving swap space in case swapping is necessary.
This is probably the half of the "used" swap space that you are seeing.
I will research the "Memory ALlocation error" further.
Where did you see this error ?
Was it in syslog or was it during bootup or somewhere else ?
Best regards,
Oz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2005 04:22 AM
01-19-2005 04:22 AM
Re: Memory Allocation Error
Please do give more details as to where you saw this error message.
Looking around for possible solutions, it could be something as basic as a memory related kernel parameter (such as maxdsiz) or it could be something specific to an application.
Best regards,
Kent M. Ostby
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2005 04:27 AM
01-19-2005 04:27 AM
Re: Memory Allocation Error
You can also monitor swap with vmstat or the utility scripts I am attaching.
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
01-19-2005 04:31 AM
01-19-2005 04:31 AM
Re: Memory Allocation Error
The "Memory Allocation error" poped up while I was running a CAM application software.
Best regards
Andrianto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2005 07:45 AM
01-19-2005 07:45 AM
Re: Memory Allocation Error
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2005 07:01 PM
01-19-2005 07:01 PM
Re: Memory Allocation Error
this is the current setting for maxdsiz=3221225472 (default value). How much is this number in megs? Your suggestion for setting to the largest value for a 32bit program about 1750 megs, what number should I set? Another word how to calculate the number I have to set for maxdsiz?
Best regards
Andrianto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2005 12:00 AM
01-20-2005 12:00 AM
Re: Memory Allocation Error
> this is the current setting for maxdsiz=3221225472 (default value).
Actually, this is not the default value at all. The default has historically been 0x4000000 (that's a hex number, translated to decimal = 67108864 or 67 megs using 1000*1000=1meg, 64 megs using 1024*1024). For 11.11 (latest versions), the value is now defaulted to 0x10000000 or 268435456, about 256megs using 1024 for Kbyes.
> How much is this number in megs?
The unit of measure is bytes, so your 3221225472 value is 3,221,225,472 or 3Gb. No 32bit program can reach this value due to addressing limits. It's OK to leave the value--it is simply a fence to limit possible runaway programs from using too much memory.
> Your suggestion for setting to the largest value for a 32bit program about 1750 megs, what number should I set? Another word how to calculate the number I have to set for maxdsiz?
1750megs is 1750000000. SAM knows about hex numbers as well as decimal--I prefer decimal although it's unfortunate that the unit of measure is bytes...the numbers are so long that it's easy to add or lose a digit.
Now all of this is just background because your current limit is 3Gb, more than enough for any 32bit program. As mentioned, your program is running out of memory due to addressing limitations, not lack of RAM. With 4Gb of swap space, you have more than enough swap for any reasonable quantity of programs to run at the same time.
What happens after you reboot? Do you get the same error with the same inputs to the program? Check if your program is using shared memory with the command:
ipcs -bmp
This shows chunks of RAM that have been allocated by the program with a process ID number (PID) of CPID, and the last process to attach to this segment of RAM is LPID. When your process starts running, see if ipcs -bmp shows an entry with CPID = your_program. If true, then your program does indeed use shared memory and you'll need to increase the kernel parameter shmmax from the default of 64megs (0x4000000 just like maxdsiz) to perhaps 256 megs (change 0x4000000 to 256000000). The kernel will be rebuilt and rebooted. Now try your program again. Ideally, the author/mfr of the program can tell you these details too.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2005 12:53 AM
01-20-2005 12:53 AM
Re: Memory Allocation Error
Since that parm is set so high, could you post your kernel parms current values...it might also add to the picture..
Rgrds,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2005 02:58 AM
01-20-2005 02:58 AM
Re: Memory Allocation Error
attached are the kernal params.
Regards
Andrianto