Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


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

Rep: Reputation: 0
Memory Usage on Linux


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
Old 08-30-2004, 02:02 AM   #2
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,265

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
(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, 06:17 AM   #3
Registered: Aug 2005
Location: Sofia
Distribution: SuSE, ELinOS
Posts: 100

Rep: Reputation: 16
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':
        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?


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 05:47 PM
getting realtime info on memory usage-cpu and harddrive usage steering Linux - Newbie 5 03-03-2005 08: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 04:45 AM
Linux Memory usage Boomba Linux - General 8 03-25-2004 04:16 PM
Linux and Memory usage ganninu Linux - General 8 12-15-2003 07:33 AM

All times are GMT -5. The time now is 11:40 AM.

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