06-11-2010
In Linux you can get information on what memory segments are loaded where for a process in /proc/self/maps .
10 More Discussions You Might Find Interesting
1. Programming
anybody knows how to view loaded shared libraries by running processes in linux enviornment? any command or tool ?
thanks a lot (3 Replies)
Discussion started by: princelinux
3 Replies
2. Programming
I need to create a shared library to access an in memory DB. The DB is not huge, but big enough to make it cumbersome to carry around in every single process using the shared library. Luckily, it is pretty static information, so I don't need to worry much about synchronizing the data between... (12 Replies)
Discussion started by: DreamWarrior
12 Replies
3. UNIX for Advanced & Expert Users
I am trying to install a scientific program onto my mac and when i try and execute it this error comes up and i cant find any literature on the net to fix it...
dyld: Library not loaded: /usr/local/lib/libgfortran.2.dylib
Referenced from:... (4 Replies)
Discussion started by: olifu02
4 Replies
4. AIX
I have two envoirmets(Envoirment A and Envoirment B) running on same server(AIX vesion 5.3).Both have different groups.I am facing a strange problem.Shared objects of one envoirment (Envoirment A)are getting loaded into the second(Envoirment B).So the servers that have dependency on shared objects... (2 Replies)
Discussion started by: nitin@tcs
2 Replies
5. Programming
I am writing a shared library in Linux (but compatible with other UNIXes) and I want to allow multiple instances to share a piece of memory -- 1 byte is enough. What's the "best" way to do this? I want to optimize for speed and portability.
Obviously, I'll have to worry about mutual exclusion. (0 Replies)
Discussion started by: otheus
0 Replies
6. Solaris
Hi,
Im working on Solaris 9 on SPARC-32 bit running on an Ultra-80, and I have to find out the following:-
1. Total Physical Memory in the system(total RAM).
2. Available Physical Memory(i.e. RAM Usage)
3. Total (Logical) Memory in the system
4. Available (Logical) Memory.
I know... (4 Replies)
Discussion started by: 0ktalmagik
4 Replies
7. Solaris
Is it possible to restrict physical memory in solaris zone with zone.max-locked-memory just like we can do with rcapd ? I do not want to used rcapd (1 Reply)
Discussion started by: fugitive
1 Replies
8. AIX
Hello guys, I have a trouble when running an application in AIX, I've compiled and the
LIBRARY_PATH seems ok, but I get the following message:
rtld: 0712-001 Symbol __pthread was referenced
from module main_app(), but a runtime definition
of the symbol was not found
ldd... (4 Replies)
Discussion started by: edgarvm
4 Replies
9. AIX
Hi,
I have a problem about loaded shared libraries. I'm issuing ‘procldd' for a process and AIX shows me the loaded shared libraries. I'm collecting these libraries and counting their size. They were 350MB. After this, I'm issuing ‘ps vx' and I'm seeing that the process takes 130MB from AIX's... (1 Reply)
Discussion started by: jhatzics
1 Replies
10. Programming
Hello.
I am new to this forum and I would like to ask for advice about low level POSIX programming.
I have to implement a POSIX compliant C shared library.
A file will have some variables and the shared library will have some functions which need those variables.
There is one special... (5 Replies)
Discussion started by: iamjag
5 Replies
LEARN ABOUT HPUX
dlgetmodinfo
dlgetmodinfo(3C) dlgetmodinfo(3C)
NAME
dlgetmodinfo() - retrieve information about a loaded module (program or shared library)
SYNOPSIS
[flag... ] file ... [library] ...
Multithread Usage
Thread safe in but not in
DESCRIPTION
is one of a family of routines that give the user direct access to the dynamic linking facilities. retrieves information about a load mod-
ule from an index specifying the placement of the load module in the dynamic loader's search list. Unlike can retrieve information about a
load module in another process. index of requests information about the dynamic loader. An index of requests information about the pro-
gram file itself. The routine fills the load_module_desc with information from the matching load module.
The desc, desc_size, read_tgt_mem, ident_parm, and load_map_parm parameters are identical to those for See dlmodinfo(3C).
RETURN VALUE
If successful, returns a handle for the shared library as defined by the return value from NULL is returned otherwise. The return values
are type-converted to
ERRORS
If fails, a subsequent call to returns one of the following values:
Cannot apply relocation in library.
Invalid address.
Invalid descriptor argument.
Invalid descriptor version.
Invalid load module index.
Out of memory.
failed in reading target memory.
failed on entry to or exit from
failed on exit from
failed on entry to
AUTHOR
was developed by HP.
SEE ALSO
System Tools
exec(2) System loader.
ld(1) Invokes the link editor.
Miscellaneous
a.out(4) Assembler, compiler, and linker output.
dlclose(3C) Unloads a shared library previously loaded by
dlerror(3C) Returns the last error message recorded by
dlerrno(3C) Returns an error code for the last error recorded by
dlget(3C) Returns information about a loaded module.
dlgetname(3C) Returns the name of the storage containing a load module.
dlopen(3C) Loads a shared library.
dlsym(3C) Gets the address of a symbol in a shared library.
dlmodinfo(3C) Retrieve information about a loaded module (program or shared library).
Texts and Tutorials
(See the option)
(See manuals(5) for ordering information)
dlgetmodinfo(3C)