Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Jan 2013 09:40:31 -0800
From:      Garrett Cooper <yanegomi@gmail.com>
To:        Adrian Chadd <adrian@freebsd.org>
Cc:        Daniel Eischen <deischen@freebsd.org>, "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>, Richard Sharpe <rsharpe@richardsharpe.com>
Subject:   Re: Is it possible to block pending queued RealTime signals (AIO originating)?
Message-ID:  <115B6A99-AC44-4F0A-B978-13D18A15B9CF@gmail.com>
In-Reply-To: <CAJ-Vmom-SCMH8BEdgdHxuE7PZ194G7XyQypV8U4f7ome76pWJw@mail.gmail.com>
References:  <1357608470.6752.22.camel@localhost.localdomain> <Pine.GSO.4.64.1301072215400.14726@sea.ntplx.net> <1357626412.6752.24.camel@localhost.localdomain> <CAJ-VmomN5G70ftbV-uETYwUV7U6zLq%2BUKdav%2BM_B9HYB7HuEpQ@mail.gmail.com> <1357661755.6752.32.camel@localhost.localdomain> <CAJ-Vmom-SCMH8BEdgdHxuE7PZ194G7XyQypV8U4f7ome76pWJw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Jan 8, 2013, at 9:20 AM, Adrian Chadd <adrian@freebsd.org> wrote:

> On 8 January 2013 08:15, Richard Sharpe <rsharpe@richardsharpe.com> 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.
>>>=20
>>> It'll then behave much saner.
>>=20
>> 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.
>=20
> Embrace FreeBSD's nice asynchronous APIs for doing things! You know you wa=
nt to!
>=20
> (Then, convert parts of samba over to use grand central dispatch... :-)
>=20
> 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.

Or just use libevent to abstract away kqueues/inotify/etc? Samba isn't just f=
or freebsd...
Thanks,
-Garrett=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?115B6A99-AC44-4F0A-B978-13D18A15B9CF>