Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Jul 2006 19:48:36 +0200
From:      =?ISO-8859-1?Q?Sten_Daniel_S=F8rsdal?= <lists@wm-access.no>
To:        "M. Warner Losh" <imp@bsdimp.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: vmstat's entries type
Message-ID:  <44C3B674.3040804@wm-access.no>
In-Reply-To: <20060720.093457.1661914908.imp@bsdimp.com>
References:  <1153312635.1261.22.camel@genius.i.cz>	<200607191315.k6JDFpvM048354@lurza.secnetix.de> <20060720.093457.1661914908.imp@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 :-(
>=20

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.

--=20
Sten Daniel S=F8rsdal




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44C3B674.3040804>