Hi Bill,
I'm pretty sure there's no exported interface in the standard kernels.
I'm sure I've seen code out there to do it somewhere. I thought it might have
been in a SGI patch. SGI guys, do you know ?
Tim
On Mon, Feb 12, 2001 at 03:11:15PM -0500, Bill Hartner wrote:
>
> > 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
>
> I agree that /proc/<pid> is the correct place for this. I was just
> needing a hack to do some performance analysis and wanted to avoid
> reinventing the wheel if someone has done a patch to export processor
> affinity as I need to use it.
>
> Thanks,
> Bill
>
>
>
>
> _______________________________________________
> Lse-tech mailing list
> Lse-tech@...
> http://lists.sourceforge.net/lists/listinfo/lse-tech
--
Tim Wright - timw@... or timw@... or twright@...
IBM Linux Technology Center, Beaverton, Oregon
Interested in Linux scalability ? Look at http://lse.sourceforge.net/
"Nobody ever said I was charming, they said "Rimmer, you're a git!"" RD VI
|