lkml.org 
[lkml]   [2014]   [Jul]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] scsi: Remove some false sharing in Scsi_Host / Scsi_Device
On Fri, Jul 11, 2014 at 01:25:10PM -0700, Andi Kleen wrote:
> From: Andi Kleen <ak@linux.intel.com>
>
> These data structures are accessed by different CPUs and have some
> fields which are mostly read only and others which are frequently
> written. Separate some common ones into separate cache line
> to minimize false sharing while submitting a command.
>
> This allows scsi_dispatch_cmd to do more work with shared clean
> cache lines.
>
> - Move the cmd_serial_number to the end before the host data
> - Separate write common fields from read mostly fields in
> the scsi device

Looks useful, but please provide some numbers on how this actually
helps.



\
 
 \ /
  Last update: 2014-07-13 14:21    [W:0.134 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site