In article <slrndonaea.2rn.usenet@zappy.catbert.org>, Dan Foster <usenet@evilphb.org> wrote:
> You may also have insufficient swap space configured?
>
> What does 'lsps -a' say?
>
> My first test failed almost at 1 GB (but not at that exact point)
> because I ran out of paging (swap) space even though I had *plenty* of
> physical memory left.
>
> You can tell if this happens because programs gets killed and 'errpt'
> mentions VMM messages and software program abnormally terminated, with
> 'errpt -a|more' mentioning due to system running out of paging space.
I tested your program on one of my 64-bit AIX 5.2 machines. The test
aborted early because I did not have enough paging space configured.
But I did verify that with your compile flags and no -bmaxdata option, I
was able to hit 1.6 GB allocated before test failed.
I am sure it would have had passed 2 GB if I had more paging space set
up and if I had used very large program support with right bmaxdata
flags. I already had ulimit set to unlimited.
I can't set up more paging space on that machine because it is a
production server, and I do not have a similar sized test machine.
But basically, you need to look at three more things: ulimit, paging
space, and -bmaxdata option.
1. You probably need at least 8 GB of paging space configured.
# smitty lvm
Paging Space
Add Another Paging Space
<pick which VG to put PS on>
<enter number of LPs for PS>
<go down to 'Start using this paging space NOW?', press tab to set to yes>
<go down to 'Use this paging space each time the system is RESTARTED?',
press tab to set to yes>
<press enter to execute>
<press esc-0 or F10 when done with SMIT>
# lsps -a
2. Read this IBM page on very large program support:
http://publib16.boulder.ibm.com/pser...rg_support.htm
It applies to AIX 5.1 and later.
It suggests using: -bmaxdata:0xD0000000/dsa instead of what you used
before. That turns on *Very* large program support. Large Program
Support is NOT enough because that is limited to 2 GB RAM.
3. Adjust ulimit (see other post on how to do it).
-Dan