From owner-freebsd-questions Wed Jan 30 16:44: 2 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail.marketwatchmail.com (mail.marketwatchmail.com [206.146.143.85]) by hub.freebsd.org (Postfix) with SMTP id 4D70E37B405 for ; Wed, 30 Jan 2002 16:43:49 -0800 (PST) Received: (qmail 24324 invoked from network); 31 Jan 2002 01:31:19 -0000 Received: from unknown (HELO jaustadw2k) (206.147.106.71) by mail.marketwatchmail.com with SMTP; 31 Jan 2002 01:31:19 -0000 From: "Jay Austad" To: "Storms of Perfection" Cc: Subject: RE: Performance Tuning FreeBSD Date: Wed, 30 Jan 2002 18:43:44 -0600 Message-ID: <54180709DD3FE145917BB165AFE7EFA002E0D3CE@mspexch2.office.mktw.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: <20020129181509.S87286-100000@stereophonic.noops.org> 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 Turn on softupdates for sure, and also make sure your apache is not doing dns resolution in the logs. Both of these should get the load down. Can you tell where the bottleneck is? Disk IO? Jay > -----Original Message----- > From: Thomas Cannon [mailto:tcannon@noops.org] > Sent: Tuesday, January 29, 2002 8:19 PM > To: Storms of Perfection > Cc: questions@FreeBSD.ORG > Subject: Re: Performance Tuning FreeBSD > > > > 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 ,MTRR,PGE,MCA, > > 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: