/proc/kcore...how to get rid of it?

/proc/kcore...how to get rid of it?

Post by Nizam Mustap » Tue, 28 Apr 1998 04:00:00



Hey guys...tried to compile my kernel(2.0.30) but when I boot my system with the kernel image (in a floppy) there was a infinite loop.  After booting it again with LILO, found there was a core dump(/proc/kcore).  The problem is I couldn't get rid of it even as root.  Can't even change mode.  The rest of the file in the directory is empty and can't get rid of any of them.  I wonder if any of you guys know what's goin on?  I'm quite baffled and don't know who to turn to.
During compilation everything was alright and there was no error messages.  Anyway thanks in advance to anybody who could give me a clue.

Nizam Mustapha
Curtin University of Technology
Western Australia.

 
 
 

/proc/kcore...how to get rid of it?

Post by Yves Bellefeuill » Tue, 28 Apr 1998 04:00:00



Quote:> After booting it again with LILO, found there was a core dump
> (/proc/kcore). The problem is I couldn't get rid of it even as root.

This is from the Linux FAQ:

Question 4.12.  I have a huge /proc/kcore !  Can I delete it ?

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 ask to read it as
a file the kernel does memory reads.

--
Yves Bellefeuille
Ottawa, Canada

Francais / English / Esperanto

 
 
 

/proc/kcore...how to get rid of it?

Post by pe.. » Tue, 28 Apr 1998 04:00:00



> Hey guys...tried to compile my kernel(2.0.30) but when I boot my system
> with the kernel image (in a floppy) there was a infinite loop.  After
> booting it again with LILO, found there was a core dump(/proc/kcore).  The
> problem is I couldn't get rid of it even as root.  Can't even change mode.
> The rest of the file in the directory is empty and can't get rid of any of
> them.  I wonder if any of you guys know what's goin on?  I'm quite baffled
> and don't know who to turn to.
> During compilation everything was alright and there was no error messages.
> Anyway thanks in advance to anybody who could give me a clue.

Please use less than 78 chars per line (sorry, just to obvious when trying
to reply).

/proc/kcore is not a core dump but the a pseudo file. It doesn't use any
real space (no file within /proc uses any disk space) and is a kind of image
of the memory of your computer. This is used to debug the kernel.

The /proc file system generally gives you access to info about the system.
Try to cat one of those 0 Byte files ... somehow they grow and shrink again
in an instance ;-)
               ^^^ Note this one

For more info about the proc fs, try `man 5 proc'.

   Peter
--
   ---------------------------------------------------------------------

   Throughout  this  HOWTO, a  manual  entry  is simply referred to as a
   man page, regardless of actual length and without  sexist  intention.
                                              [The Linux Man-Page-Howto]

 
 
 

1. /proc/kcore getting to 100MB

Hi,
  /proc/kcore is getting bigger and bigger.  What does it do?  Can I just
delete it?  My root filesystem is getting full.  Thanks!!

- roxy.
--
* Roxy K. Lo                                                   o         *
* 2511 Dana St. Apt B1                                      \__/]        *
* Berkeley, CA 94704                                        TT <T        *
* 510-845-6739                                             --------      *

2. upgrading to pl14

3. /proc/kcore vs. /proc/meminfo

4. PADO timeouts on adsl

5. 16Mb kcore file in /proc

6. network eth0 errors

7. Crash with Ftape, X11R6, & /proc/kcore

8. find and grep script

9. How to control /proc/kcore ?

10. /proc/kcore

11. RFC: /proc/kcore

12. What is the file Kcore in /proc

13. Big "kcore" file in my /proc dir