[Okular-devel] [Bug 209591] New: Large, persistent X virtual memory usage

Benoît Jacob jacob.benoit.1 at gmail.com
Tue Oct 6 04:11:03 CEST 2009


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

           Summary: Large, persistent X virtual memory usage
           Product: okular
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: okular-devel at kde.org
        ReportedBy: jacob.benoit.1 at gmail.com


Version:            (using Devel)
Compiler:          gcc 4.4 
OS:                Linux
Installed from:    Compiled sources

Hi,

I am not even sure that the following is a bug, but I thought that I'd report
it to you, so you decide.


Summary:

I ran 'top' and monitored the VIRT column for X. I understand that this is a
completely broken way to measure memory usage. However, by just using Okular to
view a PDF file at 400% zoom level, I was able to make that number go from 328M
to 1500M. At 100% zoom, I still got 750M. This is on a machine with 1G RAM +
1.5G swap. Is is normal that this VIRT column for X would show such a large
number as 1500M ? The system did feel a bit slower, but didn't crawl. Quitting
Okular resulted in intense swapping for a few seconds.


To reproduce:
* launch 'top' in a terminal, note the VIRT value for X
* wget http://www.jmilne.org/math/CourseNotes/LEC.pdf
* okular LEC.pdf
* Zoom to 400%. That's not necessary, but makes the "problem" worse.
* Hit "next page" every time it has finished rendering
* Iterate over a few dozen pages
* Check back in "top" the VIRT column for X. I got it as high as 1500M
* Quit okular. The system swaps for a few seconds. The X memory usage stays the
same.
* If you kill X and restart with XPDF instead, the X memory usage doesn't seem
to significantly increase.


Assuming that this is indeed not wanted behavior, here's some further info:
* It's not specific to PDF, I got the same with DVI
* At a Zoom level of 100%, I obtained a X (VIRT) memory usage of 750M. At 200%
zoom, I got 1100M.
* In 'xrestop', the okular pixmap memory usage may climb up to 100-200M
sometimes, but not more, and eventually falls back to a low value. So this
means that this isn't a pixmap leak, right?

-- 
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