You are not logged in.

#1 2008-11-30 13:07:38

manouchk
Member
Registered: 2008-07-29
Posts: 306

[solved] pdf preview in dolphin high CPU

Hi,

I've got an issue with pdf preview in dolphin when the cursor is kept on a pdf file. It tries to generate a preview and I can see that there various instance of ghostscript resulting in high CPU usage (99%).

Here is an example for a 45ko pdf file:

ps aux|grep gs
manu     12745  5.2  1.9  38736 20344 ?        RN   09:46   0:00 gs -sDEVICE=png16m -sOutputFile=- -dSAFER -dPARANOIDSAFER -dNOPAUSE -dFirstPage=1 -dLastPage=1 -q - /home/manu/PDF /hamprn.pdf -c showpage -c quit                                             
manu     12746  5.3  1.9  38736 20344 ?        RN   09:46   0:00 gs -sDEVICE=png16m -sOutputFile=- -dSAFER -dPARANOIDSAFER -dNOPAUSE -dFirstPage=1 -dLastPage=1 -q - /home/manu/PDF /hamprn.pdf -c showpage -c quit                                             
manu     12750  5.2  1.9  38736 20344 ?        RN   09:46   0:00 gs -sDEVICE=png16m -sOutputFile=- -dSAFER -dPARANOIDSAFER -dNOPAUSE -dFirstPage=1 -dLastPage=1 -q - /home/manu/PDF /hamprn.pdf -c showpage -c quit                                             
manu     12753  5.1  1.9  38736 20344 ?        RN   09:46   0:00 gs -sDEVICE=png16m -sOutputFile=- -dSAFER -dPARANOIDSAFER -dNOPAUSE -dFirstPage=1 -dLastPage=1 -q - /home/manu/PDF /hamprn.pdf -c showpage -c quit                                             
manu     12756  5.2  1.9  38736 20344 ?        RN   09:46   0:00 gs -sDEVICE=png16m -sOutputFile=- -dSAFER -dPARANOIDSAFER -dNOPAUSE -dFirstPage=1 -dLastPage=1 -q - /home/manu/PDF /hamprn.pdf -c showpage -c quit                                             
manu     12760  4.4  2.8  47860 29472 ?        RN   09:46   0:00 gs -sDEVICE=png16m -sOutputFile=- -dSAFER -dPARANOIDSAFER -dNOPAUSE -dFirstPage=1 -dLastPage=1 -q - /home/manu/PDF /hamprn.pdf -c showpage -c quit                                             
manu     12764  4.3  2.3  43036 24628 ?        RN   09:46   0:00 gs -sDEVICE=png16m -sOutputFile=- -dSAFER -dPARANOIDSAFER -dNOPAUSE -dFirstPage=1 -dLastPage=1 -q - /home/manu/PDF /hamprn.pdf -c showpage -c quit                                             
manu     12768  4.1  2.3  43036 24620 ?        RN   09:46   0:00 gs -sDEVICE=png16m -sOutputFile=- -dSAFER -dPARANOIDSAFER -dNOPAUSE -dFirstPage=1 -dLastPage=1 -q - /home/manu/PDF /hamprn.pdf -c showpage -c quit                                             
manu     12771  4.4  2.3  43036 24620 ?        RN   09:46   0:00 gs -sDEVICE=png16m -sOutputFile=- -dSAFER -dPARANOIDSAFER -dNOPAUSE -dFirstPage=1 -dLastPage=1 -q - /home/manu/PDF /hamprn.pdf -c showpage -c quit
manu     12775  4.0  2.3  43036 24604 ?        RN   09:46   0:00 gs -sDEVICE=png16m -sOutputFile=- -dSAFER -dPARANOIDSAFER -dNOPAUSE -dFirstPage=1 -dLastPage=1 -q - /home/manu/PDF /hamprn.pdf -c showpage -c quit
manu     12777  3.7  2.3  42748 24256 ?        RN   09:46   0:00 gs -sDEVICE=png16m -sOutputFile=- -dSAFER -dPARANOIDSAFER -dNOPAUSE -dFirstPage=1 -dLastPage=1 -q - /home/manu/PDF /hamprn.pdf -c showpage -c quit
manu     12783  4.0  2.3  42612 24160 ?        RN   09:46   0:00 gs -sDEVICE=png16m -sOutputFile=- -dSAFER -dPARANOIDSAFER -dNOPAUSE -dFirstPage=1 -dLastPage=1 -q - /home/manu/PDF /hamprn.pdf -c showpage -c quit
manu     12785  3.8  2.3  42612 24080 ?        RN   09:46   0:00 gs -sDEVICE=png16m -sOutputFile=- -dSAFER -dPARANOIDSAFER -dNOPAUSE -dFirstPage=1 -dLastPage=1 -q - /home/manu/PDF /hamprn.pdf -c showpage -c quit
manu     12787  4.2  2.3  42472 24012 ?        RN   09:46   0:00 gs -sDEVICE=png16m -sOutputFile=- -dSAFER -dPARANOIDSAFER -dNOPAUSE -dFirstPage=1 -dLastPage=1 -q - /home/manu/PDF /hamprn.pdf -c showpage -c quit
manu     12790  3.8  2.3  42472 23968 ?        RN   09:46   0:00 gs -sDEVICE=png16m -sOutputFile=- -dSAFER -dPARANOIDSAFER -dNOPAUSE -dFirstPage=1 -dLastPage=1 -q - /home/manu/PDF /hamprn.pdf -c showpage -c quit
manu     12795  4.2  2.3  42472 23876 ?        RN   09:46   0:00 gs -sDEVICE=png16m -sOutputFile=- -dSAFER -dPARANOIDSAFER -dNOPAUSE -dFirstPage=1 -dLastPage=1 -q - /home/manu/PDF /hamprn.pdf -c showpage -c quit
manu     12797  3.7  2.2  42288 23540 ?        RN   09:46   0:00 gs -sDEVICE=png16m -sOutputFile=- -dSAFER -dPARANOIDSAFER -dNOPAUSE -dFirstPage=1 -dLastPage=1 -q - /home/manu/PDF /hamprn.pdf -c showpage -c quit
manu     12799  3.5  2.3  43780 24632 ?        RN   09:46   0:00 gs -sDEVICE=png16m -sOutputFile=- -dSAFER -dPARANOIDSAFER -dNOPAUSE -dFirstPage=1 -dLastPage=1 -q - /home/manu/PDF /hamprn.pdf -c showpage -c quit
manu     12801  4.0  2.1  42304 21852 ?        RN   09:46   0:00 gs -sDEVICE=png16m -sOutputFile=- -dSAFER -dPARANOIDSAFER -dNOPAUSE -dFirstPage=1 -dLastPage=1 -q - /home/manu/PDF /hamprn.pdf -c showpage -c quit
manu     12802  3.3  1.8  37476 18704 ?        RN   09:46   0:00 gs -sDEVICE=png16m -sOutputFile=- -dSAFER -dPARANOIDSAFER -dNOPAUSE -dFirstPage=1 -dLastPage=1 -q - /home/manu/PDF /hamprn.pdf -c showpage -c quit
manu     12805  0.0  0.0   3324   848 pts/0    S+   09:46   0:00 grep gs

Well that's 20 identical instances and I got 99% CPU usage lasting about 10 seconds. For a bigger pdf, it shurely last much more time so that I generally have to kill dolphin but ghostscript instance are not killed and I have to kill them next!

Here are the version of kdebase (containing dolphin) and ghostscript:

pacman -Q|grep kdeb
kdebase 4.1.3-1
kdebase-runtime 4.1.3-1
kdebase-workspace 4.1.3-1
[09:50][manu@compal:~/PDF ]$ pacman -Q|grep ghost
ghostscript 8.63-3

I think (not 100% shure) it was not not happening some times ago with an older dolphin version.

Am I the only one expriencing this problem?

By the way My CPU is a pentium dothan 1.5 GHz

Last edited by manouchk (2009-05-23 06:23:47)

Offline

#2 2008-11-30 14:43:38

darzephyr
Member
From: Argentina
Registered: 2006-08-02
Posts: 43

Re: [solved] pdf preview in dolphin high CPU

You can send this info to the KDE Bugtracker http://bugs.kde.org (related to this bug: https://bugs.kde.org/show_bug.cgi?id=170819 ) smile


Darío Andrés
KDE BugSquad Team and Developer

Offline

#3 2009-05-23 06:24:14

manouchk
Member
Registered: 2008-07-29
Posts: 306

Re: [solved] pdf preview in dolphin high CPU

It looks like the problem has been solved.

Offline

Board footer

Powered by FluxBB