- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to get cpu id per thread when specified thread...
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
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
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
11-03-2016 11:30 PM
11-03-2016 11:30 PM
How to get cpu id per thread when specified threads in a process is bound various cpus.
For instance, case of AIX
# ps -mo THREAD -p 4850146
USER PID PPID TID ST CP PRI SC WCHAN F TT BND COMMAND
altibase 4850146 1 - A 54 60 126 * 40001 - 23 /altibase/altibase_home/bin/altibase -p boot from a
- - - 5243335 S 0 60 1 - 418400 - 23 -
- - - 6554011 S 0 60 1 - 410400 - 23 -
- - - 7143851 S 0 60 1 f1000f0a10086d40 8410400 - 23 -
- - - 7405863 S 0 60 1 f1000f0a10087140 8410400 - 23 -
As seeing above, I can know cpu id that is bound, per thread with "ps" command and some option.
But I could not find any command that is same function in HP-UX.
I'd like to know cpu id that is bound per thread.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2016 07:18 PM - edited 11-06-2016 07:19 PM
11-06-2016 07:18 PM - edited 11-06-2016 07:19 PM
Re: How to get CPU id per thread when specified threads in a process is bound various CPUs.
HP-UX doesn't support Linux's -L option.
Why are looking for thread info?
You may have to use glance or write a program using pstat(2).