[haiku-development] Re: sAvailableMemory wrong (was: Re: *ALMOST* compiled Haiku within itself.)

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Thu, 27 Mar 2008 09:58:06 +0100 CET

Hi Rene,

"Rene Gollent" <anevilyak@xxxxxxxxx> wrote:
> >  Anyway, Attached you will find a screenshot showing that. You will 
> > also see the
> >  bug in displaying memory usage introduced by Rene. ;)
> I added some tracing to try and troubleshoot that....based off what
> that's saying, the VM is lying to me. sAvailableMemory is giving me
> numbers that are greater than the actual amount of RAM in the system,
> hence the negative free mem value, since system_info actually returns
> used pages, which is calculated as the difference between total pages
> and available, which will be negative in this particular case? Anyone
> have thoughts on what's going on there? Does it have to do with
> overcommits perchance?

That looks like a bug in the VM, and might have something to do with 
overcommitting, too. It seems that sometimes a cache frees more memory 
than it had committed. Why don't you file a bug report against it? 
Maybe someone will look into it, then ;-)

Bye,
   Axel.


Other related posts:

  • » [haiku-development] Re: sAvailableMemory wrong (was: Re: *ALMOST* compiled Haiku within itself.)