From owner-freebsd-arch Wed Jan 2 12:33:32 2002 Delivered-To: freebsd-arch@freebsd.org Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by hub.freebsd.org (Postfix) with ESMTP id 3FB3D37B41B; Wed, 2 Jan 2002 12:33:30 -0800 (PST) Received: (from dillon@localhost) by apollo.backplane.com (8.11.6/8.9.1) id g02KXNV59224; Wed, 2 Jan 2002 12:33:23 -0800 (PST) (envelope-from dillon) Date: Wed, 2 Jan 2002 12:33:23 -0800 (PST) From: Matthew Dillon Message-Id: <200201022033.g02KXNV59224@apollo.backplane.com> To: Michal Mertl Cc: Bruce Evans , Mike Smith , Bernd Walter , Subject: Re: When to use atomic_ functions? (was: 64 bit counters) References: Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG : :I don't know how much time will be wasted - my measurements on pII show :the atomic_ operations aren't that expensive. An atomic operation is not that expensive as long as only one cpu is touching the cache line. Try running two user processes writing the same cache line on an SMP system and you will see performance drop by a factor of 5-10. Now, of course, we could lock each interface to a particular cpu. There are advantages to doing that. -Matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message