- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- memory cannot be extended in EXEC_MAGIC mode
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
11-07-2005 12:12 AM
11-07-2005 12:12 AM
memory cannot be extended in EXEC_MAGIC mode
My test code just looks like this:
vector
b.reserve(100000000);
cout << b.size() << ":" << b.capacity() << endl;
vector
c.reserve(100000000);
cout << c.size() << ":" << c.capacity() << endl;
vector
d.reserve(100000000);
cout << d.size() << ":" << d.capacity() << endl;
Each vector instance's memory is nearly 390M.
I compiled the source with:
%aCC -Wl,-N testmem.cpp -o testmem
And chatr it:
%chatr testmem
testmem:
normal executable
But while I runned my test program, core dumped.
What's wrong?
Thanks a lot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2005 01:16 AM
11-07-2005 01:16 AM
Re: memory cannot be extended in EXEC_MAGIC mode
then uses chatr +q3p enable
chatr daw.run
daw.run:
shared executable
shared library dynamic path search:
SHLIB_PATH enabled first
embedded path disabled second Not Defined
shared library list:
dynamic /usr/lib/librpcsoc.1
dynamic /usr/lib/libnsl.1
dynamic /usr/lib/libc.2
shared library binding:
deferred
global hash table disabled
plabel caching disabled
global hash array size:1103
global hash array nbuckets:3
shared vtable support disabled
explicit unloading enabled
static branch prediction disabled
executable from stack: D (default)
kernel assisted branch prediction enabled
lazy swap allocation disabled
text segment locking disabled
data segment locking disabled
third quadrant private data space disabled
fourth quadrant private data space disabled
third quadrant global data space disabled
data page size: D (default)
instruction page size: D (default)
nulptr references disabled
shared library private mapping disabled
shared library text merging disabled
file daw.run
daw.run: PA-RISC1.1 shared executable dynamically linked -not stripped
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2005 01:05 PM
11-07-2005 01:05 PM
Re: memory cannot be extended in EXEC_MAGIC mode
Thanks Derek.
"+q3p", "+q4p" can make the 3nd, 4th quadrant as private data space. I think it only can be used in SHMEM_MAGIC, and only 32-bit kernels supported. Is it right?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2005 01:40 PM
11-07-2005 01:40 PM
Re: memory cannot be extended in EXEC_MAGIC mode
No, SHMEM_MAGIC refers to a separate dataspace where there are some simularities but you can grab 3600 megs of local data with a 32bit program. I have attached a simple program that runs on 10.20 and higher, which can be compiled in 5 different ways and obtain 900, 1700, 2700, 3600 megs for a 32bit program and essentially unlimited RAM when compiled in 64bit mode. The 32bit program runs on 32 and 64bit systems, but the ability of +q3p and +q4p tro function depends on patches and HP-UX rev. See the program code for comments.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2005 02:11 PM
11-07-2005 02:11 PM