From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 8 17:20:18 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id C89695B7; Tue, 8 Jan 2013 17:20:18 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-we0-f173.google.com (mail-we0-f173.google.com [74.125.82.173]) by mx1.freebsd.org (Postfix) with ESMTP id 3B8B6E3A; Tue, 8 Jan 2013 17:20:17 +0000 (UTC) Received: by mail-we0-f173.google.com with SMTP id z2so551951wey.18 for ; Tue, 08 Jan 2013 09:20:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=/1bWi3vYP966ZEhx767muvYjKZamGHAxq1VH5PN8aC0=; b=U4jHeamj3w2H4eNJ2/+ssyyYQwu4diG8Gte9YrOvjTZHOyedDB8fcBNrXi+XGRSBO1 Q6brS4atWizjFrSSAvBeq0wiseHHJ1OB6+U5AQSNxCv8sZgENlmdlEDExt+y3TLjxxfq TZpw+7BSUWPz+jfqvt461BY3kL0lS2IV8lUC6CCy8YeptSxWeycGP6Kvy0PqxT+OFLRH wDlKDWVZJnHg8ZNxwJqVWyEbCNEhIVSDY30XXIHDZN1Bqlv0HeRipt0g0a85je50YVLO 2Yr4GqNOcxDgP3L/DLeUb0NGz+BooZhfZLl9/lAMCdx9Ti8iQITF7lI3hiqiwGhmkiVt XjfA== MIME-Version: 1.0 Received: by 10.195.13.67 with SMTP id ew3mr15392679wjd.59.1357665611115; Tue, 08 Jan 2013 09:20:11 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.217.57.9 with HTTP; Tue, 8 Jan 2013 09:20:10 -0800 (PST) In-Reply-To: <1357661755.6752.32.camel@localhost.localdomain> References: <1357608470.6752.22.camel@localhost.localdomain> <1357626412.6752.24.camel@localhost.localdomain> <1357661755.6752.32.camel@localhost.localdomain> Date: Tue, 8 Jan 2013 09:20:10 -0800 X-Google-Sender-Auth: inrMF937oLjCKLQj7pWrzmYUmlA Message-ID: Subject: Re: Is it possible to block pending queued RealTime signals (AIO originating)? From: Adrian Chadd To: Richard Sharpe Content-Type: text/plain; charset=ISO-8859-1 Cc: Daniel Eischen , freebsd-hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jan 2013 17:20:18 -0000 On 8 January 2013 08:15, Richard Sharpe wrote: > On Tue, 2013-01-08 at 07:36 -0800, Adrian Chadd wrote: >> .. or you could abstract it out a bit and use freebsd's >> aio_waitcomplete() or kqueue aio notification. >> >> It'll then behave much saner. > > Yes, going forward that is what I want to do ... this would work nicely > with a kqueue back-end for Samba's tevent subsystem, and if someone has > not already written such a back end, I will have to do so, I guess. Embrace FreeBSD's nice asynchronous APIs for doing things! You know you want to! (Then, convert parts of samba over to use grand central dispatch... :-) Seriously though - I was doing network/disk IO using real time signals what, 10 + years ago on Linux and it plain sucked. AIO + kqueue + waitcomplete is just brilliant. kqueue for signal delivery is also just brilliant. Just saying. Adrian