- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Thread priority in OpenVMS
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
тАО03-09-2004 06:31 PM
тАО03-09-2004 06:31 PM
Everything works fine.
But how can I verify a thread priority?
I tried with
$ana/system
SDA> sho proc/all
But this shows not the required informations.
Thanks for informations
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2004 01:46 AM
тАО03-10-2004 01:46 AM
Re: Thread priority in OpenVMS
sda> pthread...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2004 02:10 AM
тАО03-10-2004 02:10 AM
Re: Thread priority in OpenVMS
I already gave him that answer in the business support forums ;-)
Unfortunatly there is not much documentation
on this extension as far as I know.
I did also check sys$share: for installed SDA extensions and did not find something else.
Greetings, Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2004 03:13 AM
тАО03-10-2004 03:13 AM
Re: Thread priority in OpenVMS
sda> set proc/id=xx
sda> pthread thread
show something similar to the following
Process name: MYSQL_SERVER Extended PID: 20200157 Thread data: "thread"
-----------------------------------------------------------------------------
Thread Name State Substate Policy Pri
------ ------------------------- --------------- ----------- ------------ ---
1 default thread blocked $synch 64 SCHED_OTHER 11
-3 exit-handling thread blocked SCHED_FIFO 32
2
3
4
5
6
7
8
9
174
SDA>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2004 03:25 AM
тАО03-10-2004 03:25 AM
Re: Thread priority in OpenVMS
DBG> SET EVENT THREADS
DBG> pthread thread -1
this will give you the policies and priorities of the threads.
Will this get you what you want?
Software Concepts International
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2004 07:01 PM
тАО03-10-2004 07:01 PM
Re: Thread priority in OpenVMS
I tried to find it on OpenVMS 6.2 sda>pthread does not help.
I learned that pthread helps on OpenVMS 7.2.
The confusing part is the result:
Thread Name Policy State Pri
------ ---- ----- ----- ---
1 default thread SCHED_OTHER blocked 11
2
I started the process with pri=4 and created the thread with pri=7.
How come I see priority 11 for both threads?
Do I mix up something here?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2004 01:49 AM
тАО03-11-2004 01:49 AM
Re: Thread priority in OpenVMS
-Anders
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2004 03:22 AM
тАО03-11-2004 03:22 AM
SolutionSince it doesn't look like a single command will display the base priorities, here is the manual way to do it.
Take a look at the process in SDA
SDA> show process
Note the PCB (Process Control Block) address, let's call it pcbaddr. If you want, you can display the entire pcb:
SDA> format/type=pcb
Note the number of threads for this process.
SDA> examine
If this count is one, there are no threads for this process.
If this count is two or more, we can check the base priorities of each thread.
We need to find all the threads associated with this process. A block of 32bit addresses point to each KTB (Kernel Thread Block). Each ktb contains the base priority field ktb$l_prib. (Note: ktb's and pcb's are the same except certain fields are not defined in the ktb. Also, if a ktb and pcb are the address, it is okay.)
So where is this block?
SDA> examine
This is a block of 32bit addresses that is pcb$l_kt_count*4 bytes long.
This block contains a list of addresses pointing to each ktb data structure.
Do
SDA> Examine @(@(
Note that "+0" is the offset within the ktbvec block.
This is the base priority of the first thread
SDA> Examine @(@(
Note that "+4" is the second ktb address within the ktbvec block.
This is the base priority of the second thread
SDA> Examine @(@(
This is the base priority of the third thread
If you need to change the base priority of a thread, just look at the pid, which is the epid in the pcb, and change it from DCL. For example, to get the pid of the third ktb do the following:
SDA> @(@(
A description of these data strucutres can be found at
http://h71000.www7.hp.com/DOC/73final/6466/6466pro_005.html#kthreads_process_structure
Hopefully, I didn't mis-state something. Let me know if there is a typo or if doesn't look right (@ can be confusing, etc.).
john
ps - if you want, I can write a small macro-32 program to do this.