I'm running Debian 10 KDE with CUPS 2.2.10-6+deb10u1 and ghostscript 9.27.
To speedup printing, I would like to increase the number of CPUs used by ghostscript when printing webpages.
Unfortunately, I've failed to find how to configure the options that CUPS passes to ghostscript.
Work flow:
Code: Select all
Open Firefox
Open a webpage containing graphics.
Print from Firefox.
Linux CUPS send the webpage to "gs" (ghostscript) to convert to raster.
~30 seconds later, "gs" (ghostscript) finishes and the printer starts.
So to speedup the printing process, I'd like to increase the number of CPUs used by "gs" (ghostscript), and the amount of RAM available to it.
Unfortunately, I've failed to find where CUPS sets the "gs" (ghostscript) options.
I've searched the web and forums. Failed. (Lots of info on ghostscript and CUPS, but not much on how to alter their interactions.)
I've tried setting ghostscript options globally. Example:
Code: Select all
sudo vi /etc/environment
GS_OPTIONS="-dNumRenderingThreads=4"
<save and reboot>
Ghostscript global options are over-ridden by CLI options. So CUPS is over-riding the global options.
I've tried searching the entire disk for ghostscript options embedded within files:
Code: Select all
sudo grep -rwni / -e 'dNumRenderingThreads\|setvmthreshold'
I'd appreciate any suggestions on how do I set the options that CUPS passes to ghostscript.
Again, thanks for the help.