Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Apr 2001 15:01:19 -0400
From:      "Nathan Vidican" <nathan@vidican.com>
To:        <questions@freebsd.org>
Subject:   performance problems under 4.2-RELEASE, (driving me nuts!)
Message-ID:  <003201c0cf4c$72013600$6700000a@78lb019>

next in thread | raw e-mail | index | archive | help

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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,
PA
T,PSE36,MMX,FXSR>
  AMD Features=0xc0400000<AMIE,DSP,3DNow!>
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: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
pcib2: <PCI to PCI bridge (vendor=1106 device=8391)> at device 1.0 on pci0
pci1: <PCI bus> on pcib2
isab0: <VIA 82C686 PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <VIA 82C686 ATA66 controller> port 0x9000-0x900f at device 7.1 on
pci0
pci0: <VIA 83C572 USB controller> at 7.2 irq 15
pci0: <VIA 83C572 USB controller> at 7.3 irq 15
chip2: <VIA 82C686 AC97 Audio> port
0xa400-0xa403,0xa000-0xa003,0x9c00-0x9cff ir
q 11 at device 7.5 on pci0
pci0: <Trident model 9660 VGA-compatible display device> at 11.0 irq 11
fxp0: <Intel Pro 10/100B/100+ Ethernet> 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: <Promise ATA100 controller> 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: <Host to PCI bridge> on motherboard
pci2: <PCI bus> on pcib1
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> 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 <Maxtor 5T060H6> [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 <stdio.h>

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?003201c0cf4c$72013600$6700000a>