Re: vmstat's entries type

From: Paul Allen <nospam_at_ugcs.caltech.edu>
Date: Sat, 29 Jul 2006 17:53:42 -0700
>From Michal Mertl <mime_at_traveller.cz>, Sun, Jul 30, 2006 at 01:50:36AM +0200:
> Michal Mertl wrote:
> > Paul Allen wrote:
> > > Surely all you need to do is a cheap crit_enter,crit_exit 
> > > while updating the 64-bit per cpu counters.  and on
> > > a 64-bit arch you skip the crit_enter,crit_exit.
> > 
> > Critical_enter/exit seem to be quite lightweight (single
> > read/modify/write of a variable).
> 
> One more question. Why do you say that crit_* can be avoided on 64-bit
> arch? If the reason was that "increment of a 64 bit number is one
> operation there" it probably is not true - as somebody already stated,
> some instruction sets don't allow atomic increment of a memory location.
> 
> Michal

Which FreeBSD tier-I 64b arch do you have in mind...

> 
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
Received on Sat Jul 29 2006 - 22:53:43 UTC

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