2015-11-04 12:44:48

by Ling Ma

[permalink] [raw]
Subject: Re: Improve spinlock performance by moving work to one core

Hi All,

(send again for [email protected])

Spinlock caused cache line ping-pong between cores,
we have to spend lots of time to get serialized execution.
However if we present the serialized work to one core,
it will help us save much time.

In the attachment we changed code based on queued spinlock
The data tell us the spinlock performance can be improved by over 2X on 68cores
over 3X on 2 cores (Intel 2699v3 2 sockets, COD off, HT on)

In the following time we will try to send out the formal patch

Appreciate your comments.

Thanks


Attachments:
adv_spinlock.tar.bz2 (5.11 kB)