LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-18-2005, 02:11 AM   #1
nostracosa
LQ Newbie
 
Registered: Aug 2005
Posts: 24

Rep: Reputation: 15
/proc/kcore =|


Quote:
My guess is this is the kernel core. Don't worry too much about
anything in /proc, it's a virtual filesystem containing information
about what's going on, and does not take up disk space.
ok i read this in many places... but.. i'm using fedora core 4 and i have in /proc a file named kcore that occupies me 512MB exaclty my amount of RAM. can any1 explain to me basically what is the file for, is it supposed to occupy space.
i'm sort of paranoid with disk space... cause always that i look at the free space there is always a little bit less than the last time i've seen.. and if there is less disk free space it means that there are processes running and changing my disk and i don't know it.

Appreciated for your attention.
 
Old 08-18-2005, 02:18 AM   #2
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
/proc/kcore is just a way to access your memory. The stuff in /proc are mounted separately and do not take up space on any of your drives.
 
Old 08-19-2005, 08:29 AM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
/proc (and maybe /sys) is a very interesting "filesystem" in that it doesn't actually exist. Rather, it is an elegant invention created completely by the Linux kernel for the express purpose of supplying parameters and other information to you ... and, if you are root, for modifying those parameters, as well.

For example, let's arbitrarily take /proc/sys/kernel/vm/max-readahead. If you use the cat command to read this "file," you'll see that it contains a number, like "128." This literally is the value of this arcane kernel parameter.

If you were root, you would find that you could write a different number to it. If you did that, you would have the effect of immediately changing this arcane kernel parameter! (By the way, I am not suggesting that you go now and actually do this!)

If there was ever a place where most operating-systems get totally bogged down, it would be in passing magical numbers and information to-and-from the kernel. "The /proc filesystem" is easily the most elegant solution to this vexing problem that I have ever seen anywhere. It lets otherwise-magic programs, like ps, not have to be magic or powerful at all: it works by looking for numbered "files" in /proc. (Each numbered-file corresponds to a process-ID...)

You can learn quite a lot about Linux just by trolling through this filesystem, not as root, and wondering what this-or-that "file" is for, and what it is telling you...
 
Old 08-19-2005, 11:43 PM   #4
nostracosa
LQ Newbie
 
Registered: Aug 2005
Posts: 24

Original Poster
Rep: Reputation: 15
Thumbs up

ty for the replies and the explanation!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/proc/kcore mithu_sree Linux - General 2 05-14-2005 03:40 AM
What predestination of /proc/kcore ? ukrainet Linux - Newbie 1 12-23-2004 09:49 PM
909 mb kcore file in proc rrodden111 Linux - General 7 07-24-2003 07:14 PM
/proc/kcore -- what is it? JustinHoMi Linux - General 3 02-15-2002 01:34 AM
/proc/kcore Dallam Linux - General 1 05-12-2001 05:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration