Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-03-2011, 11:22 AM   #1
Registered: Jun 2007
Posts: 96

Rep: Reputation: 16
/proc/meminfo VS /proc/kcore

Hey there,

So, I've been reading about linux for a while now and I am still a newbie in all this. At the moment I'm learning specifically about server administration, and I've come up with a question about memory in linux.

I was taught that ls -l /proc/kcore should inform me the amount of RAM that is installed in the computer. However, /proc/meminfo should do the same, but the results differ:

BOX4:/proc# ls -l kcore
-r-------- 1 root root 939528192 2011-08-03 16:15 kcore
BOX4:/proc# cat /proc/meminfo
MemTotal:      2067480 kB
MemFree:        901352 kB
So, as you can see, the values are different. Am I missing something here?

Thanks in advance,
Old 08-03-2011, 12:12 PM   #2
LQ Newbie
Registered: Aug 2011
Posts: 2

Rep: Reputation: Disabled
I would not trust /proc/kcore for finding the actual RAM installed on the system.
/proc/kcore is just a virutal file that contains the MEMORY kernel can allocate to resources.
you should not be messing with this file or reading contents of this file.

I will look /proc/meminfo to find out how much Memory, Swap is on the system.
Old 08-04-2011, 05:13 AM   #3
Registered: Jun 2007
Posts: 96

Original Poster
Rep: Reputation: 16
Ok, I got it, thanks for the information.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
/proc/kcore sulekha Linux - General 1 01-31-2009 10:19 PM
/proc/meminfo vkmgeek Linux - General 6 03-20-2008 01:12 AM
/proc/kcore mithu_sree Linux - General 2 05-14-2005 04:40 AM
/proc/kcore -- what is it? JustinHoMi Linux - General 3 02-15-2002 02:34 AM
/proc/kcore Dallam Linux - General 1 05-12-2001 06:24 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:04 PM.

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