Mailinglist Archive: opensuse (1468 mails)

< Previous Next >
Re: [opensuse] Ghostscript (PS->PDF) Terrible Performance Under 11.1 Compared To 10.3
On Wed, 2009-06-03 at 16:48 +0200, Dr. Werner Fink wrote:
On Wed, Jun 03, 2009 at 10:04:49AM -0400, Adam Tauno Williams wrote:
On Wed, 2009-06-03 at 12:41 +0200, Dr. Werner Fink wrote:
The version 8.62 has an completly rewritten pdfwrite API which is much
more compatible with the PDF standard. Beside this it can handle much
more PostScript code fid out there. This cause the longer compilation
time.
A 400% increase for a small (135KB) file and from 4 seconds to hours for
a 3MB file?
I'm only the maintainer of ghostscript *not* one of the developers nor
authors.

if this version hangs on your file you may use
strace -p `pidof gs`
to see what happens here.
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
...
looks like gs is writing out the resulting pdf and this seems
to take some time ... btw: how fast is your disk.

Both machines (10.3 vs 11.1) are identical; they are virtual machines
on ESX servers connected to an EMC SAN.

Try out to use /dev/null as OutputFile, does this go faster?
You may also replace
-c .setpdfwrite
with
-dCompressFonts=true -dMaxInlineImageSize=0 -c '.setpdfwrite 300000000
setvmthreshold'
if you have enough memory available in your system.

Will test.

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups