Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 576488 - sys-apps/portage: portdbapi should not cache metadata in memory unless the "frozen" flag has been set
Summary: sys-apps/portage: portdbapi should not cache metadata in memory unless the "f...
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Portage team
Keywords: InVCS
Depends on:
Blocks: portage-2.3.0
  Show dependency tree
Reported: 2016-03-05 06:01 UTC by Zac Medico
Modified: 2016-03-14 03:13 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Zac Medico gentoo-dev 2016-03-05 06:01:42 UTC
The portdbapi aux_get method aggressively caches metadata in memory. This behavior can cause applications to consume much more memory than necessary. It would make sense for the aggressive cache behavior to be enabled by the existing "frozen" flag, so that it is disabled by default. Doing so will not affect depgraph performance, since depgraph caches the metadata separately, via Package instances.
Comment 1 Zac Medico gentoo-dev 2016-03-05 07:59:17 UTC
There's a patch in the following branch:
Comment 2 Brian Dolbec gentoo-dev 2016-03-05 08:05:11 UTC
Looks, good.  If only all patches were that simple ;)
Comment 3 Zac Medico gentoo-dev 2016-03-05 08:25:21 UTC
Thanks, this is in the master branch:
Comment 4 Zac Medico gentoo-dev 2016-03-14 03:13:09 UTC
Fixed in 2.2.28.