GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- making shared library to be shared
Operating System - HP-UX
1844070
Members
3226
Online
110227
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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-26-2002 12:35 AM
12-26-2002 12:35 AM
Hello,
I have an application which uses quite large number of hand-made shared libraries.
When I run several processes of the application I found, through the glance tool, each processes map shared libraries onto their private memory area. (glance->Process Memory Region->"MEMMAP/Priv")
How can I make shared libraries loaded onto shared area?
I would appreciate any advice. Thanks in advance.
----------------------------------------------
- I don't load libraries calling system calls explicitly, I just compile the executable with make option -L/lib_dir -lname.
-env info:
HP-UX 11.00
aCC 3.31
-Someone told me about a command called 'pxdb', might be doing something, but I could not tell how to de-pxdb since 'man pxdb' gives me no result...
-An advice about where (which document) to look into would be also great.
Sato@JFITS
I have an application which uses quite large number of hand-made shared libraries.
When I run several processes of the application I found, through the glance tool, each processes map shared libraries onto their private memory area. (glance->Process Memory Region->"MEMMAP/Priv")
How can I make shared libraries loaded onto shared area?
I would appreciate any advice. Thanks in advance.
----------------------------------------------
- I don't load libraries calling system calls explicitly, I just compile the executable with make option -L/lib_dir -lname.
-env info:
HP-UX 11.00
aCC 3.31
-Someone told me about a command called 'pxdb', might be doing something, but I could not tell how to de-pxdb since 'man pxdb' gives me no result...
-An advice about where (which document) to look into would be also great.
Sato@JFITS
takeshi
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2002 12:42 PM
12-26-2002 12:42 PM
Solution
Each shared library consists of as many as three regions. There is a region for text, a region for initialized data, and a region for uninitialized data (or BSS). Only the text region can be mapped as shared. The data regions must be private to each process. You are probably seeing data regions in the glance output. The text area can be mapped private to allow a debugger to set breakpoints. That will happen when a process is started by a debugger or by using the "pxdb -s on" or newer "chatr +debug enable" settings. You can turn that off with "pxdb -s off" or "chatr +debug disable". The chatr feature is only present in chatr from fairly recent "linker and loader" patches.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2002 08:45 PM
12-26-2002 08:45 PM
Re: making shared library to be shared
Thank you, Mike.
By doint 'pxdb -s disable' I could load shared libraries onto shared area.
Sorted!
Sato
By doint 'pxdb -s disable' I could load shared libraries onto shared area.
Sorted!
Sato
takeshi
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP