Discussion:
Determine memory usage with kdb
(too old to reply)
Hajo Ehlers
19 years ago
Permalink
Hi,
after i had to restart a aix 5.1 machine due to exessive memory usage i
would like to analyse the dump to find out which programs used to much
of memory.

If i using the thread command i see pretty much amount of data. But
which is really related to the memory usage of the program ? Or is
there a simple way to get this information

tia
Hajo
Kamal R. Prasad
19 years ago
Permalink
Post by Hajo Ehlers
Hi,
after i had to restart a aix 5.1 machine due to exessive memory usage i
would like to analyse the dump to find out which programs used to much
of memory.
If i using the thread command i see pretty much amount of data. But
which is really related to the memory usage of the program ? Or is
there a simple way to get this information
you can use the p command inside kdb to print the process table.
It will provide you with all of the information that ps command does
-and that includes VM usage. Basically, anything you can get hold of
from userspace via syscalls/cmds -can be obtained from the kernel
debugger.

regards
-kamal
Post by Hajo Ehlers
tia
Hajo
Tao Chen
19 years ago
Permalink
...
Almost true :-)
1. Dump doesn't have anything that had been paged out at the time of
dumping.
2. Before 'svmon' kdb subcommand is intruduced (not in AIX 5.1 IIRC),
figuring out who used how much memory was much more challenging than
using the 'svmon' user command on a live system.

Tao

Loading...