←back to thread

257 points pg | 2 comments | | HN request time: 0.482s | source
Show context
blinkingled ◴[] No.2120857[source]
Sounds like there is a scalability issue within MzScheme in that it iterates over the number of threads, asking each thread about the sockets it has. As one can tell, once # of threads and # of sockets grow - finding which thread to run in user space becomes awfully expensive. As any clever admin will do, a least invasive fix involving limiting the number of connections and threads was done - with what sounds like immediate results!

I have no idea what MzScheme is but I am curious about why is HN running threads in user space in 2011? The OS kernel knows best what thread to pick to run and that is a very well tuned, O(1) operation for Linux and Solaris.

replies(3): >>2120924 #>>2120962 #>>2120976 #
1. klochner ◴[] No.2120962[source]
I think this whitepaper covers the plt web server bundled with MzScheme (now 'Racket'):

http://www.cs.brown.edu/~sk/Publications/Papers/Published/kh...

replies(1): >>2121154 #
2. idoh ◴[] No.2121154[source]
Hacker News uses a web server written in arc.