LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 05-26-2003, 02:07 PM   #1
Malibyte
Member
 
Registered: Dec 2001
Location: California, USA
Distribution: Ubuntu, Debian
Posts: 118

Rep: Reputation: 15
CUPS and High CPU usage


Have issues with CUPS running under Mandrake 8.2 on my office
box....this is a new thing (past couple of days). I usually use this printer to print output from an old DOS application (DataPerfect database app running under DOSEmu) pretty much exclusively.

Basically, what happens is this ... all's well until I send a print job.
Then the CUPS daemon immediately spikes CPU usage up to 97-100% and stays there, even after the job is done. The only way to solve it is to stop the daemon and restart it again later. Anyone else had this sort of issue with CUPS?

I'd really like to dump CUPS anyway and go back to LPRng, but if I do this I get this funky header on every page and it won't print high-order ASCII characters. As it is now, I have to use xpp to tell the printer to print "raw" output only to do this anyway, which is a PITA when I need to print graphics or dump a web page. I'm using an HP DeskJet 560c printer.

I don't have this sort of problem on my print server at home, which is running RedHat 7.3 and using LPRng (though with a couple of Epson printers).

<scratching head>

Thanks for any info....Bob
 
Old 08-26-2003, 08:04 AM   #2
ccnpkid
LQ Newbie
 
Registered: Aug 2003
Posts: 3

Rep: Reputation: 0
Hi I am facing the same prob in a RH linux 9 box.
have u got any info ????? solution????????
 
Old 08-26-2003, 09:52 AM   #3
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 65
Question Mine's pretty busy too

Mine gets a lot of CPU power too. Mine rig is pretty swift and it still takes a lot. On my old 400MHz it would grind almost to a halt. Would take hours to print 30 pages.
Don't know how to fix it but you are not alone.

 
Old 08-26-2003, 10:16 AM   #4
Agifem
LQ Newbie
 
Registered: Aug 2003
Distribution: RedHat
Posts: 6

Rep: Reputation: 0
It is normal that it takes the all CPU usage during the printing process, because the way LPT and printers work is obsolete and requires an active waiting. BUT it is not normal that it does not release the CPU once the job done. I Hope I helped.
 
Old 08-26-2003, 05:38 PM   #5
Malibyte
Member
 
Registered: Dec 2001
Location: California, USA
Distribution: Ubuntu, Debian
Posts: 118

Original Poster
Rep: Reputation: 15
I wound up solving the problem by upgrading the Mdk 8.2 box to 9.0...this solved a few other minor issues as well. I never did figure out WHY it was happening..sorry. :-|

-- Bob --
 
Old 08-27-2003, 02:27 AM   #6
ccnpkid
LQ Newbie
 
Registered: Aug 2003
Posts: 3

Rep: Reputation: 0
Hi dalek

I got the solution for that.
Do the following ;
In cupsd.conf , check out these.

PreserveJobFiles Off
AutoPurgeJobs Yes

read explanation of the same in cups documentation and make changes.

Use top simulatneosly and fire prints to cups. u will see that %CPU usage goes high and coming down after job is spooled.

I thnk i helped u . pls rep[ly with results

Sarath Sivan
 
Old 08-30-2003, 03:21 PM   #7
tuxave
LQ Newbie
 
Registered: Aug 2003
Location: Austin
Posts: 1

Rep: Reputation: 0
I have noticed that CUPS constantly consumes about 25% of my CPU [AMD1.2] on my LInux box and 30% on my IMac [800]. While this doesn't affect me much on my Linux box, it does interfere with video editing on my IMac.

I am really curious why a passive daemon should be chewing my my CPU so much. Could this be related to broadcast notifications? Would still seem a bit high, though.
 
Old 08-30-2003, 05:03 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,004
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Must be specific to how CUPS is set-up
in MDK and RH then ... in my manual installs
on all Slack-boxes so far it never uses more
than 0.5% to 1.5% while waiting, and that
includes an old P166 :)

Cheers,
Tink

Last edited by Tinkster; 08-30-2003 at 05:05 PM.
 
Old 09-03-2003, 02:36 AM   #9
ccnpkid
LQ Newbie
 
Registered: Aug 2003
Posts: 3

Rep: Reputation: 0
CUPS page logging utilities.

Hi All

Normally in CUPS webadmin modu;e we get only details of the file name printer and username initiated the print. Anybody know whether there is any software or option available to list the no: pages also. However we can find it out from page_log file by comparing the job id. but it is not possible for a busy administrator. So if any program is available for showing the no: of pages in a user friendly way please reply.

thanks

Sarath Sivan
 
Old 05-05-2004, 02:20 PM   #10
iainr
Member
 
Registered: Nov 2002
Location: England
Distribution: Ubuntu 9.04
Posts: 631

Rep: Reputation: 30
I've hit this problem for the first time ever. Cups worked fine in the past with Mandrake 9.1 & 9.2. With Mandrake 10 Community, after configuring a remote printer, cups ramps up to 99% of CPU after a few seconds and stays there. This is before I've submitted any print jobs. Cups isn't scanning for new printers as far as I know. Right now, starting CUPS to print is my workaround, but not great.

Any more ideas anyone? (I tried editing the conf file but no luck).
 
Old 05-05-2004, 03:47 PM   #11
iainr
Member
 
Registered: Nov 2002
Location: England
Distribution: Ubuntu 9.04
Posts: 631

Rep: Reputation: 30
I've done a bit more checking on CUPS :
version 1.1.20-5mdk (1.1.20 is latest version as far as I can see - no updates for Mandrake Official)

The cupsd process runs on low CPU for about 20-30 secs after it's started. Then it climbs up to 99% very quickly and stays there. The only child process cupsd is calling is cups-polld, but that isn't using any significant CPU time.

CUPS only uses up the CPU if I have a printer configured (a remote one, I don't have a local printer to connect right now). As soon as I configure a remote print server and restart CUPS, it goes crazy. With no printers configured, CUPS behaves (but doesn't do anything useful, of course )
 
Old 10-21-2004, 10:56 AM   #12
swiftnet
Member
 
Registered: Aug 2003
Location: Florida, USA
Distribution: Mandrake, Knoppix, Yoper
Posts: 97

Rep: Reputation: 19
Anybody figure out the cups high CPU usage problem?
I have it happening to two separate clients, both have remote printers.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
High Cpu usage untak Debian 21 01-23-2007 07:21 AM
cpu usage high corbintechboy VectorLinux 2 07-27-2005 09:11 AM
Rhythmbox high cpu usage Pipedream Linux - Software 0 11-07-2004 04:17 PM
xine high CPU usage Phathead Slackware 1 07-14-2004 02:16 AM
locking at high CPU usage charon Linux - Newbie 4 03-10-2004 03:21 AM


All times are GMT -5. The time now is 02:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration