Date: Thu, 15 Nov 2012 07:11:55 -0700 From: Anthony ''Ishpeck'' Tedjamulia <ishpeck@ishpeck.net> To: Friedrich Locke <friedrich.locke@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: high performance server design approach Message-ID: <20121115141155.GC13837@suki.ishpeck.net> In-Reply-To: <CANMDHqfuEYw=hDRN2MUPao50cS9UkhzOsqeVnhSNzp8g9RUd4A@mail.gmail.com> References: <CANMDHqfuEYw=hDRN2MUPao50cS9UkhzOsqeVnhSNzp8g9RUd4A@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Nov 13, 2012 at 08:23:38AM -0200, Friedrich Locke wrote: > 0) To have a single process "accepting" incoming connection on port 80 and > send the new socket fd to one of the http server in a round-roubin manner, DJB's publicfile does something rather similar. http://cr.yp.to/publicfile.html You could spend all day wondering. But if you really want to know and not just argue, you should do as the author of that web server says: "Profile. Don't speculate." It may just be that context switches are not the real bottleneck in your service.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20121115141155.GC13837>