LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices


Reply
  Search this Thread
Old 09-28-2005, 03:50 AM   #1
Patrick Bulteel
Member
 
Registered: Nov 2003
Location: United Kingdom
Distribution: Mandrake, RedHat, Suse, Ubuntu, Debian
Posts: 37

Rep: Reputation: 15
Question how to find what shared library is in memory


Hi,

I can run svmon -P <pid of process> to get an idea of how a process is using memory. What I'd like to know is if there's a way for me to find out what's in the private memory for a process.

I have a process that uses more memory than it should and it's probably because it's loading a shared object into private memory. This would be due to another process loading another object with the same name but different version into memory prior to this process. Therefore my process can't use the shared object that's already loaded in memory and instead it loads the object into it's private memory space.

I'd like to find out what file that is but I don't think svmon has that ability. At least I haven't been able to find it in the man pages or the parameters I pass to it.

Any ideas what else I can do?

Thanks,

-P
 
Old 09-28-2005, 04:51 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,340

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
"What I'd like to know is if there's a way for me to find out what's in the private memory for a process."

If you know the pid then you can map the memory used by a process with:

less /proc/<pid>/maps

whoops - this answer is for Linux. I don't know if it will work on AIX.

-------------------------------
Steve Stites

Last edited by jailbait; 09-28-2005 at 04:53 PM.
 
Old 10-23-2005, 06:45 PM   #3
avikosan
LQ Newbie
 
Registered: Jun 2003
Posts: 6

Rep: Reputation: 0
under user root
$> kdb

lke -l 32

or

lke -l64
 
Old 10-26-2005, 10:35 AM   #4
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
I use 'genkld' to see what's loaded in the shared segement and 'genld' to view by process.

If the shared library is being loaded private then either the read-other bit is not set on the shared object or the shared segment is full. On 32 bit AIX operating systems the maximum amount is 256megs fixed for the entire machine.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
is shared memory expandable in memory size? Thinking Programming 4 08-16-2005 09:57 AM
Where can I get every shared library at? Balkman Linux - General 2 08-28-2004 10:56 PM
help shared library jingle_mj Linux - Newbie 1 08-13-2004 04:36 PM
help shared library jingle_mj Programming 4 08-13-2004 04:13 AM
howto compile bin with my library using all-static and shared linked standart library stpg Programming 4 06-29-2004 04:20 AM

LinuxQuestions.org > Forums > Other *NIX Forums > AIX

All times are GMT -5. The time now is 03:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration