lkml.org 
[lkml]   [2008]   [Feb]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [Openipmi-developer] [PATCH 3/4] IPMI: convert locked counters to atomics
    On Thu, Feb 14, 2008 at 12:30:51PM -0600, Corey Minyard wrote:
    > From: Konstantin Baydarov <kbaidarov@ru.mvista.com>
    >
    > Atomics are a lot more efficient and neat than using a lock.

    per_cpu variables are a lot more efficient and neat than using locks
    for simple statistics. no cache line bouncing to increment the
    counter. Are these read so often that atomics are really better?

    Thanks,
    Matt

    --
    Matt Domsch
    Linux Technology Strategist, Dell Office of the CTO
    linux.dell.com & www.dell.com/linux


    \
     
     \ /
      Last update: 2008-02-16 17:47    [W:3.259 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site