LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 3184|回复: 5

/proc/kcore 怎么有5G那么大?

[复制链接]
发表于 2007-12-14 08:57:05 | 显示全部楼层 |阅读模式
刚发现/proc/kcore这个大文件,竟占用了5G大的空间,怎么回事?可以动它吗?
谢谢!
PS:以前的帖子说它实际上不占用空间,可是我这里它确实占用了那么大的空间,/ partition 下的几乎所有空间都被它占用了.
发表于 2007-12-14 09:59:37 | 显示全部楼层
/proc/kcore怎么可能占用你的/下面的空间?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-12-14 10:54:23 | 显示全部楼层
Post by walkerxk;1795501
/proc/kcore怎么可能占用你的/下面的空间?


当然在了,它位于根分区下。
回复 支持 反对

使用道具 举报

发表于 2007-12-14 11:49:54 | 显示全部楼层
  1. mount | grep proc
复制代码

应该是会占用内存,而且这个数字应该不准确,你机器上没有5G内存吧。
回复 支持 反对

使用道具 举报

发表于 2007-12-14 16:13:30 | 显示全部楼层
9494,你自己mount一下看看,proc是什么分区类型的哦。。他是由内核来虚拟的文件系统,并不占用你的物理设备
回复 支持 反对

使用道具 举报

发表于 2007-12-15 20:02:22 | 显示全部楼层
google了一下:
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.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表