login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
August
»
22
Re: [PATCH 2/2] smp_call_function: use rwlocks on queues rather than rcu
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Pekka Enberg
Subject:
Re: [PATCH 2/2] smp_call_function: use rwlocks on queues rather than rcu
Date: Friday, August 22, 2008 - 12:06 am
Hi Ingo, On Fri, Aug 22, 2008 at 9:28 AM, Ingo Molnar <mingo@elte.hu> wrote:
quoted text
> > * Jeremy Fitzhardinge <jeremy@goop.org> wrote: > >> RCU can only control the lifetime of allocated memory blocks, which >> forces all the call structures to be allocated. This is expensive >> compared to allocating them on the stack, which is the common case for >> synchronous calls. >> >> This patch takes a different approach. Rather than using RCU, the >> queues are managed under rwlocks. Adding or removing from the queue >> requires holding the lock for writing, but multiple CPUs can walk the >> queues to process function calls under read locks. In the common >> case, where the structures are stack allocated, the calling CPU need >> only wait for its call to be done, take the lock for writing and >> remove the call structure. >> >> Lock contention - particularly write vs read - is reduced by using >> multiple queues. > > hm, is there any authorative data on what is cheaper on a big box, a > full-blown MESI cache miss that occurs for every reader in this new > fastpath, or a local SLAB/SLUB allocation+free that occurs with the > current RCU approach?
Christoph might have an idea about it. --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 2/2] smp_call_function: use rwlocks on queues rathe ...
, Jeremy Fitzhardinge
, (Thu Aug 21, 5:29 pm)
Re: [PATCH 2/2] smp_call_function: use rwlocks on queues r ...
, Nick Piggin
, (Thu Aug 21, 6:53 pm)
Re: [PATCH 2/2] smp_call_function: use rwlocks on queues r ...
, Ingo Molnar
, (Thu Aug 21, 11:28 pm)
Re: [PATCH 2/2] smp_call_function: use rwlocks on queues r ...
, Pekka Enberg
, (Fri Aug 22, 12:06 am)
Re: [PATCH 2/2] smp_call_function: use rwlocks on queues r ...
, Ingo Molnar
, (Fri Aug 22, 12:12 am)
Re: [PATCH 2/2] smp_call_function: use rwlocks on queues r ...
, Nick Piggin
, (Fri Aug 22, 2:12 am)
Re: [PATCH 2/2] smp_call_function: use rwlocks on queues r ...
, Christoph Lameter
, (Fri Aug 22, 7:01 am)
Re: [PATCH 2/2] smp_call_function: use rwlocks on queues r ...
, Paul E. McKenney
, (Fri Aug 22, 8:11 am)
Re: [PATCH 2/2] smp_call_function: use rwlocks on queues r ...
, Christoph Lameter
, (Fri Aug 22, 10:14 am)
Re: [PATCH 2/2] smp_call_function: use rwlocks on queues r ...
, Paul E. McKenney
, (Fri Aug 22, 11:29 am)
Re: [PATCH 2/2] smp_call_function: use rwlocks on queues r ...
, Andi Kleen
, (Fri Aug 22, 11:33 am)
Re: [PATCH 2/2] smp_call_function: use rwlocks on queues r ...
, Jeremy Fitzhardinge
, (Fri Aug 22, 11:35 am)
Re: [PATCH 2/2] smp_call_function: use rwlocks on queues r ...
, Christoph Lameter
, (Fri Aug 22, 11:36 am)
Re: [PATCH 2/2] smp_call_function: use rwlocks on queues r ...
, Paul E. McKenney
, (Fri Aug 22, 12:52 pm)
Re: [PATCH 2/2] smp_call_function: use rwlocks on queues r ...
, Christoph Lameter
, (Fri Aug 22, 1:03 pm)
Re: [PATCH 2/2] smp_call_function: use rwlocks on queues r ...
, Paul E. McKenney
, (Fri Aug 22, 1:53 pm)
Re: [PATCH 2/2] smp_call_function: use rwlocks on queues r ...
, Paul E. McKenney
, (Fri Aug 22, 3:40 pm)
Re: [PATCH 2/2] smp_call_function: use rwlocks on queues r ...
, Andi Kleen
, (Sat Aug 23, 12:34 am)
Re: [PATCH 2/2] smp_call_function: use rwlocks on queues r ...
, Jeremy Fitzhardinge
, (Sat Aug 23, 9:55 pm)
Re: [PATCH 2/2] smp_call_function: use rwlocks on queues r ...
, Andi Kleen
, (Sun Aug 24, 2:01 am)
Re: [PATCH 2/2] smp_call_function: use rwlocks on queues r ...
, Peter Zijlstra
, (Mon Aug 25, 3:31 am)
Re: [PATCH 2/2] smp_call_function: use rwlocks on queues r ...
, Paul E. McKenney
, (Mon Aug 25, 8:12 am)
Re: [PATCH 2/2] smp_call_function: use rwlocks on queues r ...
, Peter Zijlstra
, (Mon Aug 25, 8:22 am)
Re: [PATCH 2/2] smp_call_function: use rwlocks on queues r ...
, Christoph Lameter
, (Mon Aug 25, 8:44 am)
Re: [PATCH 2/2] smp_call_function: use rwlocks on queues r ...
, Christoph Lameter
, (Mon Aug 25, 8:46 am)
Re: [PATCH 2/2] smp_call_function: use rwlocks on queues r ...
, Peter Zijlstra
, (Mon Aug 25, 8:51 am)
Re: [PATCH 2/2] smp_call_function: use rwlocks on queues r ...
, Paul E. McKenney
, (Mon Aug 25, 1:04 pm)
Re: [PATCH 2/2] smp_call_function: use rwlocks on queues r ...
, Paul E. McKenney
, (Mon Aug 25, 1:05 pm)
Re: [PATCH 2/2] smp_call_function: use rwlocks on queues
, Nick Piggin
, (Mon Aug 25, 10:13 pm)
Re: [PATCH 2/2] smp_call_function: use rwlocks on queues r ...
, Paul E. McKenney
, (Tue Aug 26, 6:40 am)
Re: [PATCH 2/2] smp_call_function: use rwlocks on queues r ...
, Paul E. McKenney
, (Tue Aug 26, 6:43 am)
Re: [PATCH 2/2] smp_call_function: use rwlocks on queues r ...
, Peter Zijlstra
, (Tue Aug 26, 7:07 am)
Re: [PATCH 2/2] smp_call_function: use rwlocks on queues r ...
, Paul E. McKenney
, (Wed Aug 27, 8:16 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
Re: [PATCH 1/1] staging: hv: Fix race condition on IC channel initialization (modi...
Brian Swetland
Re: Attempted summary of suspend-blockers LKML thread
Sam Ravnborg
[PATCH 05/11] x86: add X86_64 dependency to x86_64 specific symbols in Kconfig.x86...
Christoph Lameter
Re: [PATCH 02/40] mm: slab allocation fairness
Alexey Dobriyan
Re: [2.6.22.2 review 09/84] Fix rfkill IRQ flags.
git
:
Felipe Contreras
Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins
Paolo Ciarrocchi
Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins
Johannes Schindelin
Re: [PATCH] Fix install-doc-quick target
Peter Oberndorfer
Subject: [PATCH] fix stg edit command
Sverre Rabbelier
Re: [GSoC] What is status of Git's Google Summer of Code 2008 projects?
linux-netdev
:
Andi Kleen
Re: RFC: Nagle latency tuning
Badalian Vyacheslav
Re: tc filter flow hash question
Jarek Poplawski
Re: tc filter flow hash question
David Miller
Re: [RFC 0/5] generic rx recycling
Chuck Lever
Re: [RFC] ipv6: Change %pI6 format to output compacted addresses?
git-commits-head
:
Linux Kernel Mailing List
New device ID for sc92031 [1088:2031]
Linux Kernel Mailing List
e1000e: Expose MDI-X status via ethtool change
Linux Kernel Mailing List
NFS: Store pages from an NFS inode into a local cache
Linux Kernel Mailing List
powerpc/kexec: Add support for FSL-BookE
Linux Kernel Mailing List
arm/imx/gpio: GPIO_INT_{HIGH,LOW}_LEV are not necessarily constant
openbsd-misc
:
Theo de Raadt
Re: RES: OpenBSD on IBM System X3550 7879
Bret S. Lambert
Re: any web management gui for pf ?
Rob Shepherd
x86 hardware for router system
Leif Blixt
Re: Force passwordcheck in login.conf
Nick Holland
Re: Install OpenBSD from USB ?
Colocation donated by:
Syndicate