News for hackers. Stuff that matters.
Re:OpenBSD Jumpstart: Learn to Tame OpenBSD Quickly by mozumder on Saturday December 26, 2015 @10:06PM (#10796231)
How does networking speed compare to FreeBSD and Linux?

If I were to make an REST API server, that serves 10,000 requests per second per core, which OS should I use?

Re:OpenBSD Jumpstart: Learn to Tame OpenBSD Quickly by gonzo on Sunday December 27, 2015 @04:49AM (#10796972)
Actual numbers, with the test harness that was used to generate them: https://github.com/gvnn3/netperf/tree/master/Documentation
Re:OpenBSD Jumpstart: Learn to Tame OpenBSD Quickly by zmyrgel on Sunday December 27, 2015 @07:54AM (#10797297)
If speed would be main deciding factor, I'd go with FreeBSD/Linux. OpenBSD network stack is still pretty much under big kernel lock so multiple cores won't help as much. Though in the 5.8 and -current branch they've made lot of progress in making the network stack MP-safe. See undeadly.org hackathon reports for details.
Re:OpenBSD Jumpstart: Learn to Tame OpenBSD Quickly by ratboy666 on Saturday December 26, 2015 @10:27PM (#10796289)
mozumder -- um... what?

But, here is an answer - 10,000 requests per second is 100 microseconds per request. At 100Mbps network speed, this gives (roughly) 10 characters per microsecond or a budget of 1,000 characters combined per request. We will take 100 characters for the request, and 900 characters for the reply. Of course, you could go with 1Gps network service, and multiply this by 10. But, you will need at least 20kpps "per core".

However, you also have to contend with disk i/o and/or the database layer.

Which OS? I think you are probably a long way from being able to answer that question. Note that OpenBSD will not be as "multicore performant" but that may not matter in your application.

Re:OpenBSD Jumpstart: Learn to Tame OpenBSD Quickly by mozumder on Saturday December 26, 2015 @11:41PM (#10796434)
100mbps is really slow for a server. The colocation providers I'm looking at are offering 10G network connections for around $500/month.

The server I'm using has Intel SSDs, capable of 400,000 read IOPS per drive. Redis caching can be used to reduce database accesses as well.

Re:OpenBSD Jumpstart: Learn to Tame OpenBSD Quickly by jlgaddis on Sunday December 27, 2015 @12:19AM (#10796523)
10 GbE? FreeBSD.
Re:OpenBSD Jumpstart: Learn to Tame OpenBSD Quickly by jpfr on Saturday December 26, 2015 @11:37PM (#10796425)
At that rate, you are limited by context changes from userland to the OS. So you must use an event driven approach like nginx or node.js. In contrast to the Apache way of opening a thread per connection.

Also, make use of netmap: http://info.iet.unipi.it/~luigi/netmap/ That is available for FreeBSD and Linux.

10k messages per sec is doable. But probably not off the shelf.