multithreading - Ghostscript - speed up PS files with 100's of pages for output to PDF files -
I'm not an end-user programmer, but connected to this project.
We have a large number of PS files we need to convert to look at (proofing) before printing the PS files. Each PS file has 800 pages or less. PS files are typically 60-250 meg per each.
. In the VM
, 10 cores use 40 gigs RAM and 4-disk RAID-0 15,000 rpm drives. If there is help, then there is a lot of unused capacity.
The commands I have tried are:
gswin32c.exe -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE = pdfwrite | -sOutputFile = ".. \ output.pdf" -f ".. \ IN \ input.ps"
and
gswin32c.exe -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE = pdfwrite -dNumRenderingThreads = 3 | -sOutputFile = ".. \ output.pdf" -c "30000000 setvmthreshold" -f ".. \ IN \ input.ps"
I compared the test compared to some of these The second version with two commands, and threads option, is slow. One of the test files has 90.5 MHz PS data, resulting in 716 pages in the PDF file.
Any suggestion would be greatly appreciated.
Run them together
You have 10 cores, you should walk at least 10 at the same time.
Find a set of options that performs better, different ways, and only runs them all at the same time.
A trivial way of doing this is to create 10 batch files, each with a list of commands, which 10% of the files then turn off all those batch files in separate command windows. , And then come back for lunch for lunch.
Through scripting and forking and batching and other techniques, you can automate it more easily. / P>
But I can bet that you can be quick to create 10 butt files for the editor, with each cut and paste and a list of mostly similar commands, searching and replacing it.
If
If this is the case once, then grind through it and create the file.
Then sit back and watch the SPIN on your VMS as a spin of the CPU gets lightened for one hour.
If you want to experiment, you can try running 5, 6, 7, 8 at a time, to check the clock which net
But this is the simplest way to incorporate all the capabilities of this machine.
Comments
Post a Comment