Re: Regression on rt kernel while using POSIX timers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 3 Mar 2017, Patel, Vedang wrote:
> I now have the following concerns and comments:
> 1. real-time kernel vs. Mainline kernel: The real-time kernel is worse
> with POSIX timers than the mainline kernel. This is odd. Is this
> because the softirqs are not the same anymore(Sorry, I am still not
> familiar with what they have become. I deduced the "not the same" part
> from commit messages/comments in code. :))? Also, in https://git.kernel
> .org/cgit/linux/kernel/git/rt/linux-stable-rt.git/commit/?h=v4.4-
> rt&id=4aa7cba57f73acf1e3e4998ae1650965317c2de1, it is mentioned:
> "
> Bring back the softirq split for now, until we fixed the signal
> delivery problem for real.
> "
> What signal delivery problem is being referred to?

The problem with these timers is that the heavy lifting of signal
processing happens in "stolen" context. That means that the work is not
done in the context of the process/thread which armed the timer, but in
softirq context.

What we really want here is the following:

     timer expires()
     	   mark timer expired in thread/process
	   eventually wakeup thread

This is simple to achieve for timers where the signal is directed to a
thread, but it's way more complex for process wide signal delivery.

> 2. In the case the CPU affinity is set, The CPU is shared between
> cyclictest thread and the ktimersoftd thread. So, in the end, 1 CPU
> migration is cheaper than 3 context switches... Is this the right
> analysis? I know this will vary from application to application.

No, migration is not generally cheaper, in most cases its more expensive.

Thanks,

	tglx
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux