Re: Why do we still have 32 bit counters? Interrupt counters overflow within 50 days
From: Eric Dumazet
Date: Sun Oct 05 2014 - 19:59:40 EST
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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/