From owner-freebsd-hackers Sat Jan 12 22:27:33 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from web14003.mail.yahoo.com (web14003.mail.yahoo.com [216.136.175.94]) by hub.freebsd.org (Postfix) with SMTP id 331B537B419 for ; Sat, 12 Jan 2002 22:27:29 -0800 (PST) Message-ID: <20020113062729.45895.qmail@web14003.mail.yahoo.com> Received: from [216.103.213.142] by web14003.mail.yahoo.com via HTTP; Sat, 12 Jan 2002 22:27:29 PST Date: Sat, 12 Jan 2002 22:27:29 -0800 (PST) From: k Macy Subject: How well does EVFILT_AIO work? To: freebsd-hackers@freebsd.org, freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 Has anybody used AIO in conjunction with kevent? I am seeing as much as a 12 second latency between when I do an 8k aio_write to a file on local disk and kevent returning its completion (I'm calling kevent every ~20ms). Using regular writes works fine, but this is a multi-threaded application so they cause the entire process to block. I'm trying to use kevent because using AIO with signals doesn't appear to work with threads as the siginfo_t passed to the signal handler doesn't get filled out in spite of the fact that SA_SIGINFO is being set. If no one has any ideas I'll file a PR with the code that demonstrates the various bugs. I'm running 20010106-CURRENT. -Kip __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message