异常大的 /proc/kcore 文件——这是什么意思?

Ale*_*wer 9 backup proc

我不得不中止我的系统备份,因为它在文件上停滞不前/proc/kcore。我检查了它的大小,嗯,文件很大。检查谷歌,似乎许多其他人也有大得离谱的 kcore 文件。

我有三个问题:

  1. 我应该关心 kcore 的大小吗?
  2. 如果是这样,我怎样才能减小它的大小?
  3. 有什么理由备份 /proc/ 目录吗?

mur*_*uru 7

第一件事:/proc是一个虚拟文件系统。不要备份它。它的内容在磁盘上不存在。

来自man 5 proc

/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.
Run Code Online (Sandbox Code Playgroud)

所以,如果kcore它很小,我会有点担心。

你如何减少它的大小?减少你的内存。