vmstat's entries type

Peter Jeremy peterjeremy at optushome.com.au
Mon Jul 31 19:12:11 UTC 2006


On Mon, 2006-Jul-31 14:37:56 -0400, John Baldwin wrote:
>On Friday 28 July 2006 17:01, Peter Jeremy wrote:
>> This approach still requires the reader to loop with something like
>> 	do {
>> 		a.lo = counter.lo;
>> 		a.hi = counter.hi;
>> 		b.lo = counter.lo;
>> 		b.hi = counter.hi;
>> 	} while (a.hi != b.hi || a.lo > b.lo);
>> to ensure that the reader doesn't read the middle of an update.
>
>Yes, but the idea here is that these stats are written to far more often than 
>read, so it's ok to pessimize the read case.

We are in violent agreement here.  My point was that the reader has
to be aware of this requirement.

-- 
Peter Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20060731/14946222/attachment.pgp


More information about the freebsd-current mailing list