From owner-freebsd-questions Tue Apr 25 17:40:29 2000 Delivered-To: freebsd-questions@freebsd.org Received: from lvdi.net (Mta.lvdi.net [216.24.138.2]) by hub.freebsd.org (Postfix) with SMTP id 04BDE37B69C for ; Tue, 25 Apr 2000 17:40:26 -0700 (PDT) (envelope-from notme@lvdi.net) Received: from lvdi.net ([216.24.141.89]) by lvdi.net ; Tue, 25 Apr 2000 17:25:50 2000 PDT Message-ID: <39063D55.3E293BB0@lvdi.net> Date: Tue, 25 Apr 2000 17:50:29 -0700 From: Frankie Li X-Mailer: Mozilla 4.72 [en] (Win98; I) X-Accept-Language: en,pdf MIME-Version: 1.0 To: muthiah anand , freebsd-questions@freebsd.org Subject: Re: need about 5000 tcp connection....how to? References: <20000425135423.40347.qmail@hotmail.com> <39063A38.59475A50@lvdi.net> Content-Type: text/plain; charset=big5 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I meant please do correct me if I am wrong... sorry for the misunderstanding... Frankie Frankie Li wrote: > > Hi, > I am just a newbie at FreeBSD and network programming. I am > just wondering, shouldn't you use thread instead of fork when > anticipating such large amount of clients? I have read from books > (I just began reading couple weeks ago...) that forks are relatively > inefficient, and that it uses quite a bit of memory because it > essentially copies the process into its own memory space. Threads, > however, is relatively more efficient. (Well, I haven't gotten into > the details yet...) > > please don't correct me if I am wrong. :) > (but please don't' flame me :) > > Thank you in advance for you answers. > > Frankie > > muthiah anand wrote: > > > > hi > > > > 1.my application should be able to accept about 5000-7000 tcp > > connections > > the connections stay for hours, but i/o on these sockets are less > > > > what would be the ideal kernel configurations to achieve this? > > like what are the param that i have to chg > > > > i tried maxusers = 512 and 128 256.... doesnt solve my prob > > > > i have to run a small process for each connection. > > > > so i ran a loop with fork() > > but after 1800 process the m/c freezes > > > > what could be the problem? > > > > 2.does this has anything to do with hardware configuration? > > i have 2 test pcs one high end pc, compaq proliant pentiumIII 500mhz, > > 1gb, scsi harddrive.... > > > > another one, anormal pentiumII 300mhz 128mb, ide drive > > > > the second one can fork many process than the compaq pc for the same > > kernel config > > > > what could be the reason? > > > > thanks in advance > > -anand > > > > ________________________________________________________________________ > > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message