[Bug 509903] New: PS to PDF Conversion extremely slow (possibly endless)
http://bugzilla.novell.com/show_bug.cgi?id=509903 Summary: PS to PDF Conversion extremely slow (possibly endless) Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: i686 OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: Printing AssignedTo: jsmeix@novell.com ReportedBy: awilliam@whitemice.org QAContact: jsmeix@novell.com Found By: --- Created an attachment (id=296216) --> (http://bugzilla.novell.com/attachment.cgi?id=296216) Input text file processed via a2ps to produce postscript file User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.10) Gecko/2009042700 SUSE/3.0.10-1.1.1 Firefox/3.0.10 We use openSUSE for our Intranet web servers, which frequently convert documents to PDF using a2ps/ps2pdf. Under openSUSE 10.3 (GS 8.15.4-3.2) this process is very fast. Unfortunately after upgrading to openSUSE 11.1 (GS 8.62-31.43.1) we find the process to be excruciatingly slow. With just a 135KB PDF, containing no images, we see times like: openSUSE 10.3: real 0m1.5s user 0m0.4s sys 0m1.1s openSUSE 11.1: real 0m5.2s user 0m1.6s sys 0m3.6s so that is quite a bit slower proportionally. But run a 632 page postscript file (again, no images) and... openSUSE 10.3: real 0m4.680s user 0m3.912s sys 0m0.768s openSUSE 11.1: effectively never finishes This is the time for running the following command: /usr/bin/gs -dSAFER -dCompatibilityLevel=1.2 -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=file.pdf -dSAFER -c .setpdfwrite -f file.ps openSUSE 10.3: ghostscript-fonts-std-8.15.4-3.2 ghostscript-library-8.15.4-3.2 openSUSE 11.1 ghostscript-library-8.62-31.43.1.i586 ghostscript-fonts-std-8.62-31.43.1.i586 ghostscript-x11-8.62-31.43.1.i586 ghostscript-fonts-other-8.62-31.43.1.i586 ghostscript-omni-8.62-31.43.1.i586 I've tried removing ghostscript-omni to no effect. I've watched with "strace -c" and it doesn't appear to be spending all it's time in system calls, so it is Ghostscript itself. During the run time the gs process pegs the CPU. Reproducible: Always Steps to Reproduce: 1. a2ps -1 -B --lines-per-page=66 --chars-per-line=132 \ --landscape --output=step2.ps step1 [step1 (plain): 632 pages on 632 sheets] [Total: 632 pages on 632 sheets] saved into the file `step2.ps' 2. gs -dSAFER -dCompatibilityLevel=1.2 -q -dNOPAUSE -dBATCH\ -sDEVICE=pdfwrite -sOutputFile=step3.pdf -dSAFER \ -c .setpdfwrite -f step2.ps. Actual Results: Wait.... Expected Results: A PDF is created from the provided step1.ps postscript file. On openSUSE 10.3 this conversion using the exact same commands takes about 4 seconds. strace-ing gs shows a constant stream of - Just a constant stream of - .. write(6, "x\234330P0PH1\340*\3442\4\261\f\24\240Tr\256\202S\10\227~\220 \5P\300@"..., 60) = 60 brk(0xf959000) = 0xf959000 brk(0xf949000) = 0xf949000 brk(0xf948000) = 0xf948000 brk(0xf96f000) = 0xf96f000 write(6, "x\234330P0PH1\340*\3442\4\261\f\24\240Tr\256\202S\10\227~\220 \5P\300@"..., 60) = 60 brk(0xf95f000) = 0xf95f000 brk(0xf94f000) = 0xf94f000 brk(0xf94e000) = 0xf94e000 brk(0xf975000) = 0xf975000 write(6, "x\234330P0PH1\340*\3442\4\261\f\24\240Tr\256\202S\10\227~\220 \5P\300@"..., 60) = 60 brk(0xf965000) = 0xf965000 brk(0xf955000) = 0xf955000 brk(0xf954000) = 0xf954000 brk(0xf975000) = 0xf975000 write(6, "x\234330P0PH1\340*\3442\4\261\f\24\240Tr\256\202S\10\227~\220 \5P\300@"..., 60) = 60 .. ---- does this mean GS is constantly writing out tiny chunks of the file? Tried adding the "-dCompressFonts=true -dMaxInlineImageSize=0 -c '.setpdfwrite 300000000 setvmthreshold'" options instead of just "-c .setpdfwrite" to no effect. Both openSUSE 10.3 and 11.1 servers are VMs on an ESX server connected to an EMC SAN. But I can duplicate the 11.1 behaviour on my laptop which is running openSUSE 11.1 on the metal. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=509903
User awilliam@whitemice.org added comment
http://bugzilla.novell.com/show_bug.cgi?id=509903#c1
--- Comment #1 from Adam Williams
http://bugzilla.novell.com/show_bug.cgi?id=509903
User awilliam@whitemice.org added comment
http://bugzilla.novell.com/show_bug.cgi?id=509903#c2
--- Comment #2 from Adam Williams
http://bugzilla.novell.com/show_bug.cgi?id=509903
User werner@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=509903#c3
Dr. Werner Fink
http://bugzilla.novell.com/show_bug.cgi?id=509903
Johannes Meixner
http://bugzilla.novell.com/show_bug.cgi?id=509903
Dr. Werner Fink
http://bugzilla.novell.com/show_bug.cgi?id=509903
User jsmeix@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=509903#c4
--- Comment #4 from Johannes Meixner
http://bugzilla.novell.com/show_bug.cgi?id=509903
User awilliam@whitemice.org added comment
http://bugzilla.novell.com/show_bug.cgi?id=509903#c5
--- Comment #5 from Adam Williams
http://bugzilla.novell.com/show_bug.cgi?id=509903
User awilliam@whitemice.org added comment
http://bugzilla.novell.com/show_bug.cgi?id=509903#c6
--- Comment #6 from Adam Williams
http://bugzilla.novell.com/show_bug.cgi?id=509903
User awilliam@whitemice.org added comment
http://bugzilla.novell.com/show_bug.cgi?id=509903#c7
--- Comment #7 from Adam Williams
http://bugzilla.novell.com/show_bug.cgi?id=509903
User werner@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=509903#c8
Dr. Werner Fink
http://bugzilla.novell.com/show_bug.cgi?id=509903
User werner@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=509903#c9
--- Comment #9 from Dr. Werner Fink
participants (1)
-
bugzilla_noreply@novell.com