Académique Documents
Professionnel Documents
Culture Documents
CONFIG_PAGE_OFFSET
cat /proc/vc-mem
Raspberry PI
BUS address
PAGE_OFFSET
high_memory
PKMAP_BSE
PAGE_OFFSET - 1
MODULES_VADDR
MODULES_END
TASK_SIZE - 1
External fragm: Space wasted outside of allocated memory blocks. Small pieces of memory exist among the allocated blocks. However, a larger allocation request cannot be fulfilled, because the free pieces are not physically contiguous. Internal fragm: Space wasted inside of allocated memory blocks because of restriction on the allowed sizes of allocated blocks.
SLAB ALLOCATOR.
cat /proc/slabinfo output:
size-4194304 size-2097152 size-1048576 size-524288 size-262144 size-131072 size-65536 size-32768 size-16384 size-8192 size-4096 size-2048 size-1024 size-512 size-256 size-192 size-128 size-96 size-64 size-32 kmem_cache 0 0 4194304 1 1024 : tunables 1 1 0 : slabdata 0 0 0 0 0 2097152 1 512 : tunables 1 1 0 : slabdata 0 0 0 0 0 1048576 1 256 : tunables 1 1 0 : slabdata 0 0 0 0 0 524288 1 128 : tunables 1 1 0 : slabdata 0 0 0 0 0 262144 1 64 : tunables 1 1 0 : slabdata 0 0 0 0 0 131072 1 32 : tunables 8 4 0 : slabdata 0 0 0 0 0 65536 1 16 : tunables 8 4 0 : slabdata 0 0 0 8 8 32768 1 8 : tunables 8 4 0 : slabdata 8 8 0 1 1 16384 1 4 : tunables 8 4 0 : slabdata 1 1 0 8 8 8192 1 2 : tunables 8 4 0 : slabdata 8 8 0 25 25 4096 1 1 : tunables 24 12 0 : slabdata 25 25 0 24 24 2048 2 1 : tunables 24 12 0 : slabdata 12 12 0 84 84 1024 4 1 : tunables 54 27 0 : slabdata 21 21 0 376 376 512 8 1 : tunables 54 27 0 : slabdata 47 47 0 210 210 256 15 1 : tunables 120 60 0 : slabdata 14 14 0 141 160 192 20 1 : tunables 120 60 0 : slabdata 8 8 0 570 570 128 30 1 : tunables 120 60 0 : slabdata 19 19 0 996 1000 96 40 1 : tunables 120 60 0 : slabdata 25 25 0 882 1062 64 59 1 : tunables 120 60 0 : slabdata 18 18 0 3337 3390 32 113 1 : tunables 120 60 0 : slabdata 30 30 0 135 160 96 40 1 : tunables 120 60 0 : slabdata 4 4 0
SLAB ALLOCATOR.
SLAB ALLOCATOR.
KMALLOC ALLOCATOR.
KMALLOC ALLOCATOR.
KMALLOC ALLOCATOR.
VMALLOC ALLOCATOR.
/PROC INFORMATION
- /proc/iomem - /proc/meminfo = see /Documentation/filesystems/proc.txt - /proc/zoneinfo = see page_alloc.c - /proc/vmstat/ - /proc/buddyinfo = debug External fragmentation. Lots of order 0 pages mean lots of fragmentation, (kernel can't even find two adjacent aligned pages to merge into an 8kb order 1 chunk) - /proc/sys/vm/* = see Documentation/sysctl/vm.txt - /proc/pagetypeinfo = goal same as of buddyinfo (debug External fragmentation) - /proc/vmallocinfo = see /Documentation/filesystems/proc.txt (iotable_init, ioremap, vmalloc) - /proc/vc-mem/