Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

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

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
jaja
Posts: 53
Joined: 2016-01-25 00:20
Has thanked: 1 time

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

#1 Post by jaja »

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.

Post Reply