[haiku-bugs] Re: [Haiku] #7714: Total memory usage wrong in user applications

  • From: "bonefish" <trac@xxxxxxxxxxxx>
  • Date: Sun, 19 Jun 2011 02:56:36 -0000

#7714: Total memory usage wrong in user applications
-------------------------------+--------------------------------
   Reporter:  leavengood       |      Owner:  axeld
       Type:  bug              |     Status:  new
   Priority:  normal           |  Milestone:  R1
  Component:  Kits/Kernel Kit  |    Version:  R1/Development
 Resolution:                   |   Keywords:  memory usage wrong
 Blocked By:                   |   Blocking:
Has a Patch:  0                |   Platform:  All
-------------------------------+--------------------------------

Comment (by bonefish):

 The problem is in `vm_page_get_stats()`:
 {{{
 info->used_pages = gMappedPagesCount - blockCachePages;
 }}}
 As can be seen in the `page_stats` output a lot of pages are inactive
 (i.e. haven't been used for a long time). Those are ignored here. Adding
 them will probably fix the issue.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/7714#comment:1>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: