Thread (6 messages) 6 messages, 3 authors, 2024-03-21

Re: [RFC][PATCH] tracing: Introduce restart_critical_timings()

From: Steven Rostedt <rostedt@goodmis.org>
Date: 2024-03-20 17:55:56
Also in: linux-rt-users, lkml

On Wed, 20 Mar 2024 13:15:39 -0400
Mathieu Desnoyers [off-list ref] wrote:
quoted
I would like to introduce restart_critical_timings() and place it in
locations that have this behavior.  
Is there any way you could move this to need_resched() rather than
sprinkle those everywhere ?
Because need_resched() itself does not mean it's going to schedule
immediately. I looked at a few locations that need_resched() is called.
Most are in idle code where the critical timings are already handled.

I'm not sure I'd add it for places like mm/memory.c or drivers/md/bcache/btree.c.

A lot of places look to use it more for PREEMPT_NONE situations as a open
coded cond_resched().

The main reason this one is particularly an issue, is that it spins as long
as the owner is still running. Which may be some time, as here it was 7ms.

-- Steve
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help