关于linux下文件/proc/kcore

这俩天在机器上搜大于2G的文件

find / -size +2000000k

居然给搜出了一个“大”文件:/proc/kcore

赶紧找文档看

我的理解大致就是:

这个文件/proc/kcore的大小就是机器的物理内存

他是系统内存的一个map

他并不真正占物理内存那么大的硬盘空间

等等

unixguide.org上讲:

 

What Is /proc/kcore?
None of the files in /proc are really there–they’re all, "pretend,"
files made up by the kernel, to give you information about the system
and don’t take up any hard disk space.

/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.

 

Discussion Area - Leave a Comment




*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word