LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: gdxk

我的/proc下有个kcore文件很大,删除不了

[复制链接]
发表于 2005-12-20 12:50:52 | 显示全部楼层
是会变,现在四倍于内存了。
回复 支持 反对

使用道具 举报

发表于 2005-12-20 13:16:59 | 显示全部楼层
那它究竟存在何处,硬盘上?内存显然不会有那么大,即使有那么大也不会就放这个大家伙吧?最起码在系统运行的时候它存在吧,那又在哪儿呢?
回复 支持 反对

使用道具 举报

发表于 2005-12-20 13:21:29 | 显示全部楼层
/proc, /sys这些都是虚拟文件系统,不在磁盘上的,你如果有双linux的话,看看另一个不用的系统的/proc目录是不是空的。

但/proc/kcore的大小还是不明白。
/proc/kcore
              This file represents the physical memory of the  system  and  is
              stored  in the ELF core file format.  With this pseudo-file, and
              an unstripped kernel (/usr/src/linux/vmlinux) binary, GDB can be
              used to examine the current state of any kernel data structures.

              The total length of the file is  the  size  of  physical  memory
              (RAM) plus 4KB.

man中是这么写的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-20 14:46:30 | 显示全部楼层
Post by troll
是会变,现在四倍于内存了。



你的?四倍?2G?

更吓人,呵呵
回复 支持 反对

使用道具 举报

发表于 2005-12-20 15:00:15 | 显示全部楼层
一般不变大小。会变也真奇怪。不过怎么变都不占用空间的。
du -h /proc/kcore才是实际大小
回复 支持 反对

使用道具 举报

发表于 2005-12-20 15:13:19 | 显示全部楼层
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.
回复 支持 反对

使用道具 举报

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

本版积分规则

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