[Bug 110950] RT cpu starvation due to driver threads or memory access

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jun 20 09:33:04 UTC 2019


https://bugs.freedesktop.org/show_bug.cgi?id=110950

--- Comment #4 from ANCELOT Stéphane <sancelot at numalliance.com> ---
(In reply to Chris Wilson from comment #1)
> I don't suppose you have a handy recipe for setting up a machine with an
> isolated RT CPU?
> 

If I understand correctly the question, the system is started with cpus 0
isolated thanks to isolcpus=1 kernel boot parameters.

When RT threads are started, they are migrated to cpus 0 using
pthread_setaffinity_np()



> https://gitlab.freedesktop.org/drm/igt-gpu-tools/blob/master/benchmarks/
> gem_syslatency.c
> 
> is a tool we use to try and assess the damage we cause to the system by
> measuring the latency of an RT thread. But I've never before setup an
> isolated cpu...
>
The problem can better being watched, if 2 RT tasks are used, first one starts
periodically at eg 3ms and lasts eg 300us, the next one is chained by the first
one and lasts eg 100us. adding 50us for each context change, you unfortunately
finish the last task at almost 1.3 ms when problem has occured. 


I can monitor tasks activation using serial com port and a scope meter.
Monitoring times thanks to clock_gettime  in threads is accurate too.

> Just to check, do you mean the cpu isolation feature in the kernel, or are
> just using cpuset?
> 
> And also to confirm you are talking about CPU preemption and not GPU
> preeemption?

If I understand , that is CPU preemption , the realtime task does not access
GPU. however graphic tasks (non RT tasks) are loading GPU unit.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are on the CC list for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20190620/3ae41254/attachment.html>


More information about the intel-gfx-bugs mailing list