proc/buddyinfo
memory zone is 3, DMA, Normal HighMem
0 1 2 3 4 5 6 7 8 9 10
Node 0, zone DMA 6 3 6 5 3 3 4 1 2 0 1
Node 0, zone Normal 1 14 13 12 22 17 4 5 2 1 67
Node 0, zone HighMem 43 10 0 0 0 0 0 0 0 0 0
proc/slabinfo
You have to use kmem_cache_alloc(), kmem_cache_free() to alloc memory from slab allocator
proc/slabinfo
You have to use kmem_cache_alloc(), kmem_cache_free() to alloc memory from slab allocator
slabinfo - version: 2.1
# name <active_objs> <num_objs> <objsize> <objperslab> <pagesperslab> : tunables <limit> <batchcount> <sharedfactor> : slabdata <active_slabs> <num_slabs> <sharedavail>
isofs_inode_cache 20 20 384 10 1 : tunables 0 0 0 : slabdata 2 2 0
kmalloc_dma-512 8 8 512 8 1 : tunables 0 0 0 : slabdata 1 1 0
RAWv6 11 11 704 11 2 : tunables 0 0 0 : slabdata 1 1 0
UDPLITEv6 0 0 704 11 2 : tunables 0 0 0 : slabdata 0 0 0
UDPv6 11 11 704 11 2 : tunables 0 0 0 : slabdata 1 1 0
tw_sock_TCPv6 0 0 256 16 1 : tunables 0 0 0 : slabdata 0 0 0
TCPv6 12 12 1344 12 4 : tunables 0 0 0 : slabdata 1 1 0
flow_cache 0 0 80 51 1 : tunables 0 0 0 : slabdata 0 0 0
/proc/self --> symbolic link of current running process
vi maps
vi maps
00110000-00263000 r-xp 00000000 08:01 1180112 /lib/tls/i686/cmov/libc-2.11.1.so
00263000-00264000 ---p 00153000 08:01 1180112 /lib/tls/i686/cmov/libc-2.11.1.so
00264000-00266000 r--p 00153000 08:01 1180112 /lib/tls/i686/cmov/libc-2.11.1.so
00266000-00267000 rw-p 00155000 08:01 1180112 /lib/tls/i686/cmov/libc-2.11.1.so
08048000-0810b000 r-xp 00000000 08:01 655366 /bin/bash --> Text Section
0810b000-0810c000 r--p 000c2000 08:01 655366 /bin/bash
0810c000-08111000 rw-p 000c3000 08:01 655366 /bin/bash --> Data section
08111000-08116000 rw-p 00000000 00:00 0
0823e000-08290000 rw-p 00000000 00:00 0 [heap]
Lib Section
OOM (Out Of Memory) --> we call OOM Killer
OOM Killer compare oom_score and kill the process has the greatest value of oom_score
/proc/meminfo : memory information
Lib Section
b7715000-b7716000 r--p 00000000 08:01 925615 /usr/lib/locale/ko_KR.utf8/LC_MEASUREMENT
b7716000-b771d000 r--s 00000000 08:01 924305 /usr/lib/gconv/gconv-modules.cache
b771d000-b771e000 r--p 00000000 08:01 937502 /usr/lib/locale/ko_KR.utf8/LC_IDENTIFICATION
b771e000-b7720000 rw-p 00000000 00:00 0
bfcb0000-bfcc5000 rw-p 00000000 00:00 0 [stack] ---> Stack Section
OOM Killer compare oom_score and kill the process has the greatest value of oom_score
/proc/meminfo : memory information
MemTotal: 1026504 kB
MemFree: 181424 kB
Buffers: 103708 kB
Cached: 401840 kB
SwapCached: 0 kB
Active: 489852 kB
Inactive: 295552 kB
Active(anon): 289780 kB
Inactive(anon): 16 kB
Active(file): 200072 kB
/proc/swaps
/proc/swaps
Filename Type Size Used Priority
/dev/sda5 partition 942072 0 -1