Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 May 2008 18:56:46 -0400
From:      "Free BSD" <freebsd@the-irc.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: FreeBSD Server Settings Consult
Message-ID:  <322efb7b0805031556n34f00c49oe4e503f561acf366@mail.gmail.com>
In-Reply-To: <200805030120.05590.fbsd.questions@rachie.is-a-geek.net>
References:  <322efb7b0805020428y5f439fadk4b1beb95d397493@mail.gmail.com> <200805030120.05590.fbsd.questions@rachie.is-a-geek.net>

next in thread | previous in thread | raw e-mail | index | archive | help
4 GB physical ram but only 3GB usable via System.
AMD X2 64 3800+ (2 CPUs)

i386 Platform

# pciconf -lv|grep ^none
none0@pci0:0:17:5:      class=0x040100 card=0x0c84105b chip=0x30591106
rev=0x60 hdr=0x00


Only difference is IPFW/Quota/Device Polling/2000HZ


On 6.3 (now on 7) it was having random crashes 1-7 days at a time and did
not produce a kernel dump.


Web/IRC Hosting server

All Sysctls are there from researching the internet for suggested values.




# cat /etc/sysctl.conf

kern.ipc.maxsockbuf=1048576

net.inet.tcp.sendspace=125000
net.inet.tcp.recvspace=125000


net.local.stream.recvspace=65536
net.local.stream.sendspace=65536
net.inet.udp.recvspace=65536
net.inet.udp.maxdgram=65535

kern.ipc.somaxconn=2048
kern.maxvnodes=132072
kern.maxfiles=32768
kern.maxfilesperproc=32768


net.inet.tcp.msl=7500
net.inet.tcp.mssdflt=1460
security.bsd.see_other_uids=0
security.bsd.see_other_gids=0
kern.fallback_elf_brand=3

net.inet.tcp.newreno=0
net.inet.ip.intr_queue_maxlen=1024


net.inet.tcp.rfc1323=1
net.inet.tcp.delayed_ack=0
net.inet.ip.check_interface=0

net.inet.icmp.bmcastecho=0
net.inet.icmp.maskrepl=0
net.inet.icmp.icmplim=500

net.inet.icmp.drop_redirect=1
net.inet.icmp.log_redirect=0

net.inet.ip.rtexpire=2

net.inet.ip.rtmaxcache=1024


net.inet.ip.rtminexpire=2
net.inet.tcp.blackhole=2
net.inet.tcp.icmp_may_rst=0
net.inet.tcp.inflight.enable=0
net.inet.tcp.log_in_vain=0
net.inet.tcp.sack.enable=1
net.inet.udp.blackhole=1
net.inet.udp.log_in_vain=0
net.link.ether.inet.log_arp_wrong_iface=0

# cat /boot/loader.conf
kern.ipc.maxsockets=32768

kern.ipc.nmbclusters=81920


kern.ipc.nmbufs=131072
kern.ipc.shm_use_phys=1
kern.maxproc=8192
net.inet.tcp.tcbhashsize=16384

kern.maxfiles=32768
kern.maxfilesperproc=32768
accf_http_load="YES"



Copyright (c) 1992-2008 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
    The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 7.0-STABLE #0: Fri May  2 12:52:50 CDT 2008
    root@Eden.The-IRC.Org:/usr/obj/usr/src/sys/THE-IRC
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ (2000.79-MHz 686-class
CPU)
  Origin = "AuthenticAMD"  Id = 0x40fb2  Stepping = 2

Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
  Features2=0x2001<SSE3,CX16>
  AMD Features=0xea500800<SYSCALL,NX,MMX+,FFXSR,RDTSCP,LM,3DNow!+,3DNow!>
  AMD Features2=0x1f<LAHF,CMP,SVM,ExtAPIC,CR8>
  Cores per package: 2
real memory  = 3152936960 (3006 MB)
avail memory = 3078762496 (2936 MB)
ACPI APIC Table: <K8M890 AWRDACPI>
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
ioapic0: Changing APIC ID to 2
ioapic0 <Version 0.3> irqs 0-23 on motherboard
ioapic1 <Version 0.3> irqs 24-47 on motherboard
kbd1 at kbdmux0
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
acpi0: <K8M890 AWRDACPI> on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
acpi0: reservation of 0, a0000 (3) failed
acpi0: reservation of 100000, bbde0000 (3) failed
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0
cpu0: <ACPI CPU> on acpi0
powernow0: <PowerNow! K8> on cpu0
cpu1: <ACPI CPU> on acpi0
powernow1: <PowerNow! K8> on cpu1
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
vgapci0: <VGA-compatible display> mem
0xc0000000-0xcfffffff,0xdd000000-0xddffffff irq 16 at device 0.0 on pci1
pcib2: <ACPI PCI-PCI bridge> irq 27 at device 2.0 on pci0
pci2: <ACPI PCI bus> on pcib2
pcib3: <ACPI PCI-PCI bridge> irq 31 at device 3.0 on pci0
pci3: <ACPI PCI bus> on pcib3
rl0: <RealTek 8139 10/100BaseTX> port 0xf200-0xf2ff mem
0xdffff000-0xdffff0ff irq 19 at device 9.0 on pci0
miibus0: <MII bus> on rl0
rlphy0: <RealTek internal media interface> PHY 0 on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0: Ethernet address: 00:15:58:61:20:4c
rl0: [ITHREAD]
atapci0: <VIA 6420 SATA150 controller> port
0xff00-0xff07,0xfe00-0xfe03,0xfd00-0xfd07,0xfc00-0xfc03,0xfb00-0xfb0f,0xf400-0xf4ff
irq 20 at device 15.0 on pci0
atapci0: [ITHREAD]
ata2: <ATA channel 0> on atapci0
ata2: [ITHREAD]
ata3: <ATA channel 1> on atapci0
ata3: [ITHREAD]
atapci1: <VIA 8237 UDMA133 controller> port
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfa00-0xfa0f at device 15.1 on pci0
ata0: <ATA channel 0> on atapci1
ata0: [ITHREAD]
ata1: <ATA channel 1> on atapci1
ata1: [ITHREAD]
uhci0: <VIA 83C572 USB controller> port 0xf900-0xf91f irq 21 at device 16.0
on pci0
uhci0: [GIANT-LOCKED]
uhci0: [ITHREAD]
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: <VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb0
uhub0: 2 ports with 2 removable, self powered
uhci1: <VIA 83C572 USB controller> port 0xf800-0xf81f irq 21 at device 16.1
on pci0
uhci1: [GIANT-LOCKED]
uhci1: [ITHREAD]
usb1: <VIA 83C572 USB controller> on uhci1
usb1: USB revision 1.0
uhub1: <VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb1
uhub1: 2 ports with 2 removable, self powered
uhci2: <VIA 83C572 USB controller> port 0xf700-0xf71f irq 21 at device 16.2
on pci0
uhci2: [GIANT-LOCKED]
uhci2: [ITHREAD]
usb2: <VIA 83C572 USB controller> on uhci2
usb2: USB revision 1.0
uhub2: <VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb2
uhub2: 2 ports with 2 removable, self powered
uhci3: <VIA 83C572 USB controller> port 0xf600-0xf61f irq 21 at device 16.3
on pci0
uhci3: [GIANT-LOCKED]
uhci3: [ITHREAD]
usb3: <VIA 83C572 USB controller> on uhci3
usb3: USB revision 1.0
uhub3: <VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb3
uhub3: 2 ports with 2 removable, self powered
ehci0: <VIA VT6202 USB 2.0 controller> mem 0xdfffe000-0xdfffe0ff irq 21 at
device 16.4 on pci0
ehci0: [GIANT-LOCKED]
ehci0: [ITHREAD]
usb4: EHCI version 1.0
usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3
usb4: <VIA VT6202 USB 2.0 controller> on ehci0
usb4: USB revision 2.0
uhub4: <VIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1> on usb4
uhub4: 8 ports with 8 removable, self powered
isab0: <PCI-ISA bridge> at device 17.0 on pci0
isa0: <ISA bus> on isab0
pci0: <multimedia, audio> at device 17.5 (no driver attached)
acpi_tz0: <Thermal Zone> on acpi0
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on
acpi0
sio0: type 16550A
sio0: [FILTER]
sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
sio1: [FILTER]
pmtimer0 on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
ppbus0: [ITHREAD]
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
ppc0: [GIANT-LOCKED]
ppc0: [ITHREAD]
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
ukbd0: <Dell Dell USB Keyboard, class 0/0, rev 1.10/3.01, addr 2> on uhub0
kbd2 at ukbd0
Timecounters tick every 1.000 msec
ipfw2 (+ipv6) initialized, divert enabled, nat loadable, rule-based
forwarding enabled, default to accept, logging limited to 100 packets/entry
by default
ad0: 76319MB <Seagate ST380011A 8.01> at ata0-master UDMA100
ad4: 76319MB <Seagate ST380811AS 3.AAE> at ata2-master SATA150
SMP: AP CPU #1 Launched!
Trying to mount root from ufs:/dev/ad4s1a
rl0: link state changed to UP

- Hide quoted text -



On Fri, May 2, 2008 at 7:20 PM, Mel <fbsd.questions@rachie.is-a-geek.net>
wrote:

On Friday 02 May 2008 13:28:44 Free BSD wrote:
> We've been having some problems with our server and I was wondering if
> someone had any advice or suggestions for our current system settings.

Would help to know, at minimum:
- ammount of ram
- ammount of cpu's
- platform (uname -m )
- pciconf -lv|grep ^none
- dmesg output that complains about hardware
- what's different about your kernel with respect to GENERIC

What the problems are:
- from the sysctl variables, I'm guessing you want more network performance
- you mention core dumps, does the kernel crash?

Some background:
- what's the primary purpose of the machine
- why are things like ipc tuned?


> kern.maxfilesperproc=65536

The above will only work with programs that use open(2) exclusively and not
fopen, because fopen is limited to SHRT_MAX, being 32767.


--
Mel

Problem with today's modular software: they start with the modules
   and never get to the software part.



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