Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751549AbaJFHyT (ORCPT ); Mon, 6 Oct 2014 03:54:19 -0400 Received: from www.linutronix.de ([62.245.132.108]:52969 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751157AbaJFHyS (ORCPT ); Mon, 6 Oct 2014 03:54:18 -0400 Date: Mon, 6 Oct 2014 09:54:14 +0200 (CEST) From: Thomas Gleixner To: Eric Dumazet cc: Christoph Lameter , Richard Cochran , linux-kernel@vger.kernel.org Subject: Re: Why do we still have 32 bit counters? Interrupt counters overflow within 50 days In-Reply-To: <1412553572.11091.29.camel@edumazet-glaptop2.roam.corp.google.com> Message-ID: References: <20141003120345.GA6652@localhost.localdomain> <1412553572.11091.29.camel@edumazet-glaptop2.roam.corp.google.com> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 5 Oct 2014, Eric Dumazet wrote: > On Sun, 2014-10-05 at 23:49 +0200, Thomas Gleixner wrote: > > > Whats so hard about 64bit counters on 32bit machines? > > Not hard, but not trivial either. > > > > > > expensive to handle in particular because these counters are used in > > > performance critical hotpaths. > > > > The expensive overhead is a single "adcl" instruction. > > > > Assuming a reader do not care of reading garbage yes, while carry is not > yet propagated. Readers and writers are serialized via desc->lock. Thanks, tglx -- 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/