Mar 26, 2014

Unix as IDE. Memmory profiling

cat /proc/meminfo
#MemTotal:       16350248 kB
#MemFree:        14502016 kB
#Buffers:          133516 kB
#Cached:           738584 kB
#..
#Mapped:           106640 kB
#Shmem:             78664 kB
#Slab:             101588 kB
#SReclaimable:      81208 kB
#SUnreclaim:        20380 kB
#KernelStack:        3000 kB
#PageTables:        18616 kB
#..
cat /proc/iomem 
#00000000-00000fff : reserved
#00001000-0009d7ff : System RAM
#0009d800-0009ffff : reserved
#000a0000-000bffff : PCI Bus 0000:00
#000c0000-000c7fff : Video ROM
#...
cat /proc/pagetypeinfo
#Page block order: 9
#Pages per block:  512
#
# ...
#
#Number of blocks type     Unmovable  Reclaimable      Movable      Reserve      Isolate 
#Node 0, zone      DMA            1            0            6            1            0 
#Node 0, zone    DMA32            8           32         1742            2            0 
#Node 0, zone   Normal          222           94         6069            2            0

cat /proc/buddyinfo 
#Node 0, zone      DMA      0      0      0      0      0      0      0      0      1      1      3 
#Node 0, zone    DMA32   1734   1323    616    162     59     32     10     13      7      3    749 
#Node 0, zone   Normal   2712   3081   1760    654    320    144     51     27     27     12   2728

sudo cat /proc/slabinfo
sudo slabtop
Shared Memory Segments
ipcs -m
#------ Shared Memory Segments --------
#key        shmid      owner      perms      bytes      nattch     status      
#0x00000000 0          alex       600        393216     2          dest         
#0x00000000 360449     alex       600        4194304    2          dest         
#0x00000000 196610     alex       600        2097152    2          dest         
#0x00000000 229379     alex       600        1048576    2          dest
ipcs -m -p
#
#------ Shared Memory Creator/Last-op PIDs --------
#shmid      owner      cpid       lpid      
#0          alex       3613       4418      
#360449     alex       3993       4418      
#196610     alex       3317       4418      
#229379     alex       3613       4418

No comments: