Re: [PATCH] randomized delay in locking primitives, take 2

From: Maxim Sobolev <sobomax_at_freebsd.org>
Date: Mon, 1 Aug 2016 09:38:09 -0700
On Sun, Jul 31, 2016 at 1:36 PM, Mateusz Guzik <mjguzik_at_gmail.com> wrote:

> On Sun, Jul 31, 2016 at 07:03:08AM -0700, Adrian Chadd wrote:
> > Hi,
> >
> > Did you test on any 1, 2, 4, 8 cpu machines? just to see if there are
> > any performance degredations on lower count CPUs?
> >
>
> I did not test on machines which physically that few cpus, but I did
> test the impact on microbenchmark with 2 and 4 threads on the 80-way
> machine. There was no difference.
>

Well, arguably running 4 threads on a 80-way machine is not quite the same
as running the same 4 threads on 4-way or 8-way machine. Unless you
actually bind your test threads to a specific CPUs, on a bigger system
scheduler is free to migrate your thread on another CPU if all 4 are
spinning, this might not the option for smaller box. I suggest you at very
least re-run your benchmark on a virtual machine with small CPUs count
assigned, it should be quite easy to do so on your monster box.

-Maxim
Received on Mon Aug 01 2016 - 14:38:10 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:07 UTC