Re: [Qemu-devel] [PATCH 0/2] Reduce lock contention on TCG hot-path

2016-07-02 Thread Paolo Bonzini
On 02/07/2016 09:08, Alex Bennée wrote: > Hmm I was doing from memory but it should be the mean of the sum of the > squares of the deviation: > > # calculate deviation > deviation = 0 > for r in res: > deviation += (r.time - avg_time)**2 > > deviation

Re: [Qemu-devel] [PATCH 0/2] Reduce lock contention on TCG hot-path

2016-07-02 Thread Alex Bennée
Emilio G. Cota writes: > On Fri, Jul 01, 2016 at 17:16:08 +0100, Alex Bennée wrote: > (snip) >> run 1: ret=0 (PASS), time=4.755824 (1/1) >> run 2: ret=0 (PASS), time=4.756076 (2/2) >> run 3: ret=0 (PASS), time=4.755916 (3/3) >> run 4: ret=0 (PASS), time=4.755853 (4/4) >> run 5: ret=0 (PASS), tim

Re: [Qemu-devel] [PATCH 0/2] Reduce lock contention on TCG hot-path

2016-07-01 Thread Emilio G. Cota
On Fri, Jul 01, 2016 at 17:16:08 +0100, Alex Bennée wrote: (snip) > run 1: ret=0 (PASS), time=4.755824 (1/1) > run 2: ret=0 (PASS), time=4.756076 (2/2) > run 3: ret=0 (PASS), time=4.755916 (3/3) > run 4: ret=0 (PASS), time=4.755853 (4/4) > run 5: ret=0 (PASS), time=4.755929 (5/5) > Results summary:

[Qemu-devel] [PATCH 0/2] Reduce lock contention on TCG hot-path

2016-07-01 Thread Alex Bennée
These patches have been on the list before in my base enabling patches series [1]. However while looking at some user-space work loads I realised there is no particular reason to hold them back until the MTTCG work is complete. I fixed one missing atomic_set in Sergey's patch and addressed his revi