evince accesses hard disk too often

Bug #190399 reported by Tomas Cernaj
4
Affects Status Importance Assigned to Milestone
evince (Ubuntu)
Invalid
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: evince

When viewing a PDF file in non-continuous mode or in presentation mode (maybe even always?), about 1 second after going to the next/previous page evince accesses the hard disk so that is has to spin up if in power saving mode. This happens with small (2-page, 75kB) and larger files, after having displayed every page (so it should be cached), and with top reporting 200MB free RAM. I can even keep my HD busy by just switching back and forth between two pages...

Ubuntu Version: Gutsy (7.10)
Package: evince (2.20.1-0ubuntu1)
Filesystem: XFS (with noatime option)

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug. How do you determine that evince is accessing the disk?

Changed in evince:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Tomas Cernaj (tomas-cernaj) wrote : Re: [Bug 190399] Re: evince accesses hard disk too often

Am Samstag, den 09.02.2008, 12:46 +0000 schrieb Sebastien Bacher:
> Thank you for your bug. How do you determine that evince is accessing
> the disk?

acoustically... ;-) and by the fact that the disk always spins up
approx. 1 second after changing a page.

BTW: I'm using the 64 bit version on a Samsung Q35Pro, using laptop mode
on battery power, if it makes any difference.

Thanks in advance,
Tomas

Revision history for this message
Sebastien Bacher (seb128) wrote :

Does continuous has the issue?

Revision history for this message
Tomas Cernaj (tomas-cernaj) wrote :

Am Samstag, den 09.02.2008, 14:19 +0000 schrieb Sebastien Bacher:
> Does continuous has the issue?
>

>From what I can tell yes.

After doing a strace evince apparently writes to
~/.gnome2/evince/ev-metadata.xml after changing the page (here it's
about 36K big), so my guess is that it's too large for the write cache
(but I don't really know much about these things...).

Here's the part of strace after changing the page:

        open("/home/tomas/.gnome2/evince/ev-metadata.xml", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 16
        fstat(16, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
        mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaaac661000
        write(16, "<?xml version=\"1.0\"?>\n<metadata>"..., 4096) = 4096
        write(16, "\" type=\"gdouble\" value=\"1.726190"..., 4096) = 4096
        write(16, "alue=\"1162\"/>\n <entry key=\"si"..., 4096) = 4096
        write(16, "op/2007-WS/MST%201/Klausuren/Kla"..., 4096) = 4096
        write(16, "t uri=\"file:///tmp/fontfolio11_f"..., 4096) = 4096
        write(16, "nt\" value=\"1\"/>\n <entry key=\""..., 4096) = 4096
        write(16, "\"window_width\" type=\"gint\" value"..., 4096) = 4096
        write(16, "5124851367419738\"/>\n <entry k"..., 4096) = 4096
        write(16, "idth\" type=\"gint\" value=\"1280\"/>"..., 3126) = 3126
        close(16) = 0
        munmap(0x2aaaac661000, 4096) = 0
        ioctl(3, FIONREAD, [160]) = 0

Hope this helps,
Tomas

Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering is this still an issue for you? Thanks in advance.

Revision history for this message
Pedro Villavicencio (pedro) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to New. Thanks again!.

Changed in evince:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.