Message-ID: <54EFA7C7.2040606@xenomai.org> Date: Fri, 27 Feb 2015 00:09:59 +0100 From: Philippe Gerum MIME-Version: 1.0 References: <448ufmewxt.fsf@be-well.ilk.org> <20150224233439.GL14148@hermes.click-hack.org> <44siduq7us.fsf@be-well.ilk.org> <54EE07A9.4040702@xenomai.org> <444mq9lo5c.fsf@be-well.ilk.org> <44vbipk8m9.fsf@be-well.ilk.org> <54EF014A.9000902@xenomai.org> <447fv4sk55.fsf@lowell-desk.lan> <54EF5E45.30907@xenomai.org> <44a900eaqu.fsf@lowell-desk.lan> <20150226201100.GB434@hermes.click-hack.org> In-Reply-To: <20150226201100.GB434@hermes.click-hack.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai] interrupt service List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gilles Chanteperdrix , Lowell Gilbert Cc: xenomai@xenomai.org On 02/26/15 21:11, Gilles Chanteperdrix wrote: > Another problem may be in handling the /proc/xenomai/affinity, so > could you try without using it? Same for isolcpus. If the ISR runs > on cpu0 and the tasks run on cpu1, an IPI should be sent in > __xnpod_schedule to wake up the task blocked in read, If the IRQ rate is 100Khz, the amount of sched IPIs won't match the number of timing IRQs received, unless the RTDM task is able to return quickly enough to a blocked state, pending on the event. This said, sched IPIs will add to the overhead for sure. Maybe the RTDM task should process events generated by the ISR in bulks, if ever possible for the application logic. -- Philippe.