Skip to contentSkip to conversation

/proc/xenomai/affinity and T_CPU(n) in

Xenomai-help M. Koehrer 2 participants 2 messages Dec 20, 2007 – Dec 27, 2007

lore
Share & tools
lore

M. Koehrer

author
#0 lore raw

rt_task_create
Cc: [email protected], [email protected]
In-Reply-To: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
References: <[email protected]> <[email protected]>
X-ngMessageSubType: MessageSubType_MAIL
X-WebmailclientIP: 91.32.110.150

Hi Jan,

does this mean that the value of /proc/xenomai/affinity is only relevant fo= r creation of a new task?
I.e., once it is created I can modify it without "destroying" anything in t= he already created tasks?=20
If this is the case I think I get everything up and running following your = hint.

Perhaps the word "affinity" does not exactly describe the behaviour here as=
it is not only affinity but also=20
"allowed CPUs for new tasks"....

Thanks a lot.

Regards

Mathias

Quoted 6 lines

=20
Suggested procedure:
1. set global affinity for RTnet and start up the stack
2. set global affinity for your application (or open it) and start that one up
=20

--=20
Mathias Koehrer
[email protected]

Viel oder wenig? Schnell oder langsam? Unbegrenzt surfen + telefonieren ohne Zeit- und Volumenbegrenzung? DAS TOP ANGEBOT F=DCR ALLE NEUEINSTEIGER Jetzt bei Arcor: g=FCnstig und schnell mit DSL - das All-Inclusive-Paket f=FCr clevere Doppel-Sparer, nur 29,95 Euro inkl. DSL- und ISDN-Grundgeb= =FChr!
http://www.arcor.de/rd/emf-dsl-2

#1 lore raw
Quoted 8 lines · M. Koehrer

Hi Jan,

does this mean that the value of /proc/xenomai/affinity is only relevant fo= r creation of a new task?
I.e., once it is created I can modify it without "destroying" anything in t= he already created tasks?=20
If this is the case I think I get everything up and running following your = hint.

If your worries are that modifying /proc/xenomai/affinity would force running tasks to new CPUs: no, there is no such side effect. The affinity mask only "burns" the CPU affinity into the task structure when they are created. Later states of that mask do not impact existing tasks.

Quoted 4 lines

Perhaps the word "affinity" does not exactly describe the behaviour here as=
it is not only affinity but also=20
"allowed CPUs for new tasks"....

Feel free to define the precise semantic of this feature e.g. in the wiki :). In the end, expectations and associations always change the meaning of terms in the eye of the user.

Jan