Operating System - HP-UX
1827713 Members
2743 Online
109967 Solutions
New Discussion

Re: Enabling quadrant 3 for 32 bit IPF binary

 
SOLVED
Go to solution
Anupam Anshu_1
Valued Contributor

Enabling quadrant 3 for 32 bit IPF binary

How do we enable quadrant 3 for a 32 bit binary on IPF.

chatr +q3p doesn't work on IPF.

From some documets we found that:

1. The binary should be complied with -N option.
2. Then "chatr +as " should be used to enable quadrant 3.

But after compiling with -N option, I am not able to execute the binary at all.

From aCC manpage:
------------------------------------
-N Cause the output file from the linker to be marked as
unshareable. For details and system defaults, see
ld(1).
------------------------------------

Is the binary becoming unshareable as the manpage of aCC suggests?

It would be really great if you could let us know "How to enable quadrant 3 for 32 bit IPF binary".

Thanks and regards,

Anshu

PS: Basically I am looking for "chatr +q3p " on IPF.
4 REPLIES 4
Bill Hassell
Honored Contributor
Solution

Re: Enabling quadrant 3 for 32 bit IPF binary

Try this when you compile:

cc -Ae -Wl,-N -o mallocmax mallocmax.c
chatr +q3p enable mallocmax

and your executable should work OK. However, there is another add ress model(I am assuming you're running 11.23) called MPAS which gives you access to all the 32bit quadrants and allows as much as 3800 megs for local storage:

cc -Ae -Wl,+as,mpas -o mallocmax mallocmax.c

That program will also work quite well for maximum RAM usage in the limited 32bit model. Note that maxdsiz will have to be 3900megs (and maxdsiz_64 larger than maxdsiz).


Bill Hassell, sysadmin
rick jones
Honored Contributor

Re: Enabling quadrant 3 for 32 bit IPF binary

Of course, if you are running into 32-bit limits, it might be a very good time to start working on a 64-bit migration. There are various tools and options to the compiler available to you to get started on that...
there is no rest for the wicked yet the virtuous have no pillows
Anupam Anshu_1
Valued Contributor

Re: Enabling quadrant 3 for 32 bit IPF binary

I believe the following solves the issue:

aCC -Ae -N -Wl,+as,mpas -o mallocmax mallocmax.C

Thanks a lot for your help.

Cheers,

Anupam Anshu
Anupam Anshu_1
Valued Contributor

Re: Enabling quadrant 3 for 32 bit IPF binary

Thanks "Bill Hassell", it helped me solve the issue.

Cheers,

Anshu