- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to ... assign process to particular proces...
Categories
Company
Local Language
Forums
Discussions
- Integrity Servers
- Server Clustering
- HPE NonStop Compute
- HPE Apollo Systems
- High Performance Computing
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp Software
Knowledge Base
Discussions
Forums
Discussions
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
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
01-13-2006 12:34 AM
01-13-2006 12:34 AM
How to ... assign process to particular processor?
Short description of my problem.
I have a HP rp4440-8 with 4 processors and 16GB RAM. I want to compress some files on this system . I want to use bzip2 or gzip and I want (e.g.) to assign first gzip-process to processor 1, second gzip-process to processor 3 and third gzip-process to processor 4.
I have no idea how to assign particular process to one specific processor. Is there any external command or something that I can use in sh script to assign process to processor? And is there a tool to read status of processors (idle, process name and so on)?
--
Regards
Piotr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2006 12:42 AM
01-13-2006 12:42 AM
Re: How to ... assign process to particular processor?
If you are serious about this kind of thing, you should look at PRM (Process Resource Manager):
http://www.hp.com/products1/unix/operating/docs/prm.overview.pdf
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2006 12:43 AM
01-13-2006 12:43 AM
Re: How to ... assign process to particular processor?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2006 01:08 AM
01-13-2006 01:08 AM
Re: How to ... assign process to particular processor?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2006 01:31 AM
01-13-2006 01:31 AM
Re: How to ... assign process to particular processor?
The HP-UX OS will take care of the the processes being assigned to multiple processors. Its only if you have Process Resource Manager, you can assign a particular process to a Processer
Rgds,
Ajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2006 01:32 AM
01-13-2006 01:32 AM
Re: How to ... assign process to particular processor?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2006 01:42 AM
01-13-2006 01:42 AM
Re: How to ... assign process to particular processor?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2006 02:40 PM
01-13-2006 02:40 PM
Re: How to ... assign process to particular processor?
The reason is that there is no overhead in switching a process to run on one processor or another. All processors have access to all of memory and once an I/O is complete, the next available processor is used to run the next instructions. Exactly the same steps are needed when the same processor is used over and over again, thus no performance gain.
If you want to play with processor affinity, look at the man pages for mpctl(2) which is a program interface and also man mpsched. See also:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=181384
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2006 05:19 PM
01-13-2006 05:19 PM
Re: How to ... assign process to particular processor?
Forget about psets. Too restrictive and too much work.
Just use mpsched.
Bill wrote: "The reason is that there is no overhead in switching a process to run on one processor or another. All processors have access to all of memory and once an I/O is complete, the next available processor is used to run the next instructions. Exactly the same steps are needed when the same processor is used over and over again, thus no performance gain."
Hogwash! Oops, did I say that?
I meant "I respectfully beg to differ".
Processor cache state and address space mapping registers are becoming more and more important as memory speed lags more and more compared to CPU speeds.
With every cpu switch the process looses it's cache context potentially slowing it down significantly.
Of course for this to be noticable one must have a cpu and memory intense application. As soon as significant IOs are involved, it becomes a moot point. ZIP is borderline. In several tests I did I found it to be measurably faster to bind to cpu's, but you need full control over the environment. You must have little or no contention for that cpu, or it will hurt more than in helps.
In general the HPUX scheduler does a fine job of trying to keep a process on a cpu, to more succesful it is at doign that on its own. then less effect plaing with mpsched (or psets) is going to have.
Just an other opinion,
Cheers,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2006 03:19 AM
01-14-2006 03:19 AM
Re: How to ... assign process to particular processor?
Similarly, a process like zip will be spending most of it's time waiting on I/O (unless the CPU is very slow, perhaps less than 200 Mhz). So the TLB load and processor cache advantage will be minimal compared to the time spent waiting for an I/O to complete.
Bill Hassell, sysadmin