[haiku-bugs] Re: [Haiku] #16622: kernel: system_info.used_pages don't include mapped files

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Sun, 29 Nov 2020 15:45:25 -0000

#16622: kernel: system_info.used_pages don't include mapped files
----------------------------+----------------------------
  Reporter:  X512           |      Owner:  nobody
      Type:  bug            |     Status:  new
  Priority:  normal         |  Milestone:  Unscheduled
 Component:  System/Kernel  |    Version:  R1/Development
Resolution:                 |   Keywords:
Blocked By:                 |   Blocking:
  Platform:  All            |
----------------------------+----------------------------
Comment (by waddlesplash):

 This is probably an accounting/flags mix-up somewhere. Regular disk cache
 memory (not mapped) is part of the "cache" memory, which the VM will
 readily steal (non-dirty) pages from when it needs to allocate actual
 memory. mmap'ed files actually utilize the disk cache subsystem, so
 somehow I guess when files are mmap'ed, their pages are actually reserved
 and can no longer be stolen. Seems like some kind of a bug indeed.
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/16622#comment:4>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: