1、查看文件动态依赖库
readelf -d 工具
查看共享库
静态编译出来的工具提示如下:
扩展:readelf -h查看elf文件头信息,
2、查看内存页空闲状态
root@www:~# cat /proc/pagetypeinfo
Page block order: 13
Pages per block: 8192
Free pages count per migrate type at order 0 1 2 3 4 5 6 7 8 9 10 11 12 13
Node 0, zone Normal, type Unmovable 450 436 176 121 49 17 2 0 0 0 0 0 0 0
Node 0, zone Normal, type Movable 2099 1589 1062 642 300 60 8 2 0 0 0 0 0 0
Node 0, zone Normal, type Reclaimable 1 1 149 52 13 1 0 0 0 0 0 0 0 0
Node 0, zone Normal, type HighAtomic 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Node 0, zone Normal, type CMA 45 45 45 42 44 42 39 32 19 4 0 0 0 0
Node 0, zone Normal, type Isolate 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Number of blocks type Unmovable Movable Reclaimable HighAtomic CMA Isolate
Node 0, zone Normal 2 4 0 0 2 0
root@www:~# cat /proc/buddyinfo
Node 0, zone Normal 4848 2266 1308 537 180 48 5 0 0 0 0 0 0 0
echo 3 > /proc/sys/vm/drop_caches 释放缓存
3、