News for hackers. Stuff that matters.
Re:Linux 4.6 is out by wyldfire on Sunday May 15, 2016 @10:49PM (#11703930)
> This release adds Kernel Connection Multiplexor (KCM), a facility that provides a message based interface over TCP for accelerating application layer protocols. ... a common use case is to implement a framed application layer protocol running over TCP ...

This was discussed on HN a while back. Gee, it's too bad that SCTP hasn't found more popularity. Reliable datagram-based (or stream-based) messaging, with support for binding to multiple endpoints.

In any case, KCM sounds like it's worth exploring.

Re:Linux 4.6 is out by saurabhjha on Monday May 16, 2016 @03:40AM (#11704842)
I heard that BSD is really good with network stuff with their kqueue. See for example this comparison http://www.eecs.berkeley.edu/~sangjin/2012/12/21/epoll-vs-kq...

In particular, epoll cannot be used with disks.

Is it still the case that BSD has an edge over Linux? Is KCM addressing the problem of handling a lot of hanging connections?

Please point out if my assumptions are incorrect. I am new to kernel and network programming.

Edit: By BSD I mean FreeBSD

Re:Linux 4.6 is out by pritambaral on Monday May 16, 2016 @10:12PM (#11710963)
epoll alone cannot be used with disks, but I think aio supports getting/setting eventfds so it can be used with epoll.

I don't know it well enough, perhaps someone more knowledgeable than I can chime in.

Re:Linux 4.6 is out by IgorPartola on Monday May 16, 2016 @08:31AM (#11705836)
My thought exactly. I have always wondered why SCTP was not on the same level as UDP and TCP. It's really too bad, since it would be perfect for lots of higher level protocols, especially ones that don't require streaming (SMTP for example).

KCM seems really neat, though of course now we need a library that abstracts it away and has a fallback to regular TCP so that applications don't become Linux-only.

Re:Linux 4.6 is out by signa11 on Monday May 16, 2016 @01:12AM (#11704377)
> In any case, KCM sounds like it's worth exploring.

here is the previous (spartan !) discussion: https://news.ycombinator.com/item?id=10310090