Menu

#82 Use EVFILT_USER for notification with kqueue on freebsd 8.1

feature
closed
nobody
General (31)
5
2013-12-24
2010-09-16
No

Freebsd 8.1 adds an EVFILT_USER event type to kqueue. We could use it instead of socketpairs to get slightly better performance in evthread_notify_base on FreeBSD >=8.1 with kqueue.

See the FreeBSD 8.1 kevent manpage for full information.

Discussion

  • Nick Mathewson

    Nick Mathewson - 2010-09-16

    Mac OSX 10.6 has EVFILT_USER too. In fact, that's where it came from.

     
  • Nick Mathewson

    Nick Mathewson - 2010-10-25
    • labels: 413959 --> General
    • milestone: 774677 -->
     
  • Nick Mathewson

    Nick Mathewson - 2010-10-25

    Moving this to patches: there's a preliminary version in my 21_kqueue_hacking branch. It needs more work and testing.

     
  • Nick Mathewson

    Nick Mathewson - 2011-09-12

    I tried this on my bsd vms where it worked fine; Sebastian tried it on osx 10.6 where notifications were apparently not delivered . Need to investigate why.

     
  • Nick Mathewson

    Nick Mathewson - 2013-12-24
    • status: open --> closed
    • Group: --> feature
     
  • Nick Mathewson

    Nick Mathewson - 2013-12-24

    We added EVFILT_USER code in 53a07fe in 2.1.2-alpha.