overall high memory consumption
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Awn |
Confirmed
|
Medium
|
Unassigned |
Bug Description
This is no bug report, but when awn + applets reached 400 MB memory consumption I thought it's worth a request anyway. I have 2 GB system RAM and thus awn is going close to using 20% of that. Now I wonder if something can be done about that.
First of all my awn python processes use 35 to 41 MB memory. Is that unusual? If yes then maybe some setting in python could help, that I don't know about. Second the stacks applet framework in case of 'Stacks Plugger' is spawning a new process for every volume icon. On a 1 TB USB disk with 8 partitions that sums up to 355 MB alone for me.
Some random ideas I had are:
1. reduce python process footprint through whatever is possible (includes? parameters?)
2. have stacks plugin keep children in it's own process
3. keep delimiters in the main process (40 MB for no functionality)
4. configuration option to keep all python plugin code in one process, with a hint that bug reports are invalid with this option
In addition to the work I see some problems with my ideas 2/3/4:
- one applet could crash others
- memory leaks cannot be tracked down to the right applet
- untrusted applets could probably spy on each other if there is no way to prohibit this in python
The gnome applets are using several MB each as well, I know. They often combine functionality though so additional applets are not required. Drive Mount keeps all volume icons in process. The load monitor may show up to 6 criteria. The clock includes an appointment overview as well as a brief weather report. That's not intended to be a fair comparison, I just liked to point out that one cannot say "gnome applet = awn applet".
-------
Distribution: Gentoo Linux
Installation: from source (ebuild) with USE="gnome -debug -doc -vala -xfce"
Awn version: 0.3.2.1
Window manager: Compiz
Video card: nVidia GeForce 8600 M, nVidia binary drivers 190.53
-------
Changed in awn: | |
importance: | Undecided → Medium |
status: | Incomplete → Confirmed |
> First of all my awn python processes use 35 to 41 MB memory. Is that unusual?
Yes, typically Awn's python processes use 12-20 MB of memory. As you said the biggest problem will be the plugger applet, so perhaps it would be a good idea to replace it with something else. (File-browser- launcher in awn-extras 0.3.9 can display mounted volumes, so I'd suggest that).