Sorry for responding here but a reply to the email I received did not work.
Thanks for getting back to me. This is confusing because I saw the first response briefly on my phone but then it disappeared and it wasn’t in my email. I’m crossing my fingers that just by replying here you will get it.
On Tue, Mar 12, 2024 at 1:14 AM John Kearney <community-noreply@qnx.com> wrote:
The available user address space on a 32bit system on qnx depends on the architecture.
see QNX® Software Development Platform 6.6 <br/> QNX® SDK for Apps and Media 1.1 <br/> QNX® Wireless Framework 1.0
In one case it is a very vanilla x86 16Gig box. That’s at the customer site running 6.6. I’ve been using an 8Gig VM I created using VMware with QNX 6.5. The results we’ve seen have been identical.
so having 2/3.5g available user address space doesn’t mean you are able to do a contiguous virtual address space allocation of that size.
My understanding is that using page tables you can have a continuous virtual address space even if the real memory is not continuous. Even if that is not so, when we run a program, there is nothing above 4Gig so it should be possible to have close to 4Gig allocated.
There is space also used for the stack, heap, executable, libs, etc…
Max stack space (I saw this today) is 1/2 a meg. The executables are relatively tiny. I don’t know about the libs, but It’s hard to imagine that there is close to 1gig being used. There are also read only system areas that are virtualized into each address space, but again I don’t think that is all that much. When using malloc() I think that adds to the heap, but these programs are using almost no data space.
There’s one more obvious issue which may be the whole problem. Why can’t setrlimit() set the max size above 2Gig? It’s not clear to me that this limit is the real limit but I’d like to adjust it to see if it is. One option in setrlimit() is RLIMIT_INFINITY which means unlimited. I’ve tried to set this and it doesn’t work. setrlimit() doesn’t return an error either.
BTW, thank you so much for responding. I feel like I’m out in the cold here. There’s no going through the QNX front door. They seem quite uninterested these days in anything but the current version which now seems to be 8.0.
Mitchell