Re: Tuning FreeBSD
You can just set the value in /boot/loader.conf such as: kern.maxusers=50 and reboot -Derek At 03:35 PM 8/19/2006, Lisa Casey wrote: Hi Folksm I'm getting these on a FreeBSD 5.3 box: Aug 19 15:46:32 radius sm-mta[12850]: k7JJk1rt012776: SYSERR(UID0): fill_fd: disconnect: cannot open /dev/null: Too many open files in system Aug 19 15:46:40 radius kernel: kern.maxfiles limit exceeded by uid 0, please see tuning(7). Aug 19 15:46:40 radius kernel: kern.maxfiles limit exceeded by uid 0, please see tuning(7). Aug 19 15:46:35 radius sm-mta[12784]: k7JJk7F0012784: SYSERR(UID0): queueup: cannot create queue file ./qfk7JJk 7F0012784, euid=0, fd=-1, fp=0x0: Too many open files in system I checked, and the system shows: radius# sysctl kern.maxfiles kern.maxfiles: 1416 radius# sysctl kern.maxusers kern.maxusers: 43 I googled and read that kern.maxfiles is dependent upon kern.maxusers and that I shou;d raise maxusers which I tried to do via sysctl: radius# sysctl -w kern.maxusers=50 sysctl: oid 'kern.maxusers' is a read only tunable sysctl: Tunable values are set in /boot/loader.conf My /boot/loader.conf is a zero byte length file. How can I fix this too many open files problem? Thanks, Lisa Casey ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Tuning FreeBSD
On Sat, Aug 19, 2006 at 04:35:29PM -0400, Lisa Casey wrote: Hi Folksm I'm getting these on a FreeBSD 5.3 box: Aug 19 15:46:32 radius sm-mta[12850]: k7JJk1rt012776: SYSERR(UID0): fill_fd: disconnect: cannot open /dev/null: Too many open files in system Aug 19 15:46:40 radius kernel: kern.maxfiles limit exceeded by uid 0, please see tuning(7). Aug 19 15:46:40 radius kernel: kern.maxfiles limit exceeded by uid 0, please see tuning(7). Aug 19 15:46:35 radius sm-mta[12784]: k7JJk7F0012784: SYSERR(UID0): queueup: cannot create queue file ./qfk7JJk 7F0012784, euid=0, fd=-1, fp=0x0: Too many open files in system I checked, and the system shows: radius# sysctl kern.maxfiles kern.maxfiles: 1416 radius# sysctl kern.maxusers kern.maxusers: 43 I googled and read that kern.maxfiles is dependent upon kern.maxusers and that I shou;d raise maxusers which I tried to do via sysctl: radius# sysctl -w kern.maxusers=50 sysctl: oid 'kern.maxusers' is a read only tunable sysctl: Tunable values are set in /boot/loader.conf My /boot/loader.conf is a zero byte length file. How can I fix this too many open files problem? Edit loader.conf and make the specified change, then reboot. See the loader.conf manpage for more. Kris pgpWRgEsbT2Rs.pgp Description: PGP signature
Re: Tuning FreeBSD
Hello Lisa, Saturday, August 19, 2006, 10:35:29 PM, you wrote: Hi Folksm I'm getting these on a FreeBSD 5.3 box: Aug 19 15:46:32 radius sm-mta[12850]: k7JJk1rt012776: SYSERR(UID0): fill_fd: disconnect: cannot open /dev/null: Too many open files in system Aug 19 15:46:40 radius kernel: kern.maxfiles limit exceeded by uid 0, please see tuning(7). Aug 19 15:46:40 radius kernel: kern.maxfiles limit exceeded by uid 0, please see tuning(7). Aug 19 15:46:35 radius sm-mta[12784]: k7JJk7F0012784: SYSERR(UID0): queueup: cannot create queue file ./qfk7JJk 7F0012784, euid=0, fd=-1, fp=0x0: Too many open files in system I checked, and the system shows: radius# sysctl kern.maxfiles kern.maxfiles: 1416 radius# sysctl kern.maxusers kern.maxusers: 43 I googled and read that kern.maxfiles is dependent upon kern.maxusers and that I shou;d raise maxusers which I tried to do via sysctl: I don't think that this is really required. Just raise the kern.maxfiles sysctl if you really need to do so. I would rather search for the reason why I need to allow kernel to open such many number of files. Allowing it to open too many files can lead to a Denial of Service. radius# sysctl -w kern.maxusers=50 sysctl: oid 'kern.maxusers' is a read only tunable sysctl: Tunable values are set in /boot/loader.conf My /boot/loader.conf is a zero byte length file. That is not problem. There is no /boot/loader.conf by default (IIRC) although there is /boot/defaults/loader.conf How can I fix this too many open files problem? Thanks, Lisa Casey -- Best regards, Danielmailto:[EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Tuning FreeBSD
Thanks. I set kern.maxusers in loader.conf and that seems to have helped. I hated seeing stuff like that on a weekend! Lisa Casey ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Tuning FreeBSD for HIGH PERFORMANCE Web Server
Check out /etc/make.conf choose the closest arc for your proc and go with either O2 or O3 optimizations. When using O3 you may end up with a few problems. I have had a bit of problems compiling some things when I optimized some X stuff using O3. I have not had any problems with O2 so far. On 14 Jul 2003 23:25:04 +0800 Edy Lie [EMAIL PROTECTED] wrote: Is there any cool tips to fine tune FreeBSD so that it performs well for Web server environment ? Like enabling Keep Alive (which is by default), shorten the time_wait ? -- In the windoze world, I am limited by the tools that I can use, In Unix, I am limited by my own wisdom. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Tuning FreeBSD for HIGH PERFORMANCE Web Server
On Mon, Jul 14, 2003 at 12:00:22PM -0500, Vulpes Velox wrote: Check out /etc/make.conf choose the closest arc for your proc and go with either O2 or O3 optimizations. When using O3 you may end up with a few problems. I have had a bit of problems compiling some things when I optimized some X stuff using O3. I have not had any problems with O2 so far. Compiler options are not a good alternative as tips from the tuning(7) man page. Even more importantly, -O3 compile options can generate bad code. -- Jonathan Chen [EMAIL PROTECTED] We laugh in the face of danger, we drop icecubes down the vest of fear - Edmond Blackadder III ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]