AIX-specific memory issues?


 
Thread Tools Search this Thread
Operating Systems AIX AIX-specific memory issues?
# 1  
Old 09-03-2008
AIX-specific memory issues?

Hi,

Does anyone here write cross-platform applications to be run on different Unix variants?

For some reason, an application I'm working with, when being run on machines with similar specifications, I run into "cannot allocate" errors (St9bad_alloc) on AIX but not on other platforms. Is it a common happening?
Smilie

The application is written in C++, compiled with gcc with -maix64 on.

Thanks!
# 2  
Old 09-03-2008
Memory allocation and AIX .... a never ending story. Want some good reading? Try the following redbooks. Start with
IBM Redbooks | AIX 5L Porting Guide
and expand the information with
IBM Redbooks | Developing and Porting C and C++ Applications on AIX

Enjoy!
# 3  
Old 09-03-2008
Quote:
Originally Posted by shockneck
Memory allocation and AIX .... a never ending story. Want some good reading? Try the following redbooks. Start with
IBM Redbooks | AIX 5L Porting Guide
and expand the information with
IBM Redbooks | Developing and Porting C and C++ Applications on AIX

Enjoy!
Thanks!

Are you implying that memory allocation issues on AIX is commonplace even when the same compiler is used on the same application run on machines with roughly the same amount of physical memory and swap space?
# 4  
Old 09-03-2008
Thanks!

Are you implying that memory allocation issues are commonplace on AIX even if the same application is compiled with the same compiler and run on comparable hardware - the fact that it's run on AIX will introduce memory allocation issues if you're not careful?
# 5  
Old 09-03-2008
Not quite - it is just often described as different compared to other operating systems which allegedly all behave identical. So there seems to be a lack of information about the differences and if you search the internet you will probably find many threads related to this issue. Once you get used to the way it is handled by AIX there should not be any "commonplace" problem.
# 6  
Old 09-03-2008
Hmm, like shockneck i am no software developer, but i heard more than one programmer sigh when it came to AIX memory management. While i can't explain concisely where the problem is i got it there must be several and severe problems, otherwise the unisono reaction wouldnt have been like it was.

It is a pity that there are mostly sysadmins here and only very few programmers. Probably you won't get any better answers than these somewhat vague warnings here. Perhaps the Redbooks shockneck mentioned will contain some relevant information. I'd be glad if you could share your knowledge after reading here.

bakunin
# 7  
Old 09-03-2008
It seems I'll have to experiment more. Will share results.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Creating AIX LV VG and JFS2 issues?

Can someone please help me understand what it is I am doing incorrectly? I have 22 PVs (disks) assigned to a VG, the stats on the disks: # lspv hdisk1 PHYSICAL VOLUME: hdisk1 VOLUME GROUP: vg_usr1 PV IDENTIFIER: 0000150179158027 VG IDENTIFIER ... (3 Replies)
Discussion started by: c3rb3rus
3 Replies

2. AIX

AIX 6.1 Memory Performance issues

Good Day Everyone, Just wonder anyone has encounter AIX 6.1 Memory Performance issues ? What I have in my current scenario is we have 3 datastage servers (Segregate server and EE jobs - for those who know Datastage achitect) and 2 db servers(running HA to load balance 4 nodes partitions for... (3 Replies)
Discussion started by: ckwan
3 Replies

3. UNIX for Dummies Questions & Answers

AIX & DB2 paging issues

AIX & DB2 paging issues Hello I needs some help on AIX & DB2 paging issues. Recently a db2 query caused paging issues which then lead to memory problems and a server restart. Is there anyway of finding out what db2 queries were causing the problem.. Thanks in advance (2 Replies)
Discussion started by: nedkao
2 Replies

4. Programming

Write to a specific memory space.

Hello all. I need a simple way to write to a specific memory space (/dev/mem). In a bash script if possible. (I am using dd to read the changes) Thanks in advace. (4 Replies)
Discussion started by: King_Richee
4 Replies

5. BSD

Write to a specific memory space.

Hello all. I need a simple way to write to a specific memory space (/dev/mem). In a bash script if possible. (I am using dd to read the changes) Thanks in advace. (0 Replies)
Discussion started by: King_Richee
0 Replies

6. Linux

Memory issues iin CentOS release 5.3 (Final)

New to the forum. I am running CentOS release 5.3 (Final) and have run into a unique situation. I have been able to determine that we have a swap memory leak due to an issue with an asterisk server. This specific issue takes approximately 2-3 months for enough of the swap to to be used before... (1 Reply)
Discussion started by: g0neinsane
1 Replies

7. Solaris

Zones and memory resource control issues

Hi all, This is a cross-post from the Sun/Oracle forums (I would include the URL here, but the forum doesn't allow me), cos quite frankly, this forum seems to be more active... I am maintaining an in-house Sun/Oracle x86 server (x4275) running Solaris 10 with zones for testing and development... (10 Replies)
Discussion started by: boekhold
10 Replies

8. Shell Programming and Scripting

Find and replace a string a specific value in specific location in AIX

Hi, I have following samp.txt file in unix. samp.txt 01Roy2D3M000000 02Rad2D3M222222 . . . . 10Mik0A2M343443 Desired Output 01Roy2A3M000000 02Rad2A3M222222 . . (5 Replies)
Discussion started by: techmoris
5 Replies

9. AIX

AIX filter Issues

Hi, I want to print from AIX 5.3/6.1 using 'pr' preprocessing filter and 'PCL' print file type. Steps: 1. Smitty 2. Print Spooling 3. Create a print queue(remote->Generic) 4. change the attributes for that print queue. 5. Change print file type to PCL and... (1 Reply)
Discussion started by: meeraramanathan
1 Replies

10. AIX

AIX 5.3 Issues

We are planning to move to AIX 5.3 and we would like to know if someone has had any 'bad' experiences with it. We have a 32PE p690 Regatta and currently we are running the latest AIX 5.2 with the latest patches. Has anyone any interesting points to mention when transitioning to AXI 5.3? Is... (1 Reply)
Discussion started by: miket
1 Replies
Login or Register to Ask a Question