How do I set the options that CUPS passes to ghostscript?

Kernels & Hardware, configuring network, installing services

How do I set the options that CUPS passes to ghostscript?

Postby jaja » 2019-11-16 04:47

Hello, and thanks for the help.

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.

I've noticed that "gs" (ghostscript) is using only one CPU.
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>

No effect on CUPS/ghostscript printing (still uses only one CPU).
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'

Also failed to find where CUPS sets these ghostscript options.

I'd appreciate any suggestions on how do I set the options that CUPS passes to ghostscript.

Again, thanks for the help.
jaja
 
Posts: 41
Joined: 2016-01-25 00:20

Return to System configuration

Who is online

Users browsing this forum: No registered users and 20 guests

fashionable