Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
05-18-2007, 09:55 AM
#1
Member
Registered: Mar 2001
Location: FL
Posts: 257
Rep:
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.
05-18-2007, 11:28 AM
#2
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OEL
Posts: 9,165
What command is using all the CPU before you stop the service ? And what is it doing ?
05-18-2007, 12:37 PM
#3
Member
Registered: Mar 2001
Location: FL
Posts: 257
Original Poster
Rep:
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.
05-18-2007, 02:01 PM
#4
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OEL
Posts: 9,165
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.
05-18-2007, 02:16 PM
#5
Member
Registered: Mar 2001
Location: FL
Posts: 257
Original Poster
Rep:
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
05-18-2007, 03:04 PM
#6
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OEL
Posts: 9,165
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 ...
05-18-2007, 03:30 PM
#7
Member
Registered: Mar 2001
Location: FL
Posts: 257
Original Poster
Rep:
I don't really print from this machine. How can I disable the print service?
something like:
svcadm disable ????
05-18-2007, 03:35 PM
#8
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OEL
Posts: 9,165
Start with:
Code:
svcadm disable print/server
05-18-2007, 04:34 PM
#9
Member
Registered: Mar 2001
Location: FL
Posts: 257
Original Poster
Rep:
Problem solved. Thanks!
If I do resume printing from this machine I'll let you know
Thread Tools
Search this Thread
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
All times are GMT -5. The time now is 11:53 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News