LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-03-2011, 10:22 AM   #1
Fill
Member
 
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:

Code:
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,
Fill
 
Old 08-03-2011, 11:12 AM   #2
TheLinux
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, 04:13 AM   #3
Fill
Member
 
Registered: Jun 2007
Posts: 96

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


Reply


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 09:19 PM
/proc/meminfo vkmgeek Linux - General 6 03-20-2008 12:12 AM
/proc/kcore mithu_sree Linux - General 2 05-14-2005 03:40 AM
/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


All times are GMT -5. The time now is 03:53 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration