LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 05-18-2007, 09:55 AM   #1
jonfa
Member
 
Registered: Mar 2001
Location: FL
Posts: 257

Rep: Reputation: 30
printer consuming 100% cpu


Hi All,

I am running Solaris 10 and when I first start up the machine my processor spikes to 100% until I issue the command:

/usr/sbin/lpshut

How can I solve this issue without shutting down the printer services? Thanks.
 
Old 05-18-2007, 11:28 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,490

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
What command is using all the CPU before you stop the service ? And what is it doing ?
 
Old 05-18-2007, 12:37 PM   #3
jonfa
Member
 
Registered: Mar 2001
Location: FL
Posts: 257

Original Poster
Rep: Reputation: 30
That's the strange part. When I run prstat the only process using any noticable cpu cycles is "lpsched", but it's reporting only 3-4%. As I stated earlier the cpu is pegged at 100%.

Thanks.
 
Old 05-18-2007, 02:01 PM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,490

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
How are you measuring the CPU load ?

You can run truss to see what lpsched is doing, pstack to see where it is, pfiles to see its open file descriptors.

Next step would be using dtrace for a deeper investigation.
 
Old 05-18-2007, 02:16 PM   #5
jonfa
Member
 
Registered: Mar 2001
Location: FL
Posts: 257

Original Poster
Rep: Reputation: 30
TRUSS gave me a "cannot find program: lpsched"

PSTACK:
384: /usr/lib/lp/local/lpsched
d0680cd5 pollsys (81955e0, 2, 0, 0)
d062a6d2 poll (81955e0, 2, ffffffff) + 52
080677a0 mlisten (1000, 8047e38, 8061d1b, 8047e54, 806197d, 8047e38) + 10b
08061ef1 take_message (8047e54, 806197d, 8047e38, d07fb840, 1000, 1000) + 9
08061d1b ???????? (8047e38, d07fb840, 1000, 1000, 807599e, 8047e70)
0806197d main (1, 8047e7c, 8047e84) + 23e
0805605a ???????? (1, 8047f08, 0, 8047f22, 8047f29, 8047f41)

PFILES:
384: /usr/lib/lp/local/lpsched
Current rlimit: 4096 file descriptors
0: S_IFIFO mode:0000 dev:278,0 ino:190 uid:0 gid:0 size:0
O_RDWR
1: S_IFIFO mode:0000 dev:278,0 ino:190 uid:0 gid:0 size:0
O_RDWR
2: S_IFIFO mode:0000 dev:278,0 ino:2082 uid:0 gid:0 size:35
O_RDWR
3: S_IFCHR mode:0666 dev:270,0 ino:11010052 uid:0 gid:3 rdev:21,0
O_WRONLY FD_CLOEXEC
/devices/pseudo/log@0:conslog
4: S_IFDOOR mode:0444 dev:279,0 ino:57 uid:0 gid:0 size:0
O_RDONLY|O_LARGEFILE FD_CLOEXEC door to nscd[136]
/var/run/name_service_door
5: S_IFREG mode:0664 dev:102,0 ino:187994 uid:71 gid:8 size:0
O_WRONLY
/var/spool/lp/SCHEDLOCK
7: S_IFIFO mode:0000 dev:278,0 ino:2082 uid:0 gid:0 size:0
O_RDWR
 
Old 05-18-2007, 03:04 PM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,490

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
try:
Code:
truss -D -f -p $(pgrep lpsched) 2>&1 | head -100
By the way, if you don't print from your machine, a simple workaround would be to disable the print service ...
 
Old 05-18-2007, 03:30 PM   #7
jonfa
Member
 
Registered: Mar 2001
Location: FL
Posts: 257

Original Poster
Rep: Reputation: 30
I don't really print from this machine. How can I disable the print service?

something like:

svcadm disable ????
 
Old 05-18-2007, 03:35 PM   #8
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,490

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
Start with:

Code:
svcadm disable print/server
 
Old 05-18-2007, 04:34 PM   #9
jonfa
Member
 
Registered: Mar 2001
Location: FL
Posts: 257

Original Poster
Rep: Reputation: 30
Problem solved. Thanks!

If I do resume printing from this machine I'll let you know
 
  


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
openSUSE 10.1 Xorg 6.9 consuming CPU and crashing jturning Suse/Novell 4 02-25-2007 03:30 PM
udevd consuming lot of CPU svangati Linux - Software 4 06-30-2006 01:03 PM
udevd consuming lot of CPU svangati Linux - General 3 05-15-2006 04:11 PM
100% cpu use 100% of the time serafean Linux - Newbie 4 05-04-2006 03:36 PM
cpu ......100%...... mohama Linux - Software 8 01-05-2006 06:39 PM


All times are GMT -5. The time now is 09:51 AM.

Main Menu
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