From owner-freebsd-questions Fri Apr 27 12: 6:43 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.ipsnetwork.net (mail.ipsnetwork.net [209.202.83.5]) by hub.freebsd.org (Postfix) with ESMTP id 042A237B422 for ; Fri, 27 Apr 2001 12:06:38 -0700 (PDT) (envelope-from nathan@vidican.com) Received: from 78lb019 (120-83.209-tic.ipsnetwork.net [209.202.83.120] (may be forged)) by mail.ipsnetwork.net (8.11.1/8.11.1) with SMTP id f3RJ5kt00402 for ; Fri, 27 Apr 2001 15:05:46 -0400 (EDT) (envelope-from nathan@vidican.com) Message-ID: <003201c0cf4c$72013600$6700000a@78lb019> From: "Nathan Vidican" To: Subject: performance problems under 4.2-RELEASE, (driving me nuts!) Date: Fri, 27 Apr 2001 15:01:19 -0400 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG The system's top output produces the following: last pid: 367; load averages: 0.10, 0.06, 0.01 up 0+01:46:17 14:53:42 44 processes: 1 running, 42 sleeping, 1 zombie CPU states: 1.5% user, 0.0% nice, 1.9% system, 0.0% interrupt, 96.6% idle Mem: 8484K Active, 7236K Inact, 7568K Wired, 260K Cache, 7072K Buf, 101M Free Swap: 400M Total, 400M Free PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 367 nvidican 28 0 1880K 1172K RUN 0:08 3.99% 3.81% top 213 root 2 0 2352K 1976K select 0:07 0.00% 0.00% named 202 root 2 0 3244K 2824K select 0:06 0.00% 0.00% httpd 361 nvidican 18 0 1340K 896K pause 0:02 0.00% 0.00% csh 219 apache 2 0 3316K 2884K accept 0:02 0.00% 0.00% httpd 95 root 2 0 916K 616K select 0:01 0.00% 0.00% syslogd 148 root 2 0 1536K 1332K select 0:01 0.00% 0.00% sendmail 360 root 2 0 1224K 852K select 0:01 0.00% 0.00% telnetd 145 root 10 0 952K 720K nanslp 0:01 0.00% 0.00% cron 260 apache 2 0 3288K 2852K accept 0:00 0.00% 0.00% httpd 143 root 2 0 1032K 792K select 0:00 0.00% 0.00% inetd 217 apache 2 0 3292K 2856K accept 0:00 0.00% 0.00% httpd 235 root 3 0 924K 636K ttyin 0:00 0.00% 0.00% getty 241 root 3 0 924K 636K ttyin 0:00 0.00% 0.00% getty Nothing apparently pulling resources, nothing seemingly out of wack; but something's definetly wrong. The system crawls, takes like >30 seconds to output a simple 'Hello World' PERL script. The dmesg output is: Copyright (c) 1992-2000 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.2-RELEASE #0: Thu Apr 26 20:52:51 EDT 2001 nvidican@mail.ipsnetwork.net:/usr/src/sys/compile/mail Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 950046739 Hz CPU: AMD Athlon(tm) Processor (950.05-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x622 Stepping = 2 Features=0x183f9ff AMD Features=0xc0400000 real memory = 134217728 (131072K bytes) avail memory = 127586304 (124596K bytes) Preloaded elf kernel "kernel" at 0xc02b3000. Preloaded userconfig_script "/boot/kernel.conf" at 0xc02b309c. Pentium Pro MTRR support enabled md0: Malloc disk npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 pcib2: at device 1.0 on pci0 pci1: on pcib2 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0x9000-0x900f at device 7.1 on pci0 pci0: at 7.2 irq 15 pci0: at 7.3 irq 15 chip2: port 0xa400-0xa403,0xa000-0xa003,0x9c00-0x9cff ir q 11 at device 7.5 on pci0 pci0: at 11.0 irq 11 fxp0: port 0xac00-0xac1f mem 0xd5800000-0xd58f ffff,0xd5930000-0xd5930fff irq 15 at device 12.0 on pci0 fxp0: Ethernet address 00:60:94:ea:67:c0 atapci1: port 0xc000-0xc03f,0xbc00-0xbc03,0xb800-0xb 807,0xb400-0xb403,0xb000-0xb007 mem 0xd5900000-0xd591ffff irq 15 at device 13.0 on pci0 ata2: at 0xb000 on atapci1 ata3: at 0xb800 on atapci1 pcib1: on motherboard pci2: on pcib1 fdc0: at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A IP packet filtering initialized, divert disabled, rule-based forwarding disabled , default to deny, logging disabled ad4: 58644MB [119150/16/63] at ata2-master UDMA100 Mounting root from ufs:/dev/ad4s1a No alerations to the base install with the exception of a new kernel config, which is basically a GENERIC kernel with options IPFIREWALL, and un-used hardware devices stripped out. The kernel is configured to use 686 cpu. The hardware isn't apparently faulty, the system isn't apparently under heavy load, there is next to nothing running on the machine, and no errors are outputted. Yet the system still takes forever to do anything. It took me >13hours to compile the new kernel on this thing. For a 950mhz CPU, with 128megs of RAM this machine should run a lot better than it is. I have re-installed the O/S a second time now to make sure it wasn't just something funny with the release I had been using (4.2-STABLE snapshot December-ish) to 4.2-RELEASE. I would consider going to 4.3-RELEASE, but am not sure if that will actually fix anything, as I cannot for the life of me figure out what's wrong. It takes just about one minute to compile the following: #include int main() { printf("Hello World\n"); return 0; } Unfortunately much longer for the PERL-written CGI scripts I'm using, (including if I attempt to execute said scripts from the console; which rules out any problems with Apache's setup). If anyone has any ideas, related problems, suggestions, comments or otherwise could you please email me. I'm pulling hair out trying to figure this one out... it just doesn't make any sense! Nathan Vidican Nathan@Vidican.com http://Nathan.Vidican.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message