From owner-freebsd-questions@FreeBSD.ORG Sun May 4 00:41:25 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 54D3D106564A for ; Sun, 4 May 2008 00:41:25 +0000 (UTC) (envelope-from pcloches@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.229]) by mx1.freebsd.org (Postfix) with ESMTP id 0E3BC8FC0A for ; Sun, 4 May 2008 00:41:24 +0000 (UTC) (envelope-from pcloches@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so1501264rvf.43 for ; Sat, 03 May 2008 17:41:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:references:message-id:from:to:in-reply-to:content-type:x-mailer:mime-version:subject:content-transfer-encoding:date:cc; bh=cee5Pugv7MCKuTHbVFbMvvGdJhxPqy81kIxvda5eJ4U=; b=J6Pgva87z1KmkyepDlwUMBAKgpMRqlc/xkuKOux5yfjigHAfzKiZIxW1R2mj3SYnMy6t2LHadpWtseXWTmpRbnRA3DiwoP5SXcgkDlqSwmQIHjvETM37dj2Vl+nrocs32Io/xit6yxp5KpbVLKgpy5jPhxVTtDJ2wPQravxQyps= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=references:message-id:from:to:in-reply-to:content-type:x-mailer:mime-version:subject:content-transfer-encoding:date:cc; b=IDAC31ieH9OBh/IawfFPvF26DpoySF2FZ1fa1ijZaPBRKvTZxsePLsOobI4x2gTvGWRMKhdOCDN9Qx4o1FPHh9D1OXhBPK9TNkbvCcSfV1fBNDPul7pPuqTYwGqjHRWm0hVOVcKdFxAfMNpR4x5Va75qx4yZOB4Ghs7slVPSpa8= Received: by 10.140.192.9 with SMTP id p9mr2080475rvf.193.1209861684603; Sat, 03 May 2008 17:41:24 -0700 (PDT) Received: from ?10.96.82.170? ( [32.159.49.29]) by mx.google.com with ESMTPS id c20sm6016573rvf.1.2008.05.03.17.41.21 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 03 May 2008 17:41:24 -0700 (PDT) References: <322efb7b0805020428y5f439fadk4b1beb95d397493@mail.gmail.com> <200805030120.05590.fbsd.questions@rachie.is-a-geek.net> <322efb7b0805031556n34f00c49oe4e503f561acf366@mail.gmail.com> Message-Id: From: Patrick Clochesy To: Free BSD In-Reply-To: <322efb7b0805031556n34f00c49oe4e503f561acf366@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes X-Mailer: iPhone Mail (4A102) Mime-Version: 1.0 (iPhone Mail 4A102) Content-Transfer-Encoding: 7bit Date: Sat, 3 May 2008 17:41:10 -0700 Cc: "freebsd-questions@freebsd.org" Subject: Re: FreeBSD Server Settings Consult 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: Sun, 04 May 2008 00:41:25 -0000 This is a 64-bit platform... Any reasons you're on an i386 kernel? At the least it would fix your RAM issue. -Patrick On May 3, 2008, at 3:56 PM, "Free BSD" wrote: > 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 > AMD Features=0xea500800 3DNow!> > AMD Features2=0x1f > Cores per package: 2 > real memory = 3152936960 (3006 MB) > avail memory = 3078762496 (2936 MB) > ACPI APIC Table: > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs > cpu0 (BSP): APIC ID: 0 > cpu1 (AP): APIC ID: 1 > ioapic0: Changing APIC ID to 2 > ioapic0 irqs 0-23 on motherboard > ioapic1 irqs 24-47 on motherboard > kbd1 at kbdmux0 > ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, > RF5413) > acpi0: 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: on acpi0 > powernow0: on cpu0 > cpu1: on acpi0 > powernow1: on cpu1 > acpi_button0: on acpi0 > pcib0: port 0xcf8-0xcff on acpi0 > pci0: on pcib0 > pcib1: at device 1.0 on pci0 > pci1: on pcib1 > vgapci0: mem > 0xc0000000-0xcfffffff,0xdd000000-0xddffffff irq 16 at device 0.0 on > pci1 > pcib2: irq 27 at device 2.0 on pci0 > pci2: on pcib2 > pcib3: irq 31 at device 3.0 on pci0 > pci3: on pcib3 > rl0: port 0xf200-0xf2ff mem > 0xdffff000-0xdffff0ff irq 19 at device 9.0 on pci0 > miibus0: on rl0 > rlphy0: PHY 0 on miibus0 > rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > rl0: Ethernet address: 00:15:58:61:20:4c > rl0: [ITHREAD] > atapci0: port > 0xff00- > 0xff07,0xfe00-0xfe03,0xfd00-0xfd07,0xfc00-0xfc03,0xfb00-0xfb0f, > 0xf400-0xf4ff > irq 20 at device 15.0 on pci0 > atapci0: [ITHREAD] > ata2: on atapci0 > ata2: [ITHREAD] > ata3: on atapci0 > ata3: [ITHREAD] > atapci1: port > 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfa00-0xfa0f at device 15.1 on > pci0 > ata0: on atapci1 > ata0: [ITHREAD] > ata1: on atapci1 > ata1: [ITHREAD] > uhci0: port 0xf900-0xf91f irq 21 at > device 16.0 > on pci0 > uhci0: [GIANT-LOCKED] > uhci0: [ITHREAD] > usb0: on uhci0 > usb0: USB revision 1.0 > uhub0: on usb0 > uhub0: 2 ports with 2 removable, self powered > uhci1: port 0xf800-0xf81f irq 21 at > device 16.1 > on pci0 > uhci1: [GIANT-LOCKED] > uhci1: [ITHREAD] > usb1: on uhci1 > usb1: USB revision 1.0 > uhub1: on usb1 > uhub1: 2 ports with 2 removable, self powered > uhci2: port 0xf700-0xf71f irq 21 at > device 16.2 > on pci0 > uhci2: [GIANT-LOCKED] > uhci2: [ITHREAD] > usb2: on uhci2 > usb2: USB revision 1.0 > uhub2: on usb2 > uhub2: 2 ports with 2 removable, self powered > uhci3: port 0xf600-0xf61f irq 21 at > device 16.3 > on pci0 > uhci3: [GIANT-LOCKED] > uhci3: [ITHREAD] > usb3: on uhci3 > usb3: USB revision 1.0 > uhub3: on usb3 > uhub3: 2 ports with 2 removable, self powered > ehci0: 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: on ehci0 > usb4: USB revision 2.0 > uhub4: on usb4 > uhub4: 8 ports with 8 removable, self powered > isab0: at device 17.0 on pci0 > isa0: on isab0 > pci0: at device 17.5 (no driver attached) > acpi_tz0: 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: at port 0x60,0x64 on isa0 > atkbd0: irq 1 on atkbdc0 > kbd0 at atkbd0 > atkbd0: [GIANT-LOCKED] > atkbd0: [ITHREAD] > ppc0: at port 0x378-0x37f irq 7 on isa0 > ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode > ppbus0: on ppc0 > ppbus0: [ITHREAD] > plip0: on ppbus0 > lpt0: on ppbus0 > lpt0: Interrupt-driven port > ppi0: on ppbus0 > ppc0: [GIANT-LOCKED] > ppc0: [ITHREAD] > sc0: at flags 0x100 on isa0 > sc0: VGA <16 virtual consoles, flags=0x300> > vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on > isa0 > ukbd0: 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 at ata0-master UDMA100 > ad4: 76319MB 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 > > 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. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org > "