From owner-freebsd-performance@FreeBSD.ORG Thu Sep 11 10:24:19 2003 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4CC3116A4BF for ; Thu, 11 Sep 2003 10:24:19 -0700 (PDT) Received: from mx1.clickcom.com (mx2.clickcom.com [209.198.22.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1B9D543FEA for ; Thu, 11 Sep 2003 10:24:18 -0700 (PDT) (envelope-from jsmailing@clickcom.com) Received: from aesop (calefaction.clickcom.com [209.198.22.19]) by mx1.clickcom.com (email) with ESMTP id 727F5553D2; Thu, 11 Sep 2003 13:24:17 -0400 (EDT) From: "John Straiton" To: "'Damian Gerow'" Date: Thu, 11 Sep 2003 13:19:00 -0400 Message-ID: <00b201c37888$cec24770$1916c60a@win2k.clickcom.com> 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 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2727.1300 Importance: Normal In-Reply-To: <20030911170345.GN769@sentex.net> cc: freebsd-performance@freebsd.org Subject: RE: Performance Problems.. Server hardware smoked by $500 box? X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Sep 2003 17:24:19 -0000 > Thus spake John Straiton (jsmailing@clickcom.com) [11/09/03 12:45]: > > Thanks for your suggestions, unfortunately- yes, both scenerios in > > production (webserver + db server or db server acting as both) are > > slower than the development box serving off of the db server. There > > are no local services other than apache on the development machine. > > What about the server machine? I'm sorry I didn't make this clear in the beginning..it's funny what stuff you forget actually is important to tell people. The production webserver and the development webserver (when this exercise started) were *exactly* the same in apache configuration (except IP's) and general setup (except hardware differences and the production running 4.8-S while the development ran 5.0-R). The important hardware differences were shown in my original email. > - filesystem usage Since they were configured the same, and both out of "Live" production when we tested, these would be the same > - disk size *and* speed (i.e. 5400 vs 7200 RPM, ATA100 vs. ATA33...) The production used a UW SCSI Seagate Cheetah (10K RPM), while the development used a Maxtor UDMA133 (7200 RPM) > - memory speed (PC100 vs. PC133, DDR200 vs. DDR400...) Production 512MB PC133 ECC Registered vs Development 256MB 266Mhz DDR > - network troubleshooting (10Mb vs. 100Mb, distance between machines, 100Mbit, Full Duplex, less than a meter difference between all 3 machines and the switch they all share (Cisco 3524XL) Together they are below 10 meters total cabling. > distance between servers, different cards being used...) The servers use Intel integrated cards, vs we have a $7 no-name realtek card in the development machine. > - Software tuning / configuration At one point (when we noticed the problem), the only difference between the machines was that the development server had less apache servers (Min/Max/Start) configured because even with just 5 starting, it would begin to swap (cause it ran out of physical ram) after booting. > If you're doing heavy disk I/O, then watch IO on the system (iostat). When out of production, there's no reason either machine would have any disk IO other than normal system logs. > Look at network errors (netstat -i), duplex mismatches (link > lights on switch vs. what ifconfig tells you), and network > load (i.e. production is on a 10Mb hub, development is on a > 100Mb switch). Etc., etc., etc. They are all connected to the same switch, and the Cisco IOS reports zero errors on any of the 3 interfaces. Even when the production machine was live, it would have less than 3Mb/sec load on a 100Mbit/FullDuplex network. I know this kinda sounds like I'm being contradictory, but believe me...I'm not. This is why I'm so stumped, because I've looked at everything mentioned here but as of yet, haven't been able to justify to myself that just the difference in DDR vs SDRAM and 500Mhz is what I am to blame for it being visibly faster while serving up web pages.. I'd buy that if I were comparing a difference of 50fps in Quake3 but we're talking about *apache* here.. Heh.. I'd hate to think I need to buy a server with 500 more MHz just to test that theory. Perhaps there's something like slo-mo for FreeBSD that I can use to knock that AMD down to around 1Ghz without having to do it via dipswitches on the motherboard... Or well..maybe I'll just crack the case and turn it down (hopefully it'll run if I do that) Thanks for the suggestions, John Straiton jks@ clickcom.com Clickcom, Inc 704-365-9970x101