On 2018-07-01 20:18, Avi Kivity wrote:
>
> On 2018-07-01 19:07, Avi Kivity wrote:
>> We can predict that need_preempt() will usually return false, helping
>> the compiler push the prempted path out of the hot path.
>> ---
>
> This gave 3.2% improvement on Scylla's perf_simple_query --smp 1
> --operations-per-shard 2000000.
>
btw, we could achieve a similar improvement by dropping the
need_preempt() check from then and then_wrapped. While the optimizations
overlap a lot, we should apply both.
--
You received this message because you are subscribed to the Google Groups "seastar-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to seastar-dev...@googlegroups.com.
To post to this group, send email to seast...@googlegroups.com.
Visit this group at https://groups.google.com/group/seastar-dev.
To view this discussion on the web visit https://groups.google.com/d/msgid/seastar-dev/45904944-c95d-dadc-2b70-a8b45629f7c9%40scylladb.com.
For more options, visit https://groups.google.com/d/optout.
On Sun, Jul 1, 2018, 7:27 PM Avi Kivity, <a...@scylladb.com> wrote:
On 2018-07-01 20:18, Avi Kivity wrote:
>
> On 2018-07-01 19:07, Avi Kivity wrote:
>> We can predict that need_preempt() will usually return false, helping
>> the compiler push the prempted path out of the hot path.
>> ---
>
> This gave 3.2% improvement on Scylla's perf_simple_query --smp 1
> --operations-per-shard 2000000.
>
btw, we could achieve a similar improvement by dropping the
need_preempt() check from then and then_wrapped. While the optimizations
overlap a lot, we should apply both.
If you remember, I saw a 3 % improvement doing that once.
We ended up not applying the patch out of worry that it couls break something.
On 2018-07-01 20:29, Glauber Costa wrote:
On Sun, Jul 1, 2018, 7:27 PM Avi Kivity, <a...@scylladb.com> wrote:
On 2018-07-01 20:18, Avi Kivity wrote:
>
> On 2018-07-01 19:07, Avi Kivity wrote:
>> We can predict that need_preempt() will usually return false, helping
>> the compiler push the prempted path out of the hot path.
>> ---
>
> This gave 3.2% improvement on Scylla's perf_simple_query --smp 1
> --operations-per-shard 2000000.
>
btw, we could achieve a similar improvement by dropping the
need_preempt() check from then and then_wrapped. While the optimizations
overlap a lot, we should apply both.
If you remember, I saw a 3 % improvement doing that once.
Yes I remember.
We ended up not applying the patch out of worry that it couls break something.
We could apply it and fix breakage later. Problems will be where we use recursion for looping.
To unsubscribe from this group and stop receiving emails from it, send an email to seastar-dev+unsubscribe@googlegroups.com.