lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-id: <47BC4543.2050503@acm.org>
Date:	Wed, 20 Feb 2008 09:20:35 -0600
From:	Corey Minyard <minyard@....org>
To:	Matt Domsch <Matt_Domsch@...l.com>
Cc:	Andrew Morton <akpm@...l.org>,
	Konstantin Baydarov <kbaidarov@...mvista.com>,
	OpenIPMI Developers <openipmi-developer@...ts.sourceforge.net>,
	Linux Kernel <linux-kernel@...r.kernel.org>
Subject: Re: [Openipmi-developer] [PATCH 3/4] IPMI: convert locked counters to
 atomics

Matt Domsch wrote:
> On Thu, Feb 14, 2008 at 12:30:51PM -0600, Corey Minyard wrote:
>   
>> From: Konstantin Baydarov <kbaidarov@...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?
>   
I agree, I'll put this in the plan for the future.  I don't have time to 
do it at this point, but the changes made in these patches should make 
it easy to change in the future.

Thanks,

-corey
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ