[Okular-devel] [Bug 177213] High X server memory consumption

Mark Whitis whitis at freelabs.com
Sun May 24 19:36:17 CEST 2009


https://bugs.kde.org/show_bug.cgi?id=177213





--- Comment #7 from Mark Whitis <whitis freelabs com>  2009-05-24 19:36:06 ---
The situation is much worse than described in this bug report.
  - X server resident usage climbs to 500MB and virtual memory usage to about
1.3MB on my system.
   - The X server memory is NOT consistently freed when okular exits.
This results in serious thrashing.

This appears to be related to okular sharing its pixmap cache among separate
okular instances, such that the total memory used by all okular instances is
capped at 160MB (until things go wrong) using some sort of X server shared
memory.

Given that okular appears to share pixmaps between instances, this does not
appear to be just an X server issue.   Shared memory mechanisms tend to have
semantics that allow resource consumption to persist after a process exits.
This is an X bug AND an okular bug.

Okular performance is set to normal.

Ironically, the resource consumption appears to be related to an attempt to
limit resource consumption across instances.   If you weren't sharing pixmaps,
running multiple instances of okular would result in huge consumption but it
would be consistently released when all instances were closed.

More details here (in the many comments by me at the end):
https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/98783

ii  okular         4:4.2.2-0ubunt document viewer for KDE 4
Distributor ID:    Ubuntu
Description:    Ubuntu 9.04
Release:    9.04
Codename:    jaunty

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Okular-devel mailing list