Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Jul 2006 17:14:47 +0200
From:      "Attilio Rao" <attilio@freebsd.org>
To:        freebsd-arch@freebsd.org
Subject:   Re: [PATCH] Mantaining turnstile aligned to 128 bytes in i386 CPUs
Message-ID:  <3bbf2fe10607250814m1a476f09p2d962dedc0c99be1@mail.gmail.com>
In-Reply-To: <3bbf2fe10607250813w8ff9e34pc505bf290e71758@mail.gmail.com>
References:  <3bbf2fe10607250813w8ff9e34pc505bf290e71758@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
------=_Part_7543_7531642.1153840487712
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

2006/7/25, Attilio Rao <attilio@freebsd.org>:
> Hi,
> Intel documentation points out that having a 128-bytes aligned
> syncronizing primitive  (which fits in a cache line) will minimize the
> traffic for cache bus, so this patch implements an alignment for i386
> on turnstiles.
>
> Any comments, feedbacks?

Oh, sorry, I've unforgotten the diff.

Attilio


-- 
Peace can only be achieved by understanding - A. Einstein

------=_Part_7543_7531642.1153840487712
Content-Type: application/octet-stream; name=subr_turnstile.diff
Content-Transfer-Encoding: base64
X-Attachment-Id: f_eq2w67e1
Content-Disposition: attachment; filename="subr_turnstile.diff"

LS0tIHN1YnJfdHVybnN0aWxlLmMJV2VkIEp1bCAyNiAwMToxMDozMyAyMDA2CisrKyBwYXRjaC9z
dWJyX3R1cm5zdGlsZS5jCVdlZCBKdWwgMjYgMDE6MTQ6MjEgMjAwNgpAQCAtODEsNiArODEsMTgg
QEAKICNlbmRpZgogCiAvKgorICogRm9yIHRoZSBpMzg2IHByb2Nlc3NvcnMgZmFtaWx5LCBoYXZp
bmcgYSAxMjgtYnl0ZXMgYWxpZ25lZCB0dXJuc3RpbGUKKyAqICh3aGljaCBleGFjdGx5IGZpdHMg
aW4gYSBjYWNoZWxpbmUpIHdvdWxkIG1pbmltaXplIGNhY2hlL21lbW9yeQorICogdHJhZmZpYyBm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Lwo=
------=_Part_7543_7531642.1153840487712--



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