From owner-freebsd-questions@FreeBSD.ORG Thu Feb 16 20:58:16 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7B76E16A420 for ; Thu, 16 Feb 2006 20:58:16 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 801A143D45 for ; Thu, 16 Feb 2006 20:58:14 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from flame.pc (aris.bedc.ondsl.gr [62.103.39.226]) (authenticated bits=128) by igloo.linux.gr (8.13.5/8.13.5/Debian-3) with ESMTP id k1GKvRPH021971 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 16 Feb 2006 22:57:30 +0200 Received: from flame.pc (flame [127.0.0.1]) by flame.pc (8.13.4/8.13.4) with ESMTP id k1GKvIis002489; Thu, 16 Feb 2006 22:57:18 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by flame.pc (8.13.4/8.13.4/Submit) id k1GKvHx4002488; Thu, 16 Feb 2006 22:57:17 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Thu, 16 Feb 2006 22:57:15 +0200 From: Giorgos Keramidas To: Mike Loiterman Message-ID: <20060216205715.GA2465@flame.pc> References: <200602161126.k1GBQoaH040934@smtp-vbr17.xs4all.nl> <022a01c63338$1ba87d90$0401a8c0@Mike8500> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <022a01c63338$1ba87d90$0401a8c0@Mike8500> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (score=-3.347, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.85, BAYES_00 -2.60, DNS_FROM_RFC_ABUSE 0.20) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr Cc: 'Wouter Spierenburg' , freebsd-questions@freebsd.org Subject: Re: Mysterious reboot X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Feb 2006 20:58:16 -0000 On 2006-02-16 14:32, Mike Loiterman wrote: > Wouter Spierenburg wrote: > > Try adding the following to /etc/sysctl.conf: > > > > kern.maxfiles=65535 > > kern.maxfilesperproc=20000 > > net.inet.tcp.delayed_ack=0 > > net.inet.ip.maxfragpackets=10 > > kern.ipc.somaxconn=2048 > > > > then 'cd' to /usr/src/sys/i386/conf > > cp GENERIC SERVER > > vi SERVER > > > > and add the following lines at the bottom of the file: > > options TCPDEBUG > > options RANDOM_IP_ID > > options TCP_DROP_SYNFIN > > options NMBCLUSTERS=65535 > > options NMBUFS=40960 > > > > save the file, and follow these steps: > > > > /usr/sbin/config -g SERVER > > cd ../../compile/SERVER > > make depend > > make > > make install > > #if all went well: > > reboot > > > > The system will then come back up with tuned parameters, allowing more > > in/outbound connections and better packethandling. > > Before I make these changes, I would like to just get a second opinion from > the list about their value and what impact, if any, they might have on > system stability, compatibility, etc. > > Wouter, please do not take offense to this! I sincerely appreciate your > advice, but this is a production system, so I'm careful about what changes I > make when I don't explicitly understand what is going on. I'm not familure > with a few of those options. I'm not sure if the options are useful for your setup, so I'm not going to comment for or against them. > I also noticed that that you used the old (traditional) way of recompiling > the kernel. Is that necessary or can I use the newer `make buildkernel > KERNCONF=x && make installkernel KERNCONF=x'. I'm simply more comfortable > with that way... If you have the original object tree around, you should definitely use the new way: # cd /usr/src/ # make KERNCONF=SERVER buildkernel This uses the build tools from /usr/obj, which is more appropriate.