News for hackers. Stuff that matters.
Re:Why HN was slow and how Rtm fixed it by dauphin on Wednesday January 19, 2011 @02:33PM (#2120921)
> It turns out there is a hack in FreeBSD, invented by Filo, that causes the O/S not to give a new connection to the server until an entire HTTP request has arrived. This might reduce the number of threads a lot, and thus improve performance; I'll give it a try today or tomorrow.

Anyone know if they're referring to "accept filters" here? FreeBSD folks can "man accf_http" if they're curious, which does prevent a request from being handed off to the application until the complete (and valid?) request has been made. Certainly not a "hack" but a feature of the OS itself.

Or they could use a proxy. All this "fuck me I'm famous" attitude is stupid.

Re:Why HN was slow and how Rtm fixed it by SageRaven on Wednesday January 19, 2011 @03:16PM (#2121082)
Anyone know if they're referring to "accept filters" here? FreeBSD folks can "man accf_http" if they're curious, which does prevent a request from being handed off to the application until the complete (and valid?) request has been made. Certainly not a "hack" but a feature of the OS itself.
Re:Why HN was slow and how Rtm fixed it by svlla on Wednesday January 19, 2011 @02:41PM (#2120955)
this seems impossible for item pages due to how continuation ids are used for replies
Re:Why HN was slow and how Rtm fixed it by dauphin on Wednesday January 19, 2011 @02:55PM (#2121009)
This could be resolved using consistent hashing or a critbit tree.