lkml.org 
[lkml]   [2009]   [Apr]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Finding lost memory + kernel messages explained
cc to mailing list restored. please don't drop this.

On Thu, Apr 09, 2009 at 04:07:11PM +0300, Imre Gergely wrote:
> Andi Kleen wrote:
> >Imre Gergely <gimre@narancs.net> writes:
> >>That would be around 3896MB. My question is: where does the memory go?
> >>Is it normal to 'lose' that much (~130MB) ?
> >
> >I wrote a paper about this topic some time ago.
> >
> >http://halobates.de/memory.pdf
> >http://halobates.de/memorywaste.pdf
>
> I tried to understand what you wrote there a bit, but it's still pretty
> confusing ;)

Modern hardware is complicated.

> [ 0.004000] Memory: 3980848k/5177344k available (3115k kernel code,
> 147212k reserved, 1573k data, 540k init)
>
> There seems to be 5GB of memory, I don't understand where this is coming
> from. There is a gap in the mapping

PCs have memory holes below 1MB and below 4GB. The 4GB hole can be
rather large because it contains IO mappings for all devices.

(lines 16 and 17 in dmesg output on
> the pastebin), but why? And what's that 147212k reserved?

The paper explains all this.

-Andi

--
ak@linux.intel.com -- Speaking for m1yself only.


\
 
 \ /
  Last update: 2009-04-09 20:23    [W:0.233 / U:0.132 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site