- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Default process priority & clearing queues
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
тАО10-28-2010 10:17 AM
тАО10-28-2010 10:17 AM
1) I have a process that had been hogging the CPU and I lowered its priority to resolve the issue. However, anytime the server is rebooted it returns to its old priority and clogs up the CPU again. How do I make it so that the priority will be the lower value even after the server is rebooted?
2) If a queue has thousands of jobs in it that you want to get rid of, is there any way to delete all entries without deleting the queue, and without manually punching in every single entry number in a delete/entry= command?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2010 11:02 AM
тАО10-28-2010 11:02 AM
Re: Default process priority & clearing queues
Who starts this process, how?
> 2) [...]
Write a command procedure to do it
non-manually? One popular method is to use
DELETE /QUEUE to destroy the whole thing, and
then use INITIALIZE /QUEUE to create a new
(empty) queue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2010 11:28 AM
тАО10-28-2010 11:28 AM
Re: Default process priority & clearing queues
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2010 11:53 AM
тАО10-28-2010 11:53 AM
Solution$ GOTO START
$!--------------------------------------------------------------------------
$!
$! NAME : SYS_COM:delete_entries.com
$! AUTHOR : Toine
$! DATE : 04-sep-2004
$! VERSION : 1.0
$! DESCRIPTION : Delete all entries in a queue
$!
$!
$!--------------------------------------------------------------------------
$ START:
$!
$ if p1 .eqs. "" then inquire p1 "Give name of queue"
$ if p1 .eqs. "" then exit
$ temp = f$getqui("cancel_operation")
$queue_loop:
$ queue_name := 'f$getqui("display_queue","queue_name",p1,"wildcard")
$ if queue_name .eqs. "" then exit
$ set noon
$!
$! Delete aborting jobs
$!
$ stop/queu/reset 'queue_name
$!
$! Delete all entries
$!
$job_loop:
$ job_name := 'f$getqui("display_job","job_name",,"all_jobs")
$ if job_name .eqs. "" then goto end_loop
$ job_entry := 'f$getqui("display_job","entry_number",,"all_jobs,freeze_context")
$ write sys$output queue_name," ",job_name," ",job_entry
$ delete/entry='job_entry'
$ goto job_loop
$!
$ end_loop:
$!
$! Start queue
$!
$ start/queu 'queue_name
$!
$! Show queue and jobs
$!
$ sho queue 'queue_name
$ set on
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2010 12:10 PM
тАО10-28-2010 12:10 PM
Re: Default process priority & clearing queues
It is started either as a batch job (SUBMIT):
check the queue priority, eventually lower it (INIT QUEUE/BASE_PRIORITY=x),
or started as a /DETACHed process: specify the priority in RUN/DETACH/PRIORITY=x .
Clearuing a queue:
there have been procedures posted here and on c.o.v.
One I have kept can be downloaded here:
http://wwwvms.mpp.mpg.de/vms$common/sysmgr/clear_queue.com
See e.g. here at ITRC forum:
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=994642
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2010 12:43 PM
тАО10-28-2010 12:43 PM
Re: Default process priority & clearing queues
"shoot first and ask questions later" is seldom a fix for these cases. Figure out what the process is and what's triggering the loop, or, well, GOTO 1
2:
$! pick one:
$! INITIALIZE /QUEUE /BATCH SCRATCH
$! INITIALIZE /QUEUE /DEVICE SCRATCH
$
$ ASSIGN/MERGE SCRATCH queue-to-empty
$ DELETE/QUEUE SCRATCH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2010 12:44 PM
тАО10-28-2010 12:44 PM
Re: Default process priority & clearing queues
> once the system is started up.
If it's started by magic, then you're
probably out of luck. If some command
procedure in the system start-up sequence
starts it, then there may be a way to choose
its priority. Given a description with the
level of detail of "a process", my psychic
powers are too weak to let me do more than
guess what you're talking about.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2010 12:48 AM
тАО10-29-2010 12:48 AM
Re: Default process priority & clearing queues
Welcome to the ITRC OpenVMS Forum.
As has been noted previously, processes do not just "start on their own". That said, I will presume that you meant "I did nothing to manually initiate the process".
The default in most cases is the default priority contained in the account under which the process was started. This is maintained in the UAF file Generally, the primary UAF is SYS$SYSTEM:SYSUAF.DAT; but your actual location may vary due to a system logical name (SYSUAF) or the value of SYSGEN parameter UAFALT. Alternatively, the process priority can be established when the process is created using the RUN command (see HELP RUN PROCESS). Finally, some processes that hold ALTPRI privilege bit may elevate their privileges.
In most cases, the first two choices are the relevant ones. They will require some legwork on the actual system. First check what username is associated with the process (SHOW PROCESS/ACCOUNTING is adequate for this purpose). Change the default priority for this process. A note of caution, if the account is used by more than one process, all will be affected, so this should be done with a fairly high degree of understanding, lest the overall application become unstable.
If the process is being started using the RUN/DETACH, the actual RUN/DETACH command will need to be located, it may include a specified base priority (/PRIORITY), and that will need to be changed.
Lastly, the reason for the "looping behavior" is best determined precisely. Reducing priority is taking an aspirin/acetaminophen tablet, it is only a palliative that masks symptoms, not by any means a cure.
- Bob Gezelter, http://www.rlgsc.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2010 04:40 AM
тАО10-29-2010 04:40 AM
Re: Default process priority & clearing queues
Can you inform us about this process?
Dave Williams
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2010 04:54 AM
тАО10-29-2010 04:54 AM
Re: Default process priority & clearing queues
1) How/why does this process end up at the same priority as interactive users?
2) Why is this process consuming most of the CPU?
Prior entries have addressed how to determine #1 and how to potentially deal with it (lowering priority). What is just as important is why does the process require so much CPU? Is this normal? Has this always been the case? What changed? Lowering the priority can be helpful not only to allow other work to proceed, but to give you time to determine whether or not the process is in some type of CPU loop. Use SDA to capture some PCs and see if the process is actually looping or if it just has a lot of work to do.
As stated before, lowering the priority only hides the problem. A little investigation should reveal why the CPU time is so high. Address that and the priority issue goes away.
Dan