Re: ZFS committed to the FreeBSD base.
- From: des@xxxxxx (Dag-Erling Smørgrav)
- Date: Thu, 12 Apr 2007 10:54:17 +0200
Peter Jeremy <peterjeremy@xxxxxxxxxxxxxxxx> writes:
There's a feature bit (CPUID_CX8) that advertises the availability of
cmpxchg8b (and maybe some related instructions). My pre-MMX 586 has
this bit set so I presume anything later than 486 will support it.
(I'm not sure about the low-end VIA, GEODE etc clones).
The Geode is a 486, and does not support it.
The C3 however is a 586. The C3 Ezra and C3 Samuel / Samuel 2 do not
have CX8. I'm not sure about the C3 Nehemiah, I don't have one
running at the moment.
I agree that GENERIC should run on lowest-common-denominator hardware
(the definition of that is a subject for a different thread). GENERIC
performance could be enhanced by using an indirect call for 8-byte
atomic instructions and selecting between the cmpxchg8b and
alternative implementation as part of the CPU startup (much like
i586_bcopy). If CPU_486 is not defined, you code could inline the
cmpxchg8b-based variant.
Our native atomic operations are all defined as either macros or
static inline functions in machine/atomic.h, so we can easily make
this choice at compile time based on a config option.
DES
--
Dag-Erling Smørgrav - des@xxxxxx
_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: ZFS committed to the FreeBSD base.
- From: Antony Mawer
- Re: ZFS committed to the FreeBSD base.
- From: Rick C. Petty
- Re: ZFS committed to the FreeBSD base.
- From: Henrik Brix Andersen
- Re: ZFS committed to the FreeBSD base.
- References:
- ZFS committed to the FreeBSD base.
- From: Pawel Jakub Dawidek
- Re: ZFS committed to the FreeBSD base.
- From: Dag-Erling Smørgrav
- Re: ZFS committed to the FreeBSD base.
- From: Bernd Walter
- Re: ZFS committed to the FreeBSD base.
- From: Dag-Erling Smørgrav
- Re: ZFS committed to the FreeBSD base.
- From: David Schultz
- Re: ZFS committed to the FreeBSD base.
- From: Peter Jeremy
- ZFS committed to the FreeBSD base.
- Prev by Date: Re: CFT: new trunk(4)
- Next by Date: Re: ZFS committed to the FreeBSD base.
- Previous by thread: Re: ZFS committed to the FreeBSD base.
- Next by thread: Re: ZFS committed to the FreeBSD base.
- Index(es):
Relevant Pages
|