Re: kqueue examples?



On Tue, Oct 24, 2006 at 11:03:34AM +0800, Adrian Chadd wrote:
On 10/24/06, Mark Bucciarelli <mark@xxxxxxxxxxxxx> wrote:
On Mon, Oct 23, 2006 at 02:21:07PM +0800, Adrian Chadd wrote:

Has anyone come across some network software which uses kqueue
"differently" to the above ?

lighttpd uses kqueue. Don't know how "different" it is.

Again its pretty simplistic - individual events are registered by
using kevent() calls; kevent() is then called to process all the
results.

I wonder how much of a boost there'd be between this model as the
'nicer' kevent model. Hm, I'll have to give it a shot and compare
numbers. Thanks.

If you do this comparison for lighttpd, I would be interested in
the results.

m
_______________________________________________
freebsd-performance@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-performance
To unsubscribe, send any mail to "freebsd-performance-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: kqueue examples?
    ... lighttpd uses kqueue. ... using kevent() calls; keventis then called to process all the ... 'nicer' kevent model. ...
    (freebsd-performance)
  • Re: [take12 0/3] kevent: Generic event handling mechanism.
    ... kevent is called. ... Word "polling" really confuses me here, ... should be returned (as far as I recall they are always added into kqueue in ... API in my program. ...
    (Linux-Kernel)
  • Re: [take22 0/4] kevent: Generic event handling mechanism.
    ... compared to kqueue in kernelspace, or just about what structure is being ... it was some kind of a joke to 'not rewrite *bsd from scratch ... and use kqueue in Linux kernel as is'. ... *BSD kevent ...
    (Linux-Kernel)
  • Stopping a kqueue
    ... I tried asking this in comp.lang.c and comp.lang.c++ but in neither place had anyone ever heard of kqueue or kevent so I'm hoping I might have more luck here. ... I've got some code which monitors a file by way of the kqueue/kevent mechanism but I'm having trouble getting it to shut down cleanly. ... As far as I can see, the only way to get it to stop is to set "watcherRunning" to false and then actually make a change to the file in order to trigger a kevent and unblock the thread! ...
    (comp.unix.bsd.freebsd.misc)
  • Re: [take22 0/4] kevent: Generic event handling mechanism.
    ... kqueue on Linux, too ... Should we use *BSD VMM system when we have superiour Linux one? ... Btw, if you want someone to rewrite something, you can start with mmaped ... According to my tests kevent is noticebly faster. ...
    (Linux-Kernel)