From: Christoph H. <hc...@ca...> - 2001-02-12 18:19:26
|
On Mon, Feb 12, 2001 at 01:10:21PM -0500, Bill Hartner wrote: > Is it exported thru the proc file system ? AFAICS not. > > For performance analysis, I would like to set the processor affinity > for process X. I do not have the option of modifying the source code > and rebuilding the program for process X. Therefore, I need some > external means for setting processor affinity. > > I suppose one way of setting processor affinity for some process X > is to create a device driver and send an ioctl down to it with a the > PID of process X and a set of processors to set affinity to it. I don't think that is a good idea. Because we have procfs for setting process specific data. A file in /proc/<pid>/ (e.g. cpu_affinity or overloading cpu) looks a lot cleaner to me. Christoph -- Of course it doesn't work. We've performed a software upgrade. |