[haiku-bugs] Re: [Haiku] #14831: Optimize packagefs memory usage

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Wed, 16 Jan 2019 15:07:21 -0000

#14831: Optimize packagefs memory usage
--------------------------------------+----------------------------
   Reporter:  s40in                   |      Owner:  bonefish
       Type:  bug                     |     Status:  new
   Priority:  normal                  |  Milestone:  Unscheduled
  Component:  File Systems/packagefs  |    Version:  R1/Development
 Resolution:                          |   Keywords:
 Blocked By:                          |   Blocking:
Has a Patch:  0                       |   Platform:  All
--------------------------------------+----------------------------

Comment (by cb88):

 120MB is bloaty to the point of ridiculous though... even if it isn't a
 memory leak per se.

 I assume this has something to do with how data structures that are needed
 to implement a single coherent filesystem out of all the packages are
 implemented... perhaps the packages themselves could restructured so that
 the data structures that are needed can just be mmaped directly from the
 hpkgs and leave the rest up to cache instead of actually loading things
 into memory. If it already does that then it seems there is some other
 problem...

 I guess any shine through R/W files might cause overhead as well?

-- 
Ticket URL: <https://dev.haiku-os.org/ticket/14831#comment:5>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: