01-22-2003
Quote:
Originally posted by shibz
#ps -e -o pid,vsz,rss grep 21941 gives an output like,
PID VSZ RSS
21941 136168 116408
and the #pmap -x 21941 give the summary as ,
(Kb) (Resident) (Shared) (Private )
total Kb 135424 122320 16736 105584
Any clue why the memory info is different...
Thanks in advance...
When you posted this question, I tried the commands on a sample process on a 2.6 machine and both commands agreed. So I just moved on since I didn't have anything useful to say.
But I just downloaded memtool and the docs say:
Quote:
Solaris 2.6, 7 and 8 has a bug in pmap -x which will over-estimate the amount of private memory for a process. The MemTool pmem command should be used in place of pmap -x for accurate memory analysis.
I found the instructions to obtain memtool
here. Click on "cool tools"; then "memtool". Also on that page, click on "pmap -x", where you will find:
Quote:
The following pmap bugids are resolved in Solaris 9:
4182712 pmap -x values for MAP_SHARED (text) segments is incorrect
4311136 pmap -x always displays ISM segments as 'private'
4449780 pmap -x doesn't provide reasonable output sometimes
4462729 pmap should also show swap reservation information
4419353 /proc//xmap extension
So you may be right about pmap.
10 More Discussions You Might Find Interesting
1. Programming
how can i monitor usages of CPU, Memory, Hard disk etc. under SUN Solaries
through a c program or java program
i want to store that data into database so i can show it graphically
thanks in advance (2 Replies)
Discussion started by: Gajanad Bihani
2 Replies
2. Programming
Please tell me solaris functions/api for getting following information
1- Function that tells how much memory used by current process
2- Function that tells how much memory used by all running processes
3- Function that tells how much CPU is used by current process
4- Function that tells how... (1 Reply)
Discussion started by: mansoorulhaq
1 Replies
3. HP-UX
Refer from title:
How can i get memory used or anything that can show memory from sar file
example on solaris:-
we can use sar with option to show memory used at time that sar crontab run.
on HP-UX, it not has option to see memory used. But i think it may be have some parameter or some... (1 Reply)
Discussion started by: panithat
1 Replies
4. UNIX for Dummies Questions & Answers
Hi All,
Does anyone know what the best commands in the UNIX command line are for obtaining this info:
current CPU usage
memory usage
virtual memory usage
preferably with date and time parameters too?
thanks
ocelot (4 Replies)
Discussion started by: ocelot
4 Replies
5. HP-UX
how can I find cpu usage memory usage swap usage and
I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times
my final destination is monitor process
logical volume usage above X % and number of Logical voluage above
can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies
6. Solaris
Hi,
I want to monitor the current cpu usage, monitor usage , disk I/o and network utlization for solaris using SNMP.
I want the oids for above tasks.
can you please tell me that
Thank you (2 Replies)
Discussion started by: S_venkatesh
2 Replies
7. Solaris
Hi,
I'm running a multi-process software system on a Solaris 8 machine. When I monitor the memory usage, I see that the free memory is dropping rapidly, but I can't detect a process that uses this memory.
I'm using "top" to get the free memory and the memory usage of processes.
Thanks. (3 Replies)
Discussion started by: gewurtz
3 Replies
8. AIX
How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies
9. UNIX for Dummies Questions & Answers
Hi all,
Can you please tell me the command, with which one can know the amount of space a specific directory has used.
df -k . ---> Displays, the amount of space allocated, and used for a directory.
du -k <dir name> - gives me the memory used of all the files inside <dir>
But i... (2 Replies)
Discussion started by: abhisheksunkari
2 Replies
10. UNIX for Dummies Questions & Answers
Let's say i have 20 users logged on Server. How can I know how much memory percent used each of them is using with system time in each user? (2 Replies)
Discussion started by: roy1912
2 Replies
PMAP(1) User Commands PMAP(1)
NAME
pmap - report memory map of a process
SYNOPSIS
pmap [options] pid [...]
DESCRIPTION
The pmap command reports the memory map of a process or processes.
OPTIONS
-x, --extended
Show the extended format.
-d, --device
Show the device format.
-q, --quiet
Do not display some header or footer lines.
-A, --range low,high
Limit results to the given range to low and high address range. Notice that the low and high arguments are single string separated
with comma.
-X Show even more details than the -x option. WARNING: format changes according to /proc/PID/smaps
-XX Show everything the kernel provides
-p, --show-path
Show full path to files in the mapping column
-c, --read-rc
Read the default configuration
-C, --read-rc-from file
Read the configuration from file
-n, --create-rc
Create new default configuration
-N, --create-rc-to file
Create new configuration to file
-h, --help
Display help text and exit.
-V, --version
Display version information and exit.
EXIT STATUS
0 Success.
1 Failure.
42 Did not find all processes asked for.
SEE ALSO
ps(1), pgrep(1)
STANDARDS
No standards apply, but pmap looks an awful lot like a SunOS command.
REPORTING BUGS
Please send bug reports to <procps@freelists.org>
procps-ng September 2012 PMAP(1)