Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1622376
| From | "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: There is a Tasks RCU stall warning |
| Date | 2017-04-12 19:10 +0200 |
| Message-ID | <tvtWh-7dn-9@gated-at.bofh.it> (permalink) |
| References | (5 earlier) <tvdeN-58v-9@gated-at.bofh.it> <tvrKN-5EQ-9@gated-at.bofh.it> <tvrUu-5IE-17@gated-at.bofh.it> <tvtjA-6IX-31@gated-at.bofh.it> <tvtMD-6Uu-33@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, Apr 12, 2017 at 12:57:22PM -0400, Steven Rostedt wrote: > On Wed, 12 Apr 2017 09:27:54 -0700 > "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> wrote: > > > On Wed, Apr 12, 2017 at 10:59:37AM -0400, Steven Rostedt wrote: > > > On Wed, 12 Apr 2017 07:48:00 -0700 > > > "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> wrote: > > > > > > > > > > Like this? (Untested, but builds at least some of the time.) > > > > > > > > > > > > Not like that... :-/ Update on its way. > > > > > > > > > > Perhaps more like this. Started rcutorture on it, will see how it goes. > > > > > > I just love the above discussion with yourself ;-) > > > > Talking to oneself used to cause passersby to get really bent out of > > shape. But one big benefit of ubiquitous cellphones is that now > > people just assume that you are talking on a cellphone that they > > cannot see. ;-) > > > > > > Do you need this patch? If so, I should do some more work on it to > > > > eliminate the extra common-case branch on the scheduler fastpath. > > > > > > Do I still need this patch? Maybe. :-) > > > > > > I changed my benchmark test to call cond_resched_rcu_qs() instead and > > > that appears to fix the issue. But I'm not sure if there's any other > > > kthread out there that just calls cond_resched() or schedule(). > > > > > > Actually, I think it is still a good idea to have it. I believe that it > > > will still allow synchronize_rcu_tasks() to progress even if there's a > > > kthread task that is constantly being woken up, and never sleeps when > > > it calls schedule(), as it may always have the R state. > > > > OK, will optimize it a bit. When are you planning to get this in? > > > > Well, I added the use case for synchronize_rcu_tasks() in my current > for-next. I'll have to make sure I get the schedule_idle() in as well > as my update to the event benchmark thread as well. > > I don't think anything will truly break without it yet. But that's > assuming there's not another kernel thread somewhere that just spins > calling schedule. > > And this patch will still speed up those that do call > synchronize_rcu_tasks(). But that's an optimization and not really a > fix. The upcoming v4.12 merge window, then? Thanx, Paul
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
There is a Tasks RCU stall warning "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2017-04-11 23:20 +0200
Re: There is a Tasks RCU stall warning Steven Rostedt <rostedt@goodmis.org> - 2017-04-11 23:30 +0200
Re: There is a Tasks RCU stall warning "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2017-04-11 23:40 +0200
Re: There is a Tasks RCU stall warning Steven Rostedt <rostedt@goodmis.org> - 2017-04-11 23:40 +0200
Re: There is a Tasks RCU stall warning Steven Rostedt <rostedt@goodmis.org> - 2017-04-11 23:40 +0200
Re: There is a Tasks RCU stall warning "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2017-04-11 23:50 +0200
Re: There is a Tasks RCU stall warning "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2017-04-12 00:00 +0200
Re: There is a Tasks RCU stall warning Steven Rostedt <rostedt@goodmis.org> - 2017-04-12 00:20 +0200
Re: There is a Tasks RCU stall warning "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2017-04-12 01:10 +0200
Re: There is a Tasks RCU stall warning "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2017-04-12 01:10 +0200
Re: There is a Tasks RCU stall warning "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2017-04-12 01:20 +0200
Re: There is a Tasks RCU stall warning "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2017-04-12 05:30 +0200
Re: There is a Tasks RCU stall warning Steven Rostedt <rostedt@goodmis.org> - 2017-04-12 15:20 +0200
Re: There is a Tasks RCU stall warning "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2017-04-12 16:30 +0200
Re: There is a Tasks RCU stall warning Steven Rostedt <rostedt@goodmis.org> - 2017-04-12 16:50 +0200
Re: There is a Tasks RCU stall warning "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2017-04-12 17:20 +0200
Re: There is a Tasks RCU stall warning Steven Rostedt <rostedt@goodmis.org> - 2017-04-12 18:00 +0200
Re: There is a Tasks RCU stall warning "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2017-04-12 18:30 +0200
Re: There is a Tasks RCU stall warning Steven Rostedt <rostedt@goodmis.org> - 2017-04-12 18:50 +0200
Re: There is a Tasks RCU stall warning "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2017-04-12 16:50 +0200
Re: There is a Tasks RCU stall warning Steven Rostedt <rostedt@goodmis.org> - 2017-04-12 17:00 +0200
Re: There is a Tasks RCU stall warning "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2017-04-12 18:30 +0200
Re: There is a Tasks RCU stall warning Steven Rostedt <rostedt@goodmis.org> - 2017-04-12 19:00 +0200
Re: There is a Tasks RCU stall warning "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2017-04-12 19:10 +0200
Re: There is a Tasks RCU stall warning Steven Rostedt <rostedt@goodmis.org> - 2017-04-12 19:20 +0200
Re: There is a Tasks RCU stall warning "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2017-04-12 22:10 +0200
Re: There is a Tasks RCU stall warning Steven Rostedt <rostedt@goodmis.org> - 2017-04-12 00:00 +0200
Re: There is a Tasks RCU stall warning Steven Rostedt <rostedt@goodmis.org> - 2017-04-11 23:40 +0200
csiph-web