From owner-freebsd-questions Tue Jan 29 18:19:19 2002 Delivered-To: freebsd-questions@freebsd.org Received: from stereophonic.noops.org (adsl-63-195-97-84.dsl.snfc21.pacbell.net [63.195.97.84]) by hub.freebsd.org (Postfix) with SMTP id 6956237B402 for ; Tue, 29 Jan 2002 18:19:07 -0800 (PST) Received: (qmail 87467 invoked by uid 1000); 30 Jan 2002 02:19:09 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 30 Jan 2002 02:19:09 -0000 Date: Tue, 29 Jan 2002 18:19:09 -0800 (PST) From: Thomas Cannon To: Storms of Perfection Cc: Subject: Re: Performance Tuning FreeBSD In-Reply-To: <2369.208.141.46.249.1012356324.squirrel@test.outloud.org> Message-ID: <20020129181509.S87286-100000@stereophonic.noops.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi. Your question is pretty general, and most of what people would write is just a repeat of what it well documented a few other places. Allow me to kindly direct you to: http://httpd.apache.org/docs/misc/perf.html and http://www.daemonnews.org/200108/benchmark.html They should help you quite a bit. If you go through all that and still have out of control loads, you might need to throw some hardware at the problem. Also, it helps others on the list (and people digging through this later in archive form) if you have a subject line relating to the issue. Cheers, Thomas On Tue, 29 Jan 2002, Storms of Perfection wrote: > Maybe someone can help me with a problem. > > I have a pretty beefy webserver, with 3 gigs of memory. The load average on > the machine is really high, when apache loads. Disk swapping is also high. > Apache is almost bare with a couple of modules installed. The content I am > deleving is static content. My kernel config is generic also, but I need > some advice on what I can do to get the load down to < 20 (highest I've > seen it was around 200) > > Copyright (c) 1992-2001 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 4.4-RELEASE #0: Tue Jan 29 17:40:38 GMT 2002 > rob@rcp-2u.rcp.net:/usr/src/sys/compile/WORK > Timecounter "i8254" frequency 1193182 Hz > CPU: Pentium III/Pentium III Xeon/Celeron (999.52-MHz 686-class CPU) > Origin = "GenuineIntel" Id = 0x686 Stepping = 6 > > Features=0x383fbff CMOV,PAT,PSE36,MMX,FXSR,SSE> > real memory = 3221159936 (3145664K bytes) > avail memory = 3130433536 (3057064K bytes) > Programming 16 pins in IOAPIC #0 > IOAPIC #0 intpin 2 -> irq 0 > Programming 16 pins in IOAPIC #1 > FreeBSD/SMP: Multiprocessor motherboard > cpu0 (BSP): apic id: 0, version: 0x00040011, at 0xfee00000 > cpu1 (AP): apic id: 1, version: 0x00040011, at 0xfee00000 > io0 (APIC): apic id: 4, version: 0x000f0011, at 0xfec00000 > io1 (APIC): apic id: 5, version: 0x000f0011, at 0xfec01000 > Preloaded elf kernel "kernel" at 0xc0498000. > Pentium Pro MTRR support enabled > md0: Malloc disk > Using $PIR table, 9 entries at 0xc00f5260 > npx0: on motherboard > npx0: INT 16 interface > pcib0: on motherboard > IOAPIC #1 intpin 4 -> irq 2 > IOAPIC #1 intpin 6 -> irq 9 > pci0: on pcib0 > pci0: at 3.0 irq 2 > fxp0: port 0xd400-0xd43f mem 0xfe600000- > 0xfe6fffff,0xfe8fd000-0xfe8fdfff irq 9 at device 4.0 on pci0 > fxp0: Ethernet address 00:30:48:11:d3:8b > inphy0: on miibus0 > inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > fxp1: irq 0 at device 6.0 on pci0 > fxp1: could not map device registers > device_probe_and_attach: fxp1 attach returned 6 > isab0: at device 15.0 on pci0 > isa0: on isab0 > atapci0: port 0xffa0-0xffaf at device > 15.1 on pci0 > ata0: at 0x1f0 irq 14 on atapci0 > ata1: at 0x170 irq 15 on atapci0 > ohci0: mem 0xfe8fe000-0xfe8fefff irq 10 at > device 15.2 on pci0 > usb0: OHCI version 1.0, legacy support > usb0: on ohci0 > usb0: USB revision 1.0 > uhub0: (unknown) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 > uhub0: 4 ports with 4 removable, self powered > pcib1: on motherboard > IOAPIC #1 intpin 12 -> irq 11 > pci1: on pcib1 > ahc0: port 0xe800-0xe8ff mem > 0xfebff000-0xfebfffff irq 11 at device 3.0 on pci1 > aic7892: Ultra160 Wide Channel A, SCSI Id=7, 32/255 SCBs > orm0: