LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 01: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, 02:02 AM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
(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
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:14 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