Looking at the pmap out it looks like it the heap growing quite a bit.
Probably releated to cache/db reopen.
However python-apt itself seems to be fine, the following:
from gi.repository import GObject
class GtkMainIterationProgress(apt.progress.base.OpProgress):
"""Progress that just runs the main loop"""
def update(self, percent=0):
context = GObject.main_context_default()
while context.pending():
context.iteration()
cache=apt.Cache()
while True:
cache.open(GtkMainIterationProgress()
shows stable memory behavior. The following fragment:
import sys
sys.path.insert(0, "/usr/share/software-center")
from softwarecenter.db.pkginfo import get_pkg_info
from softwarecenter.db.database import StoreDatabase
cache = get_pkg_info()
cache.open()
db = StoreDatabase(cache=cache)
db.open()
while True:
db.reopen()
does so too. So we need some further digging, its more than just the
cache/db reopen on install/remove.
** Tags added: ca-escalated
** Changed in: software-center (Ubuntu)
Status: New => Triaged
** Changed in: software-center (Ubuntu)
Importance: Undecided => Wishlist
** Changed in: software-center (Ubuntu)
Importance: Wishlist => High
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to software-center in Ubuntu.
https://bugs.launchpad.net/bugs/1003466
Title:
Software Center Memory/Processor bug
Status in “software-center” package in Ubuntu:
Triaged
Bug description:
Bug Description:
Software Centers memory usage increases the more applications you install, to
monitor this effect I am going to do a single For Purchase install and the an
run with 7 For Purchase apps and attach the logs to this bug.
Then a single repo app and then several repo apps.
OS:
64bit Precise
USC Version:
5.2.1
Steps To Reproduce:
1. Open USC install an app.
2. Click on All software once app 1 has installed
3. Install another app
4. Click on All Software once app 2 has installed
5. install another app and so on
6. monitor the memory used at each point ( I used ldtp's
startlog('path/to/log.file') startprocessmonitor('software-center') then when
finished stopprocessmonitor('software-center') stoplog()
Expected Results:
I expect the memory usage to not increase more than a set amount per app
install.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: software-center 5.2.1
ProcVersionSignature: Ubuntu 3.2.0-24.38-generic 3.2.16
Uname: Linux 3.2.0-24-generic x86_64
NonfreeKernelModules: fglrx
ApportVersion: 2.0.1-0ubuntu7
Architecture: amd64
Date: Wed May 23 15:32:24 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64
(20120425)
PackageArchitecture: all
ProcEnviron:
LANGUAGE=en_GB:en
TERM=xterm
PATH=(custom, no user)
LANG=en_GB.UTF-8
SHELL=/bin/bash
SourcePackage: software-center
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/1003466/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp