From owner-freebsd-stable Wed Jun 9 22:48:47 1999 Delivered-To: freebsd-stable@freebsd.org Received: from imc01.ex.nus.edu.sg (imc01.ex.nus.edu.sg [137.132.14.60]) by hub.freebsd.org (Postfix) with ESMTP id EFC3814BE4; Wed, 9 Jun 1999 22:48:40 -0700 (PDT) (envelope-from ccegongw@nus.edu.sg) Received: by imc01.ex.nus.edu.sg with Internet Mail Service (5.5.2448.0) id ; Thu, 10 Jun 1999 13:49:15 +0800 Message-ID: <762388C091FAD01180FF00A024621378E8EECB@exs01.ex.nus.edu.sg> From: Gong Wei To: "'freebsd-questions@freebsd.org'" Cc: "'freebsd-stable@freebsd.org'" Subject: max proc and maxfileno (anything else?) Date: Thu, 10 Jun 1999 13:49:26 +0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: multipart/mixed; boundary="----_=_NextPart_000_01BEB304.F8652794" Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_000_01BEB304.F8652794 Content-Type: text/plain; charset="ISO-8859-1" Hi all, Description: Every user login to the campus network will have exactly one connection to a Samba server throughout his whole logon session. This connection is in fact quite idle, there will be very little (if any) traffic. But, one connection will cost (at least) one additional process (smbd) plus one estabilished TCP connection on the server. With 1166 such connections, my testing machine got 1183 process, 154MB active memory, 298 Used Swap space and "netstat -an | egrep EST | wc -l" gives 1160 as the output. So my question is: 1. what would be the hardware requirement? Can I just put in more swap instead of RAM since most of the time the connection is actually idling. Now my machine has 256MB of RAM and 1GB of swap. 2. how can I fine-tune the kernel? What I have done is recompile the kernel with MAXUSERs=1024, then set kern.maxfiles=15000, kern.maxfilesperproc=10240, ulimit -n 10240 before start samba daemon. Is this sufficient? I couldn't generate the real load as the school is in vacation. In fact our production server is a Linux machine. But I can forseen a lot problem when term starts and all students come back to school. So I am looking at the possibility of using FreeBSD instead. Any one has any suggestion on the "release" I should use? I have installed Release 3.2 on a testing machine, with PII 400, 258MB Ram, 1GB SWAP, identical hardware setting as the production machine. ------_=_NextPart_000_01BEB304.F8652794 Content-Type: application/octet-stream; name="Gong Wei.vcf" Content-Disposition: attachment; filename="Gong Wei.vcf" BEGIN:VCARD VERSION:2.1 N:Wei;Gong;;; FN:Gong Wei ORG:National University of Singapore; TITLE:Analyst Programmer TEL;WORK;VOICE:+65 8746421 TEL;PAGER;VOICE:+65 94963742 TEL;WORK;FAX:+65 7780198 ADR;WORK;ENCODING=QUOTED-PRINTABLE:;;Computer Centre=0D=0ANational University of Singapore=0D=0A2 Engineering D= rive 4;Singapore;;117584;Singapore LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Computer Centre=0D=0ANational University of Singapore=0D=0A2 Engineering Dri= ve 4=0D=0ASingapore, 117584=0D=0ASingapore EMAIL;PREF;INTERNET:ccegongw@nus.edu.sg REV:19990518T103531Z END:VCARD ------_=_NextPart_000_01BEB304.F8652794-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message