This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: CPU affinity in eCos
- From: Nick Garnett <nickg at ecoscentric dot com>
- To: Archana Sastry <sastry dot archana at gmail dot com>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: 14 Oct 2009 11:40:45 +0100
- Subject: Re: [ECOS] CPU affinity in eCos
- References: <79cf79f70910131050p4683532dob27691f9c57606d@mail.gmail.com>
Archana Sastry <sastry.archana@gmail.com> writes:
> Hi everyone,
>
> I am a newbie to eCos, and I am trying to bind my thread to a
> particular processor (sort of Hard CPU affinity). I need this
> capability for some kind of deterministic testing. I have gone through
> a previous post on the ecos-discuss mailing list dated: 02-14-2007,
> title: pthread processor binding.
>
> For this, I have looked at the sched.cxx and sched.hxx files. Could
> anyone please provide me with a few pointers regarding this, as in
> what functions I should be looking into if it is possible with minimal
> change to the kernel.
Processor affinity only makes sense for an SMP system. SMP support in
eCos is experimental and incomplete. It has not been maintained and
has probably suffered from bitrot, application and device driver
support are rudimentary. Given that, worrying about more advanced
features such as CPU affinity is somewhat premature.
I don't know what your target hardware is, but if it involves multiple
CPUs, eCos is probably not currently the right OS to use for it.
--
Nick Garnett eCos Kernel Architect
eCosCentric Limited http://www.eCosCentric.com The eCos experts
Barnwell House, Barnwell Drive, Cambridge, UK. Tel: +44 1223 245571
Registered in England and Wales: Reg No: 4422071
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss