HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- affect process
Operating System - HP-UX
1833049
Members
2374
Online
110049
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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-17-2005 02:06 AM
10-17-2005 02:06 AM
affect process
Hello,
I would like to launch a program just on one core of my dual-core processor.
How can i do that ?
Thanks
I would like to launch a program just on one core of my dual-core processor.
How can i do that ?
Thanks
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2005 02:12 AM
10-17-2005 02:12 AM
Re: affect process
If it is a single process program (not multi-threaded) it will do that automatically.
Other than that you can use partitions to create a single proc partition.
I don't believe HP has come up with the idea of "affinity" for processing, though I hear it's in the works.
Other than that you can use partitions to create a single proc partition.
I don't believe HP has come up with the idea of "affinity" for processing, though I hear it's in the works.
We are the people our parents warned us about --Jimmy Buffett
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2005 02:24 AM
10-17-2005 02:24 AM
Re: affect process
man mpctl
You have to write a program to accomplish this task--there is no shell command to make this happen. mpctl() has been around for many years but most tests show that choosing a processor for a specific program does nothing at all for the program's execution time. This is because SMP system like HP-UX allocates processors as needed and nothing is different between context switching among multiple processors and using just one for a specific program. Programs are not 'loaded' into a processor for execution--they are loaded into memory. To get a process started or context-switched, the registers are loaded and the processor starts executing. This occurs no matter what processor is being used. The steps needed to switch to a specific processor are identical to those needed to choose the next available processor.
Bill Hassell, sysadmin
You have to write a program to accomplish this task--there is no shell command to make this happen. mpctl() has been around for many years but most tests show that choosing a processor for a specific program does nothing at all for the program's execution time. This is because SMP system like HP-UX allocates processors as needed and nothing is different between context switching among multiple processors and using just one for a specific program. Programs are not 'loaded' into a processor for execution--they are loaded into memory. To get a process started or context-switched, the registers are loaded and the processor starts executing. This occurs no matter what processor is being used. The steps needed to switch to a specific processor are identical to those needed to choose the next available processor.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2005 09:03 AM
10-18-2005 09:03 AM
Re: affect process
You can use this program.. I have included its source in C. Compile it and use it..
IT is called pbind
IT is called pbind
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP