Re: Improve spinlock performance by moving work to one core
From: Ling Ma
Date: Wed Nov 04 2015 - 07:44:51 EST
Hi All,
(send again for linux-kernel@xxxxxxxxxxxxxxx)
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
Attachment:
adv_spinlock.tar.bz2
Description: BZip2 compressed data