/proc/kcore


[root@b proc]# ls -lh /proc/kcore
-r-------- 1 root root 128T Sep 29 09:39 /proc/kcore
[root@b proc]# du -hs /proc/kcore
0 /proc/kcore

linux - /proc/kcore文件特别大,感觉很不正常,有人能解释一下么? - SegmentFault 思否 https://segmentfault.com/q/1010000008703708

摘自一段原文解释:
/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

原文地址:https://www.cnblogs.com/rsapaper/p/9722048.html