LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 08-30-2004, 02:25 AM   #1
lchand_p
LQ Newbie
 
Registered: Aug 2004
Posts: 3

Rep: Reputation: 0
Memory Usage on Linux


Hi,

I am Using /proc/meminfo to get the memory as

Used Memory, Used Memory, Total Memory, shared buffers, cached
6438912 6152192 286720 0 32768 1413120

1. Here As we are using 8 MB of SDRAM Only 6.1 MB is shown in the above list what about other remaining 1.9 MB where it is being used.

2. My Application when it is loaded the proc/meminfo says it took 2.5 MB but in the objdump of my application bss+txt+data is 1.7 MB where is the remaining .8 MB used.(till that time even my application is not initialized it is only loaded into SDRAM).

Please clarify my questions.

Thanks in Advance
L.Chand
 
Old 08-30-2004, 03:02 AM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,160

Rep: Reputation: 329Reputation: 329Reputation: 329Reputation: 329
(1) Unfreeable memory used by the kernel and reserved for I/O operations is not reported in /proc/meminfo AFAIK.

(2) Probably the extra .8 MB comes from runtime allocations on the stack and on the heap.
 
Old 06-19-2006, 07:17 AM   #3
halturata
Member
 
Registered: Aug 2005
Location: Sofia
Distribution: SuSE, ELinOS
Posts: 100

Rep: Reputation: 16
Quote:
Originally Posted by btmiller
(1) Unfreeable memory used by the kernel and reserved for I/O operations is not reported in /proc/meminfo AFAIK.
Does this mean that when I have the following output from 'cat /proc/meminfo':
Code:
        total:    used:    free:        shared: buffers:  cached:
Mem:  1056309248 34586624 1021722624        0        0    24989696
Swap:        0        0        0
MemTotal:      1031552 kB
MemFree:        997776 kB
MemShared:           0 kB
Buffers:             0 kB
Cached:          24404 kB
SwapCached:          0 kB
Active:           4472 kB
Inactive:        19940 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:      1031552 kB
LowFree:        997776 kB
SwapTotal:           0 kB
SwapFree:            0 kB
Size:          1048576 kB
there is no memory assigned for I/O operations? After all
1048576 - 1031552 = 17024kB, which is the kernel memory usage, I assume.
Am I right about that?
 
  


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
Linux kernel memory usage.. drminix Linux - Software 1 08-14-2005 06:47 PM
getting realtime info on memory usage-cpu and harddrive usage steering Linux - Newbie 5 03-03-2005 09:43 PM
how to determine cpu usage, memory usage, I/O usage by a particular user logged on li rags2k Programming 4 08-21-2004 05:45 AM
Linux Memory usage Boomba Linux - General 8 03-25-2004 05:16 PM
Linux and Memory usage ganninu Linux - General 8 12-15-2003 08:33 AM


All times are GMT -5. The time now is 12:57 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration