/docs/MyDocs

To get this branch, use:
bzr branch http://darksoft.org/webbzr/docs/MyDocs

« back to all changes in this revision

Viewing changes to Development/debugging/profiling/memory.txt

  • Committer: Suren A. Chilingaryan
  • Date: 2015-08-21 03:52:00 UTC
  • Revision ID: csa@suren.me-20150821035200-xu1zh22cqlk2omcq
Profiling

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
PS attributes
2
 
-------------
3
 
VSZ (     ) - Virtual Size (KB). 
4
 
RSS (VmRss) - Resident Size (KB).
5
 
 
6
 
ps -eo pid,ppid,rss,vsize,pcpu,pmem,cmd -ww --sort=pid
7
 
 
8
 
 
9
 
Includes
10
 
--------
11
 
Everything: 
12
 
 * common shared libraries.
13
 
 * shared segments.
14
 
 * mappings on /dev: For example, the X server, on a system with a 
15
 
 256MB graphics adapter, will map all that memory into its address space.
16
 
 * mmap'ed blocks
17
 
 
18
 
Obtaining Details
19
 
-----------------
20
 
pmap -d <pid> [ pmap <pid> ]
21
 
 * each shared library is listed twice; once for its code 
22
 
 segment and once for its data segment