1819818 Members
3225 Online
109607 Solutions
New Discussion юеВ

kcore file on RedHat 7.2

 
B S_1
Occasional Advisor

kcore file on RedHat 7.2

Hello,
I have a kcore file under
/proc with 9 GB and still growing.
The Filesystem shows suddenly "100% used" and
i can't find big log files.

Any Idea.

Thank you in advance for any help.

Best Regards. Dietmar
geht nicht, gibts nicht!
5 REPLIES 5
Hendra_3
Occasional Advisor

Re: kcore file on RedHat 7.2

It's a virtual filesystem, and it does not use disk space.
better not delete this file.
Leave it there :)
Hendra_3
Occasional Advisor

Re: kcore file on RedHat 7.2

# ls -al /proc/kcore
-r-------- 1 root root 950185984 Dec 12 22:19 /proc/kcore
# du /proc/kcore
0 /proc/kcore

You see.
BTW, do you have 9 GB memory?
i think it will create around your memory size.

rgds,
hw
Stuart Browne
Honored Contributor

Re: kcore file on RedHat 7.2

Umm, yes.. It's a virtual file system which resides in memory, and shouldn't have any "space" that will show up in normal disk tools.

The Mount table should show something like "none on /proc type proc (rw)", and you shouldn't be able to create new files in the filesystems.

You won't be able to remove 'kcore', but you can zero it (>/proc/kcore). This will not serve any useful function however, but will not damage a running system.

The 'kcore' entry in the proc filesystem should be roughly the same size as the physical memory in your system (this is going by my memory). By looking at the values in /proc/meminfo, you'll see that it will be slightly larger..

If you want more information on the proc file system and it's purpose, you'll need to nose through the kernel documentation (in the 'kernel-doc' package). There's a file in that rpm that has all of the details about the PROC file system.
One long-haired git at your service...
B S_1
Occasional Advisor

Re: kcore file on RedHat 7.2

First, thank's for the reply's.

After a reboot the filesystem
is in "old" condition again.

I found an entry in the log/
messages file:
linux kernel: lease timed out

The system works fine
again, i only have some problems with ldap.
Some User can't log in the
system anymore.

Regards Dietmar.

PS: The kcore file was about
900 MB, my mistake.

geht nicht, gibts nicht!
U.SivaKumar_2
Honored Contributor

Re: kcore file on RedHat 7.2

Hi

/proc/kcore virtual file contains an image of the kernel's memory. It size depends on your system's memory in use at a given point of time. It's growth will never affect the system

regards,
U.SivaKumar
Innovations are made when conventions are broken