摘自一段原文解释:
/proc/kcore is like an "alias" for the memory in your computer. Its
size is the same as the amount of RAM you have, and if you read it as
a file, the kernel does memory reads.
其大致意识就是 kcore 相当于内存的别名,变相代表着内存,可以当做内存文件执行内存读取,其实通过不同的命令查看该文件所显示的大小也是不一致的,例如:
ls -lh /proc/kcore
du -hs /proc/kcore
你可以试试。
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…