- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- lpsched behaviour and performance
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2003 07:48 AM
06-05-2003 07:48 AM
Does the spooler cycle through queues looking for pending requests? Does it disable queues to prevent uneccesary reads?
Does the spooler execute jobs as they arrive through rlp?
In theory there should be an lpsched process for every print job but I never see more than 15 lpscheds at a time when I know there are more than 400 pending jobs in the requests directory.
I often see queues get disabled (sometimes for weeks) and queues build up to 100 or so jobs. Do these excessive pending jobs hurt the performance of the scheduler at all?
How does the scheduler choose which print job is next?
Apreciate your help.
Thanks..
ian
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2003 08:25 AM
06-05-2003 08:25 AM
SolutionIf they're attached directly to the system, then lpsched has to do A LOT of work. And you need to tell us how you directly connected 3500 printers to a single host.
If they're all on a network, then lpsched has a lot less work to do. All it will do is contact the server (or network card) attached to the printer, send it the print job, then go about its merry way.
Here's what I know about the answers to your questions:
1) Yes, the spooler cycles through the queues looking for unprocessed print jobs. AFAIK, it does this in the order in which the directories are listed.
2) Disabling the queue does not prevent unnecessary reads. AFAIK, the only way to prevent the daemon from reading the queue is to remove it.
3)A job pending doesn't spawn an lpsched daemon. A job being printed (or handed off) does.
4) Excessive jobs in the print queue is more of a disk space issue than a performance issue.
5) Print job priority depends on how the request was made. Do a man on lpfence for an example.
One last comment: what kind of machine is this? You should have some pretty beefy CPU's--perhaps an RP series of machines. When you have that many print jobs, you'll need LOTS of CPU cycles and a bunch of memory.
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2003 08:56 AM
06-05-2003 08:56 AM
Re: lpsched behaviour and performance
As for performance dropping off, are you seeing an increase paging (check vmstat, sar, glance). Also check on filesystem fragmentation (fsadm -F vxfs -D -E if using vxfs), as that much creating & deleting of files could be slowing things down somewhat.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2003 10:12 AM
06-05-2003 10:12 AM
Re: lpsched behaviour and performance
If no, and want to, and would like to see how I did it, I can share my package information with you.
My environment is on SAP with about 650 printers...currently have 775 jobs in queue - don't notice any performance issues...
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2003 02:00 AM
06-06-2003 02:00 AM
Re: lpsched behaviour and performance
Hey Bill.. nope.. paging is at a minimum. I'll attach a typical iostat and vmstat.
Geoff.. for sure!! I'd love to have a gander at your package... scripts. Heh. I'd like to add some of the crucial processes as services.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2003 03:31 AM
06-06-2003 03:31 AM
Re: lpsched behaviour and performance
So there is little overhead for lpsched since all job requests go through the FIFO file which is read by the daemon lpsched. A workload of 8 is not a problem and doesn't really reflect how busy the system might be. It indicates that there are 8 jobs ready to run, one or more (depending on how many CPUs you have) are actually consuming CPU cycles, the rest are waiting.
A spooling server like this is mostly I/O bound but I would assume that most of the printers are LAN-based and those are slow when compared to disk speeds. Occasionally, LAN problems will cause an printer script to start consuming lots of CPU time trying to communicate with the printer. top will show hpnpf as a big CPU user. In that case, disabling the printer should drop the load while you see what is wrong with the printer.
A print queue can be disabled for many reasons, all having to do with non-zero exit codes from the printer script. Since the scripts do not set explicit error codes for each failure, it is tricky to locate a reason. A large queue in a disabled printer is not a performance issue but is usually a disk space issue. (trick question: what is the first thing a user does when the printer won't print? and the second thing?...you get the point).
For this type of application, I would setup a cron job to scan the request queues and notify a sysadmin when the total space in a queue or the total number of jobs in a queue exceed a certain number. Then take appropriate action.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2003 03:59 AM
06-06-2003 03:59 AM
Re: lpsched behaviour and performance
Whith a such large printer spooler HPDPS (Distributed Print) may be of interest.
http://www.docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90678/B2355-90678_top.html&con=/hpux/onlinedocs/B2355-90678/00/00/6-con.html&toc=/hpux/onlinedocs/B2355-90678/00/00/6-toc.html&searchterms=HPDPS&queryid=20030606-055321
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2003 04:16 AM
06-06-2003 04:16 AM
Re: lpsched behaviour and performance
So I wouldn't be concerned at runqueues up to 10 or 20 for the CPU, or CPU usage up to 50% for system overhead on a spooling server. That means you are getting your money's worth out of this solid performer, albeit slow compared to new rp servers. The CPU is still way faster than the printers it services.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2003 04:22 AM
06-06-2003 04:22 AM
Re: lpsched behaviour and performance
As a standard the remote queues run on NT print servers which then forward on to the printer. The slow link in the chain would then be I/O as you suggest in your entry above. Do the IO numbers in my attachement above look high to you? avg. 60/second.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2003 04:31 AM
06-06-2003 04:31 AM
Re: lpsched behaviour and performance
Here's my package...things to note:
The following are in a volume group on EMC disk:
/etc/lp Directory of spooler configuration data
/var/sam/lp Backup directory of spooler configuration
/var/spool/lp Directory of LP spooling files and directories
/var/adm/lp Directory of spooler log files
Before adding/removing a printer, you MUST touch the the Cluster Monitoring Lock File - " /tmp/iprprt.lock ", then wait 60 seconds.
If you don't, the iprprtpkg cluster package will fail over to the other node.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2003 05:29 AM
06-06-2003 05:29 AM
Re: lpsched behaviour and performance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2003 06:07 AM
06-06-2003 06:07 AM
Re: lpsched behaviour and performance
Rgds...Geoff