- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Batch Queue entry numbers
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
Discussions
Discussions
Forums
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
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
тАО05-01-2008 04:22 AM
тАО05-01-2008 04:22 AM
Batch Queue entry numbers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2008 05:39 AM
тАО05-01-2008 05:39 AM
Re: Batch Queue entry numbers
http://forums12.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1209649011045+28353475&threadId=1144436
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2008 06:11 AM
тАО05-01-2008 06:11 AM
Re: Batch Queue entry numbers
this has NOTHING to do with any VMS version (at least starting V5.5).
Whenever the number of entries exceeds 999, then the available number range flows over to this much bigger number (of which not all numbers are used, btw).
Entry numbers are to be considered as just that: unique IDs _WITHOUT_ any additional meaning (at least, NOT to be used nor controled).
Your changeover happened because at some moment your number of entries (active, waiting, and retained, all counted) was bigger than the small set could handle.
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2008 06:19 AM
тАО05-01-2008 06:19 AM
Re: Batch Queue entry numbers
Batch Queue entry numbers should be treated like process ids; as PIDs.
Best to assume the job entry number (or the PID, for that matter) is simply an opaque longword.
That the entry numbers are often assigned in somewhat recognizable sequences was arguably a small design mistake in my view, as it led to assumptions that should not have been made.
Like the PID and its internal structuring (and ignoring topics of IPID and EPID), the current format of the job entry number (and this is subject to change) is comprised of several bitfields; the entry number contains the queue manager number and non-contiguous fields that together contain an ascending value.
When last I looked, the internal structure of the entry number was XYYXXXX, where X is a field containing a zero-suppressed entry sequence number, and YY is the queue manager number. In hexadecimal. Subject to change.
There have been changes to the queue manager to try to drop this entry number value back down to small positive integers, but that's not entirely reliable -- the values can spike back up into the "weird" ranges and "weird" values when certain thresholds are crossed, and when certain queue configurations are instantiated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2008 02:07 PM
тАО05-01-2008 02:07 PM
Re: Batch Queue entry numbers
No you can't adjust the wrap points. Entry number ranges expand as required by the number of jobs submitted. If you have software that doesn't like larger entry numbers, you should fix it. The entry number can be any 32 bit signed integer. Any software that can't handle the entire range is incorrect.
I've found that even as far back as V7.3, the queue manager is very good at restoring entry number ranges, as long as the jobs get cleaned up. Perhaps someone has turned on retention on a queue? Or there was a peak which exceeded 10K jobs - maybe a runaway self submission? You may also find that an overzealous job monitor executing many F$GETQUI or SHOW QUEUE commands will keep the queue data base so busy that the queue manager doesn't get a chance to clean up old entries fast enough. This can artificially keep the entry range higher than expected. Once you're in the extended range, you have to wait for a complete cycle of jobs.
Here's a procedure I've used to correct self submission accidents which have flooded a queue with multiple copies of the same job:
$ loop:e=F$GETQUI("DISPLAY_ENTRY","ENTRY_NUMBER",p1,"WILDCARD")
$ IF e.NES.""
$ THEN
$ DELETE/ENTRY='e'
$ GOTO loop
$ ENDIF
(avoid manipulating jobs while this procedure is running, as it may interrupt the GETQUI context and stop the job. Don't include any WRITE commands in the loop, as they'll slow it down by an order of magnitude or two)
If you really need to cycle the numbers, here's a procedure to submit and delete jobs until the entry number is lower than a specified value.
$ IF p1.EQS."" THEN EXIT
$ self=F$PARSE(";",F$ENVIRONMENT("PROCEDURE"))
$ loop:
$ SUBMIT/HOLD 'self'
$ DELETEX/ENTRY='$ENTRY'
$ IF F$INTEGER($ENTRY).GT.F$INTEGER(p1) THEN GOTO loop
$ EXIT
(beware that for some queue manager configurations and values of p1 this is an infinite loop!). Also beware that both the above procedures keep your queue manager very busy while they're running so things like SHOW QUEUE commands may run very slowly. They may work better/faster if executed on the node running QUEUE_MANAGER.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2008 05:50 AM
тАО05-02-2008 05:50 AM
Re: Batch Queue entry numbers
Although your post only references Batch Queue entries, I'm sure you know that the entry numbers are shared by all of the system queues, particularly printer queues.
John touched on the primary culprit in these situations, i.e. print queues set to RETAIN, or queues which are STALLED or STOPPED.
The Queue Manager cannot reuse an entry number as long as it is assigned to a job in a queue, and although it is obviously possible for a system to be legally handling large numbers of entries, i.e. batch jobs can be legally in a "holding" state for long periods of time, entry numbers assigned to print jobs should, in general, only be tied up briefly.
When the numbers jump from 4-digits to 7-digits, this often means that a busy print queue has been stalled or stopped for a significant period of time, or that someone has set a queue to RETAIN (perhaps for testing) and forgot to remove it when done.
Dave.