From owner-freebsd-hackers Sun Jul 1 2: 0:42 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from sneakerz.org (sneakerz.org [216.33.66.254]) by hub.freebsd.org (Postfix) with ESMTP id 4F23E37B401; Sun, 1 Jul 2001 02:00:38 -0700 (PDT) (envelope-from bright@sneakerz.org) Received: by sneakerz.org (Postfix, from userid 1092) id 7AD675D010; Sun, 1 Jul 2001 04:00:34 -0500 (CDT) Date: Sun, 1 Jul 2001 04:00:34 -0500 From: Alfred Perlstein To: "E.B. Dreger" Cc: "Michael C . Wu" , freebsd-smp@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: Quick question: AIO / SMP / process-based threading Message-ID: <20010701040034.G84523@sneakerz.org> References: <20010630222829.E84523@sneakerz.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: ; from eddy+public+spam@noc.everquick.net on Sun, Jul 01, 2001 at 03:51:10AM +0000 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * E.B. Dreger [010630 22:51] wrote: > > Date: Sat, 30 Jun 2001 22:28:29 -0500 > > From: Alfred Perlstein > > > > Can you point to some specific PRs about this or crashdumps before > > (or at least while) taking pot shots at the AIO implementation? > > In the mean time, until somebody can substantiate that claim... is AIO SMP > safe? I see that aiocb.aio_buf is declared as "volatile", so I would > presume so. > > I just want to be sure that, if an aio call runs on one CPU, another CPU > can access *aio_buf and be 100% certain that the data are coherent. > It should be, if you experience any problems please let us know. > aio_buf = mmap() using MAP_HASSEMAPHORE -- good idea, bad idea, pointless? Pointless I think. -- -Alfred Perlstein [alfred@freebsd.org] Ok, who wrote this damn function called '??'? And why do my programs keep crashing in it? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message