- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ld: out of memory
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2006 04:17 AM
12-07-2006 04:17 AM
ld: out of memory
Developers use the native HP linker /usr/ccs/bin/ld to link objects on an HP-UX 11.11 server (RP8400). When its size in memory (VSZ) reaches 2GB, it fails and the error message 'out of memory' is printed. Note that the amount of free available memory and swap when the error occurs is OK.
VSZ PID PPID COMMAND
1941968 25597 25592 /usr/ccs/bin/ld -o
../../../bin/HP-UX11_64/SingleThread/Release
VSZ PID PPID COMMAND
1941968 25597 25592 /usr/ccs/bin/ld -o
../../../bin/HP-UX11_64/SingleThread/Release
VSZ PID PPID COMMAND
1941968 25597 25592 /usr/ccs/bin/ld -o
../../../bin/HP-UX11_64/SingleThread/Release
VSZ PID PPID COMMAND -> !! process defunct !!
VSZ PID PPID COMMAND
The following actions didn't solve the issue:
- Apply ld patch PHSS_33033
- tune kernel parameters maxdsize, masssize and maxtsize to the max allowed value for 32 bits (respectively: 4294963200, 401604608, 1073741824)
- chatr +q3p /usr/ccs/bin/ld
For information:
$ file /usr/ccs/bin/ld
/usr/ccs/bin/ld: PA-RISC1.1 shared executable dynamically linked
$ what /softs/C++Compiler/bin/aCC
/softs/C++Compiler/bin/aCC:
$Revision: 92453-07 linker linker crt0.o B.11.30 020412 $
HP aC++ B3910B A.03.39
HP aC++ B3910B A.03.33 Language Support Library
Can someone explain and give a solution ?
Many thanks in advance for your help.
Rgds,
Sabrina
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2006 04:42 AM
12-07-2006 04:42 AM
Re: ld: out of memory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2006 04:48 AM
12-07-2006 04:48 AM
Re: ld: out of memory
I would point out that if your developers are using cc +O4 or LDOPTS that include linker optimisation, you can run out of 32 bit memory space for a large program regardless of what your settings are. Check the compiler and linker options and if necessary, re-link without linker optimisations.
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2006 04:04 PM
12-07-2006 04:04 PM
Re: ld: out of memory
You can't. You must recompile without +O4.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2006 08:35 PM
12-07-2006 08:35 PM
Re: ld: out of memory
Apparently the pb seems to come from ld_32bits as developpers just confirmed that it works fine on a SLES9 server with ld_64bits:
SLES9> file /usr/bin/ld
/usr/bin/ld: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.4.1, dynamically linked (uses shared libs), stripped
I would like to install it but where to find it ? That is the question...
Rgds,
Sabrina
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2006 10:10 PM
12-07-2006 10:10 PM
Re: ld: out of memory
Then you need to investigate what Steve and I said to make sure the process in question isn't ucomp, instead of ld. (Are you compiling with +O4, or +I/+P?) ld may do an exec so the name isn't changed. If it really is ld, you may want to look at the -T option.
>Apparently the pb seems to come from ld_32bits as developers just confirmed that it works fine on a SLES9 server with ld_64bits:
/usr/bin/ld: ELF 64-bit LSB executable, AMD x86-64,
This is meaningless since this is X86-64, not PA-RISC.
>I would like to install it but where to find it
If you really need a 64 bit linker, you'll have to go to IPF.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2006 11:10 PM
12-12-2006 11:10 PM
Re: ld: out of memory
Notes:
- The data seg size must be set properly by ulimit (in our case 3GB or more).
- ld64 is NOT a 64bit binary as we could think, and HP cannot provide us with a 64bit ld binary.
The kernel parameters maxdsize, masssize and maxtsize are respectively 3221225472, 83570688 and 268435456. I only increased maxdsize from 2GB to 3GB.
As enabling the 3rd quadrant private data space didn't seem to be regular behaviour for me I searched a 64 bit ld but in vain... the HP support told me I couldn't get any.
Thx to those who have replied.
Rgds,
Sabrina