Operating System - HP-UX
1837141 Members
2402 Online
110112 Solutions
New Discussion

Kernel driver lock down processor

 
SOLVED
Go to solution
Jon Ashburn
New Member

Kernel driver lock down processor

On hpux 11i v1 (11.11) is it possible to have
a given kernel driver for a PCI card only execute
on one CPU in an SMP system? Is there a system
call into the kernel that can affect the scheduler to only execute this drivers kernel threads (ISR and/or user context) on a given CPU in an SMP system?
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: Kernel driver lock down processor

Probably its possible. Problem would be that the OS is pretty good at deciding what happens on what CPU and this plan would defeat that.

I'm pretty sure you'd have to write it yourself.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ted Buis
Honored Contributor

Re: Kernel driver lock down processor

My belief is that this is possible with psets, but I have never tried it. The logic is that if the interrupts occur frequently enough it is best to keep the context on a single CPU to take advantage of the processors cache. Check it out at:

http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=PSETS

Or also check www.docs.hp.com for psets.
Mom 6
Ted Buis
Honored Contributor

Re: Kernel driver lock down processor

From http://docs.hp.com/en/5185-4322/5185-4322.pdf :

"Real time applications expect somewhat deterministic responses or workload completion times, and hence want zero-to-minimal interference from other running applications in the system. In the past, there was no way to achieve this, so customers set up separate systems for real-time applications. With processor sets, however, customers can now use a single system to achieve the same objectives. Within the system, they can configure a processor set with the required number of processors and bind only the real-time application to that
processor set."
Mom 6
Ted Buis
Honored Contributor
Solution

Re: Kernel driver lock down processor

Robert F. Sauers addresses using psets with interrupts in his book "HP-UX 11i Tuning and Performance" on pages 188-189.
Mom 6