Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1629500
| From | Steven Rostedt <rostedt@goodmis.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [RFC][PATCH tip/sched/core] sched/rt: Simplify the IPI rt balancing logic |
| Date | 2017-04-24 14:50 +0200 |
| Message-ID | <tzLBg-72B-25@gated-at.bofh.it> (permalink) |
| References | <tyTrc-5zp-11@gated-at.bofh.it> <tzI0G-4Nd-19@gated-at.bofh.it> <tzLBg-72B-21@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, 24 Apr 2017 08:43:18 -0400 Steven Rostedt <rostedt@goodmis.org> wrote: > On Mon, 24 Apr 2017 10:51:54 +0200 > Peter Zijlstra <peterz@infradead.org> wrote: > > > On Fri, Apr 21, 2017 at 10:49:29PM -0400, Steven Rostedt wrote: > > > When a CPU schedules in a lower priority task and wants to make sure > > > overloaded CPUs know about it. It increments the rto_loop_next. Then it does > > > an atomic_inc_return() on rto_loop_start. If the returned value is not "1", > > > then it does atomic_dec() on rt_loop_start and returns. If the value is "1", > > > then it will take the rto_lock to synchronize with a possible IPI being sent > > > around to the overloaded CPUs. > > > > > + start = atomic_inc_return(&rq->rd->rto_loop_start); > > > + if (start != 1) > > > + goto out; > > > > > +out: > > > + atomic_dec(&rq->rd->rto_loop_start); > > > > > > Did you just write a very expensive test-and-set trylock? > > Probably. I didn't know we had a generic one. Where is it? > > $ git grep test_and_set |grep trylock > fs/jfs/jfs_metapage.c:#define trylock_metapage(mp) test_and_set_bit_lock(META_locked, &(mp)->flag) > > I don't think the above is what you mean. Or do you mean to just use test_and_set instead? -- Steve
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[RFC][PATCH tip/sched/core] sched/rt: Simplify the IPI rt balancing logic Steven Rostedt <rostedt@goodmis.org> - 2017-04-22 05:00 +0200
Re: [RFC][PATCH tip/sched/core] sched/rt: Simplify the IPI rt balancing logic Steven Rostedt <rostedt@goodmis.org> - 2017-04-22 20:50 +0200
Re: [RFC][PATCH tip/sched/core] sched/rt: Simplify the IPI rt balancing logic Peter Zijlstra <peterz@infradead.org> - 2017-04-24 11:00 +0200
Re: [RFC][PATCH tip/sched/core] sched/rt: Simplify the IPI rt balancing logic Steven Rostedt <rostedt@goodmis.org> - 2017-04-24 14:50 +0200
Re: [RFC][PATCH tip/sched/core] sched/rt: Simplify the IPI rt balancing logic Steven Rostedt <rostedt@goodmis.org> - 2017-04-24 14:50 +0200
Re: [RFC][PATCH tip/sched/core] sched/rt: Simplify the IPI rt balancing logic Peter Zijlstra <peterz@infradead.org> - 2017-04-24 15:00 +0200
Re: [RFC][PATCH tip/sched/core] sched/rt: Simplify the IPI rt balancing logic Steven Rostedt <rostedt@goodmis.org> - 2017-04-24 15:30 +0200
Re: [RFC][PATCH tip/sched/core] sched/rt: Simplify the IPI rt balancing logic Peter Zijlstra <peterz@infradead.org> - 2017-04-24 16:00 +0200
Re: [RFC][PATCH tip/sched/core] sched/rt: Simplify the IPI rt balancing logic Peter Zijlstra <peterz@infradead.org> - 2017-04-24 11:00 +0200
Re: [RFC][PATCH tip/sched/core] sched/rt: Simplify the IPI rt balancing logic Steven Rostedt <rostedt@goodmis.org> - 2017-04-24 14:50 +0200
[PATCH RT v2] sched/rt: Simplify the IPI rt balancing logic Steven Rostedt <rostedt@goodmis.org> - 2017-04-24 18:00 +0200
csiph-web