login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
August
»
31
Re: [PATCH 03/10] Use percpu stats
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Christoph Lameter
Subject:
Re: [PATCH 03/10] Use percpu stats
Date: Tuesday, August 31, 2010 - 2:35 pm
On Tue, 31 Aug 2010, Eric Dumazet wrote:
quoted text
> > Yes, this_cpu_add() seems sufficient. I can't recall why I used u64_stats_* > > but if it's not required for atomic access to 64-bit then why was it added to > > the mainline in the first place? > > Because we wanted to have fast 64bit counters, even on 32bit arches, and > this has litle to do with 'atomic' on one entity, but a group of > counters. (check drivers/net/loopback.c, lines 91-94). No lock prefix > used in fast path. > > We also wanted readers to read correct values, not a value being changed > by a writer, with inconsistent 32bit halves. SNMP applications want > monotonically increasing counters. > > this_cpu_add()/this_cpu_read() doesnt fit. > > Even for single counter, this_cpu_read(64bit) is not using an RMW > (cmpxchg8) instruction, so you can get very strange results when low > order 32bit wraps.
How about fixing it so that everyone benefits? --
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 00/10] zram: various improvements and cleanups
, Nitin Gupta
, (Mon Aug 9, 10:26 am)
[PATCH 01/10] Replace ioctls with sysfs interface
, Nitin Gupta
, (Mon Aug 9, 10:26 am)
[PATCH 02/10] Remove need for explicit device initialization
, Nitin Gupta
, (Mon Aug 9, 10:26 am)
[PATCH 03/10] Use percpu stats
, Nitin Gupta
, (Mon Aug 9, 10:26 am)
[PATCH 04/10] Use percpu buffers
, Nitin Gupta
, (Mon Aug 9, 10:26 am)
[PATCH 05/10] Reduce per table entry overhead by 4 bytes
, Nitin Gupta
, (Mon Aug 9, 10:26 am)
[PATCH 06/10] Block discard support
, Nitin Gupta
, (Mon Aug 9, 10:26 am)
[PATCH 07/10] Increase compressed page size threshold
, Nitin Gupta
, (Mon Aug 9, 10:26 am)
[PATCH 08/10] Some cleanups
, Nitin Gupta
, (Mon Aug 9, 10:26 am)
[PATCH 09/10] Update zram documentation
, Nitin Gupta
, (Mon Aug 9, 10:26 am)
[PATCH 10/10] Document sysfs entries
, Nitin Gupta
, (Mon Aug 9, 10:26 am)
Re: [PATCH 07/10] Increase compressed page size threshold
, Pekka Enberg
, (Mon Aug 9, 11:32 am)
Re: [PATCH 01/10] Replace ioctls with sysfs interface
, Pekka Enberg
, (Mon Aug 9, 11:34 am)
Re: [PATCH 02/10] Remove need for explicit device initiali ...
, Pekka Enberg
, (Mon Aug 9, 11:36 am)
Re: [PATCH 03/10] Use percpu stats
, Pekka Enberg
, (Mon Aug 9, 11:44 am)
Re: [PATCH 04/10] Use percpu buffers
, Pekka Enberg
, (Mon Aug 9, 11:57 am)
Re: [PATCH 05/10] Reduce per table entry overhead by 4 bytes
, Pekka Enberg
, (Mon Aug 9, 11:59 am)
Re: [PATCH 08/10] Some cleanups
, Pekka Enberg
, (Mon Aug 9, 12:02 pm)
Re: [PATCH 10/10] Document sysfs entries
, Pekka Enberg
, (Mon Aug 9, 12:02 pm)
Re: [PATCH 06/10] Block discard support
, Pekka Enberg
, (Mon Aug 9, 12:03 pm)
Re: [PATCH 06/10] Block discard support
, Jens Axboe
, (Mon Aug 9, 7:23 pm)
Re: [PATCH 01/10] Replace ioctls with sysfs interface
, Nitin Gupta
, (Mon Aug 9, 8:06 pm)
Re: [PATCH 02/10] Remove need for explicit device initiali ...
, Nitin Gupta
, (Mon Aug 9, 8:38 pm)
Re: [PATCH 03/10] Use percpu stats
, Andrew Morton
, (Mon Aug 9, 9:34 pm)
Re: [PATCH 04/10] Use percpu buffers
, Nitin Gupta
, (Mon Aug 9, 9:47 pm)
Re: [PATCH 06/10] Block discard support
, Nitin Gupta
, (Mon Aug 9, 9:54 pm)
Re: [PATCH 05/10] Reduce per table entry overhead by 4 bytes
, Nitin Gupta
, (Mon Aug 9, 9:55 pm)
Re: [PATCH 04/10] Use percpu buffers
, Pekka Enberg
, (Mon Aug 9, 10:05 pm)
Re: [PATCH 04/10] Use percpu buffers
, Nitin Gupta
, (Mon Aug 9, 10:32 pm)
Re: [PATCH 04/10] Use percpu buffers
, Pekka Enberg
, (Tue Aug 10, 12:36 am)
Re: [PATCH 06/10] Block discard support
, Jens Axboe
, (Tue Aug 10, 8:54 am)
Re: [PATCH 03/10] Use percpu stats
, Nitin Gupta
, (Wed Aug 11, 9:39 am)
Re: [PATCH 03/10] Use percpu stats
, Andrew Morton
, (Wed Aug 11, 10:18 am)
Re: [PATCH 03/10] Use percpu stats
, Christoph Lameter
, (Mon Aug 30, 9:20 am)
Re: [PATCH 03/10] Use percpu stats
, Nitin Gupta
, (Tue Aug 31, 1:31 pm)
Re: [PATCH 03/10] Use percpu stats
, Eric Dumazet
, (Tue Aug 31, 2:28 pm)
Re: [PATCH 03/10] Use percpu stats
, Christoph Lameter
, (Tue Aug 31, 2:35 pm)
Re: [PATCH 03/10] Use percpu stats
, Eric Dumazet
, (Tue Aug 31, 2:41 pm)
Re: [PATCH 00/10] zram: various improvements and cleanups
, Greg KH
, (Tue Aug 31, 3:37 pm)
Re: [PATCH 01/10] Replace ioctls with sysfs interface
, Dave Hansen
, (Tue Aug 31, 4:06 pm)
Re: [PATCH 00/10] zram: various improvements and cleanups
, Anton Blanchard
, (Tue Aug 31, 8:32 pm)
Re: [PATCH 03/10] Use percpu stats
, Anton Blanchard
, (Tue Aug 31, 8:41 pm)
Re: [PATCH 03/10] Use percpu stats
, Anton Blanchard
, (Tue Aug 31, 8:51 pm)
Re: [PATCH 03/10] Use percpu stats
, Christoph Lameter
, (Wed Sep 1, 1:05 pm)
Re: [PATCH 03/10] Use percpu stats
, Eric Dumazet
, (Wed Sep 1, 1:38 pm)
Re: [PATCH 03/10] Use percpu stats
, Christoph Lameter
, (Wed Sep 1, 5:34 pm)
[patch -rc] oom: always return a badness score of non-zero ...
, David Rientjes
, (Thu Sep 9, 12:07 pm)
Re: [patch -rc] oom: always return a badness score of non- ...
, Dave Hansen
, (Thu Sep 9, 12:48 pm)
Re: [patch -rc] oom: always return a badness score of non- ...
, David Rientjes
, (Thu Sep 9, 2:00 pm)
Re: [patch -rc] oom: always return a badness score of non- ...
, Dave Hansen
, (Thu Sep 9, 2:10 pm)
Re: [patch -rc] oom: always return a badness score of non- ...
, David Rientjes
, (Thu Sep 9, 2:40 pm)
Re: [PATCH 03/10] Use percpu stats
, Andrew Morton
, (Fri Sep 17, 1:59 pm)
Re: OOM panics with zram
, Nitin Gupta
, (Sun Oct 3, 11:41 am)
Re: OOM panics with zram
, Dave Hansen
, (Sun Oct 3, 12:27 pm)
Re: OOM panics with zram
, Nitin Gupta
, (Sun Oct 3, 12:40 pm)
Re: OOM panics with zram
, Ed Tomlinson
, (Mon Oct 4, 4:08 am)
Re: OOM panics with zram
, Greg KH
, (Tue Oct 5, 4:43 pm)
Re: OOM panics with zram
, Nitin Gupta
, (Tue Oct 5, 7:29 pm)
Re: OOM panics with zram
, Greg KH
, (Tue Oct 5, 7:36 pm)
Re: OOM panics with zram
, Nitin Gupta
, (Tue Oct 5, 9:30 pm)
Re: OOM panics with zram
, Pekka Enberg
, (Wed Oct 6, 12:38 am)
Re: OOM panics with zram
, Greg KH
, (Wed Oct 6, 7:02 am)
Re: OOM panics with zram
, Greg KH
, (Wed Oct 6, 7:03 am)
Re: OOM panics with zram
, Pekka Enberg
, (Wed Oct 6, 7:16 am)
Re: OOM panics with zram
, Nitin Gupta
, (Wed Oct 6, 7:53 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Ken Chen
[patch] sched: fix inconsistency when redistribute per-cpu tg->cfs_rq shares.
Ingo Molnar
Re: [PATCH v3] x86: merge the simple bitops and move them to bitops.h
Paul Turner
[tg_shares_up rewrite v4 11/11] sched: update tg->shares after cpu.shares write
Andi Kleen
Re: - romsignature-checksum-cleanup-2.patch removed from -mm tree
Stefano Stabellini
Re: [PATCH 09/22] xen: Find an unbound irq number in reverse order (high to low).
git
:
Junio C Hamano
Re: Teach "git checkout" to use git-show-ref
Christian Jaeger
Re: Problem with Git.pm bidi_pipe methods
Linus Torvalds
[PATCH 1/7] Make unpack_trees_options bit flags actual bitfields
Jon Smirl
stgit: managing signed-off-by lines
Junio C Hamano
GIT 1.4.3-rc2
git-commits-head
:
Linux Kernel Mailing List
MIPS: Bonito64: Make Loongson independent from Bonito64 code.
Linux Kernel Mailing List
iwlwifi: initialize spinlock before use
Linux Kernel Mailing List
i2c-i801: Add Intel Cougar Point device IDs
Linux Kernel Mailing List
drm/i915: Add information on pinning and fencing to the i915 list debug.
Linux Kernel Mailing List
cirrusfb: GD5434 (aka SD64) support fixed
linux-netdev
:
Gerrit Renker
v2 [PATCH 1/4] dccp: Limit feature negotiation to connection setup phase
Richard Cochran
Re: [PATCH v3 3/3] ptp: Added a clock that uses the eTSEC found on the MPC85xx.
Inaky Perez-Gonzalez
[PATCH 40/40] wimax/i2400m: add CREDITS and MAINTAINERS entries
Sathya Perla
[PATCH net-next-2.6] be2net: add multiple RX queue support
Changli Gao
Re: [PATCH 3/3] ifb: move tq from ifb_private
freebsd-current
:
Boris Samorodov
Re: twa + dump = sbwait
韓家標 Bill Hacker
Re: ZFS honesty
Bjoern A. Zeeb
Re: Can not boot 7.0-BETA3 with IPSEC
rmgls
man usb2_core(4)
Sam Leffler
Re: Lots of "ath0: bad series0 hwrate 0x1b" in 8.0-BETA2
Colocation donated by:
Syndicate