From mboxrd@z Thu Jan 1 00:00:00 1970 From: michi1@michaelblizek.twilightparadox.com (michi1 at michaelblizek.twilightparadox.com) Date: Tue, 12 Feb 2013 06:45:14 +0100 Subject: MAX limit of file descriptor In-Reply-To: <61126.1360610656@turing-police.cc.vt.edu> References: <20130209051047.GA2806@debian.localdomain> <61126.1360610656@turing-police.cc.vt.edu> Message-ID: <20130212054514.GA2239@grml> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Hi! On 14:24 Mon 11 Feb , Valdis.Kletnieks at vt.edu wrote: > On Sat, 09 Feb 2013 13:10:47 +0800, horseriver said: ... > > In network programing ,what is the essential for the maximum of connections > > dealed per second > ... > So the *real* question > becomes "how many times per second is your box able to fork() off an httpd, > do all the processing required, and close the connection?" If you fork(), than this definitely will be your bottleneck (except the application does something even slower). Better use epoll+nonblocking i/o. -Michi -- programing a layer 3+4 network protocol for mesh networks see http://michaelblizek.twilightparadox.com