Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jun 1999 13:49:26 +0800
From:      Gong Wei <ccegongw@nus.edu.sg>
To:        "'freebsd-questions@freebsd.org'" <freebsd-questions@freebsd.org>
Cc:        "'freebsd-stable@freebsd.org'" <freebsd-stable@freebsd.org>
Subject:   max proc and maxfileno (anything else?)
Message-ID:  <762388C091FAD01180FF00A024621378E8EECB@exs01.ex.nus.edu.sg>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?762388C091FAD01180FF00A024621378E8EECB>