Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Other *NIX Forums > AIX
User Name
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.


  Search this Thread
Old 01-21-2006, 03:30 AM   #1
Manoj Oleti
LQ Newbie
Registered: Dec 2005
Posts: 4

Rep: Reputation: 0
Exclamation exec() error on AIX 5L

Hi all,
I am Manoj from INDIA.
I've got a problem running a program
(compiled with vacpp compiler 32 bit support on AIX 5L pSeries machine with bmaxdata and bmaxstack set to maximum supported.)

It simply refuses to startup saying

exec(): 0509-036 Cannot load program ./StartFileReceiver_main_SO.out because of the following errors:
0509-026 System error: There is not enough memory available now.

There is no shortage of memory in the server(6GB RAM) and 9GB page space distributed on several paging devices on different volume groups. However there is one "uservg" volume group in which 3GB of paging space is there and only about 30% is being used even though the paging spaces are running to the brink in other vgs.

If any one can help me on this matter i'll very thankful.

Old 01-23-2006, 06:57 AM   #2
Registered: Nov 2002
Location: England
Distribution: Ubuntu 9.04
Posts: 631

Rep: Reputation: 30
You say that you have lots of memory, but if paging space is being heavily used then you don't have enough. It's possible you really need more than 6GB RAM, or perhaps something on the system is using more memory than it should.

I imagine the different in paging space use is that AIX will try to distribute paging space equally between the spaces so if one is bigger, it will be less full.

Looks to me like you do have a real memory problem : there are a number of tools with aix that can help you investigate that further (look for the AIX Performance and Tuning Guide).
Old 01-23-2006, 09:30 AM   #3
Manoj Oleti
LQ Newbie
Registered: Dec 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks Iain for your time. The problem narrowed down to the fact that there is no shortage in RAM or in page space because I tried to run it yesterday when the load is very less on the server(about 1 GB of free RAM and 6 GB of free page space).
However the program is running when it is lazy loaded ( with -blazy option) even when the system is under high loads. May be I need to think in another way.

Old 01-23-2006, 10:52 AM   #4
Mark Taylor
Registered: Apr 2004
Posts: 60

Rep: Reputation: 15
this is a maxdata issue ... AIX is working as desinged ..

see the following link for hints on how to circumvent this issue..

Mark Taylor
Old 02-01-2006, 03:13 AM   #5
Manoj Oleti
LQ Newbie
Registered: Dec 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the link Mark. It solved the problem.
It's not a maxdata issue but the program is trying to load more than 256 MB of shared memory objects into the global shared segment(segment 13).So it is failing to load.It is running when it is lazy loaded because those shared objects are privately getting loaded into data segments.

Old 02-02-2006, 12:18 AM   #6
Senior Member
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

Rep: Reputation: 120Reputation: 120
Lazy loaded or not, the shared libraries will still attempt to load into the shared segment. That is, if it is not full and if the library has the read other attibute set. The lazy option was just buying you more time until your MAXDATA limit was reached. Are your shared objects very large? You can always break them down into smaller chunks and put them all in an archive.

BTW: 64-bit solves the crappy 256MB shared segment limit.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
exec cmd=perl... work but exec cgi doenst crions Slackware 5 12-09-2005 01:17 PM
Error while trying to run exec method with rsh as arguement nedian123 Programming 0 12-18-2004 01:07 AM
MDK 9.1 Fatal Error in Stage 1: Exec Format Error Beano Mandriva 5 09-12-2004 04:04 PM
gcc error on aix 4.2.1 --> HELP! zepplin611 AIX 3 02-20-2004 10:51 AM
error in exec of stage2 trying to execute /usr/bin/runinstall2 Catherine Brett Linux - Newbie 0 07-11-2003 01:59 PM > Forums > Other *NIX Forums > AIX

All times are GMT -5. The time now is 06:58 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration