Re: vmstat's entries type

From: Sten Daniel Sørsdal <lists_at_wm-access.no>
Date: Sun, 23 Jul 2006 19:48:36 +0200
M. Warner Losh wrote:
>
> One approach that we could use for 64-bit counters would be to just
> use 32-bits one, and poll them for overflow and bump an overflow
> count.  This assumes that the 32-bit counters overflow much less often
> than the polling interval, and easily triples the amount of storage
> for each of them...  It is ugly :-(
> 

What's wrong with the add+adc (asm) approach found on any i386?
It would cost you just a few cpu cycles unless i'm mistaken.

-- 
Sten Daniel Sørsdal
Received on Sun Jul 23 2006 - 15:49:17 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:58 UTC