The svmon command captures a snapshot of virtual memory, so it is useful for determining which processes, user programs, and segments are consuming the most real, virtual, and paging space memory.
To display the total real memory pages that are in use and free and the paging space pages that are in use and free.
# svmon -G
To display the processes using the most real memory
# svmon -Pu -t x |grep -p Pid|grep '^.*[0-9]'
where x is the top x no. of processes.
To display the processes using the most paging space
# svmon -gP -t x |grep -p Pid|grep '^.*[0-9]'
In the O/P the pgsp indicates the number of 4kb pages reserved or used in the paging space by this process. Inuse column indicates the total real memory pages used.
To find out the most utilized segments
# svmon –S –t 10
With the -S option, svmon sorts segments by memory usage and displays the
statistics for the top memory-usage segments.
The different segments are
1. Persistent - Used to manipulate JFS files and directories
2. Working - Used to implement data areas of processes and shared memory.
3. Client - Used to implement some virtual file systems such as CD ROM etc.
4. Mapping - Used to implement the mapping of files in memory.
5. Real memory map – Used to access I/O space from virtual address space.
Thanks
Tuesday, May 19, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment