Re: [PATCH][RT] netpoll: Always take poll_lock when doing polling
From: Clark Williams <hidden>
Date: 2016-06-06 12:03:34
Also in:
lkml, netdev
Attachments
- (unnamed) [application/pgp-signature] 801 bytes
From: Clark Williams <hidden>
Date: 2016-06-06 12:03:34
Also in:
lkml, netdev
On Sun, 5 Jun 2016 08:16:58 -0700 Alison Chaiken [off-list ref] wrote:
Steven Rostedt suggests in reference to "[PATCH][RT] netpoll: Always take poll_lock when doing polling"quoted
quoted
[ Alison, can you try this patch ]Sebastian follows up:quoted
Alison, did you try it?Sorry for not responding sooner. I was hoping to come to a complete understanding of the system before replying . . . I did try that patch, but it hasn't made much difference. Let me back up and restate the problem I'm trying to solve, which is that a DRA7X OMAP5 SOC system running a patched 4.1.18-ti-rt kernel has a main event loop in user space that misses latency deadlines under the test condition where I ping-flood it from another box. While in production, the system would not be expected to support high rates of network traffic, but the instability with the ping-flood makes me wonder if there aren't underlying configuration problems.
What sort of tunings have you applied, regarding thread and interrupt affinity? If you have not, you might try isolating one of your cores and just run the user-space application on that core, with interrupt threads running on the other core. You could use the 'tuna' application like this: $ sudo tuna --cpus=1 --isolate This will move all the threads that *can* be moved off of cpu1 (probably to cpu0 since I believe the OMAP5 is a dual-core processor?). Also, what scheduler policy/priority are you using for the user-space application? Clark