Доброго всем времени суток.
Проблема такая: сильно тормозит система (все процессы выполняются очень медленно)сервак Intel SR4850HW4. один Xeon(TM) CPU 2.60GHz, 4 гига оперативы. Диск SCSI 30G/ Двухканальный контроллер Ultra320 SCSI LSI Logic LSI53C1030. Вроде всё должно летать...
Вот кусок top'а:
"GENERIC_11022008" 292 lines, 10962 characters
# top
last pid: 2604; load averages: 1.51, 1.42, 1.21 up 0+04:59:57 23:20:39
38 processes: 2 running, 36 sleeping
CPU states: 46.3% user, 0.0% nice, 9.7% system, 3.6% interrupt, 40.4% idle
Mem: 21M Active, 276M Inact, 83M Wired, 112M Buf, 1614M Free
Swap: 4096M Total, 4096M Free
PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND
2604 root 1 123 0 540K 428K CPU2 0 0:01 81.00% make
2590 root 1 -64 0 2388K 1596K CPU0 2 0:05 12.95% top
сам top съедает 12% процессора. И это ещё не много. Когда он (top) только запускается, он есть окло 40%.
что в системе:
# dmesg
Copyright (c) 1992-2008 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 is a registered trademark of The FreeBSD Foundation.
FreeBSD 6.3-RELEASE #0: Wed Jan 16 04:45:45 UTC 2008
root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Xeon(TM) CPU 2.60GHz (2596.12-MHz 686-class CPU)
Origin = "GenuineIntel" Id = 0xf68 Stepping = 8
Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
Features2=0xe43d<SSE3,RSVD2,MON,DS_CPL,VMX,CNXT-ID,CX16,xTPR,PDCM>
AMD Features=0x20100000<NX,LM>
AMD Features2=0x1<LAHF>
Cores per package: 2
Logical CPUs per core: 2
real memory = 2142740480 (2043 MB)
avail memory = 2085883904 (1989 MB)
ACPI APIC Table: <INTEL SHW40M >
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
cpu0 (BSP): APIC ID: 8
cpu1 (AP): APIC ID: 9
cpu2 (AP): APIC ID: 10
cpu3 (AP): APIC ID: 11
ioapic0 <Version 2.0> irqs 0-23 on motherboard
ioapic1 <Version 2.0> irqs 24-47 on motherboard
ioapic2 <Version 2.0> irqs 48-71 on motherboard
ioapic3 <Version 2.0> irqs 72-95 on motherboard
ioapic4 <Version 2.0> irqs 96-119 on motherboard
lapic8: Forcing LINT1 to edge trigger
kbd1 at kbdmux0
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
hptrr: HPT RocketRAID controller driver v1.1 (Jan 16 2008 04:43:12)
acpi0: <INTEL SHW40M> on motherboard
acpi0: Power Button (fixed)
unknown: memory range not supported
unknown: memory range not supported
unknown: memory range not supported
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0
acpi_ec0: <Embedded Controller: GPE 0x10> port 0xca6,0xca7 on acpi0
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
cpu2: <ACPI CPU> on acpi0
cpu3: <ACPI CPU> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff iomem 0xa0000-0xbffff,0x80000000-0x8fffffff,0xffc00000-0xffdfffff,0xffe00000-0xffffffff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pcib2: <ACPI PCI-PCI bridge> at device 2.0 on pci0
pci3: <ACPI PCI bus> on pcib2
pcib3: <ACPI PCI-PCI bridge> at device 3.0 on pci0
pci5: <ACPI PCI bus> on pcib3
pcib4: <ACPI PCI-PCI bridge> at device 4.0 on pci0
pci6: <ACPI PCI bus> on pcib4
pcib5: <ACPI PCI-PCI bridge> at device 5.0 on pci0
pci8: <ACPI PCI bus> on pcib5
pcib6: <ACPI PCI-PCI bridge> at device 6.0 on pci0
pci10: <ACPI PCI bus> on pcib6
pcib7: <ACPI PCI-PCI bridge> mem 0xae400000-0xae400fff irq 47 at device 0.0 on pci10
pci11: <ACPI PCI bus> on pcib7
pcib8: <ACPI PCI-PCI bridge> at device 0.2 on pci10
pci12: <ACPI PCI bus> on pcib8
bge0: <Broadcom BCM5704 B0, ASIC rev. 0x2100> mem 0xac300000-0xac30ffff irq 48 at device 2.0 on pci12
miibus0: <MII bus> on bge0
brgphy0: <BCM5704 10/100/1000baseTX PHY> on miibus0
brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
bge0: Ethernet address: 00:0e:0c:43:a5:37
bge1: <Broadcom BCM5704 B0, ASIC rev. 0x2100> mem 0xac310000-0xac31ffff irq 49 at device 2.1 on pci12
miibus1: <MII bus> on bge1
brgphy1: <BCM5704 10/100/1000baseTX PHY> on miibus1
brgphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
bge1: Ethernet address: 00:0e:0c:43:a5:38
pcib9: <ACPI PCI-PCI bridge> at device 7.0 on pci0
pci14: <ACPI PCI bus> on pcib9
pcib10: <ACPI PCI-PCI bridge> at device 0.0 on pci14
pci15: <ACPI PCI bus> on pcib10
mpt0: <LSILogic 1030 Ultra4 Adapter> port 0x3100-0x31ff mem 0xac100000-0xac10ffff,0xac110000-0xac11ffff irq 72 at device 5.0 on pci15
mpt0: [GIANT-LOCKED]
mpt0: MPI Version=1.2.14.0
mpt1: <LSILogic 1030 Ultra4 Adapter> port 0x3000-0x30ff mem 0xac120000-0xac12ffff,0xac130000-0xac13ffff irq 73 at device 5.1 on pci15
mpt1: [GIANT-LOCKED]
mpt1: MPI Version=1.2.14.0
pcib11: <ACPI PCI-PCI bridge> at device 0.2 on pci14
pci16: <ACPI PCI bus> on pcib11
pci0: <memory, RAM> at device 9.0 (no driver attached)
pci0: <memory, RAM> at device 9.1 (no driver attached)
pci0: <memory, RAM> at device 9.2 (no driver attached)
pci0: <memory, RAM> at device 9.3 (no driver attached)
pci0: <memory, RAM> at device 9.4 (no driver attached)
pci0: <memory, RAM> at device 9.5 (no driver attached)
pci0: <memory, RAM> at device 9.6 (no driver attached)
pci0: <memory, RAM> at device 9.7 (no driver attached)
pci0: <memory, RAM> at device 11.0 (no driver attached)
pci0: <memory, RAM> at device 11.1 (no driver attached)
pci0: <memory, RAM> at device 11.2 (no driver attached)
pci0: <memory, RAM> at device 11.3 (no driver attached)
pci0: <memory, RAM> at device 11.4 (no driver attached)
pci0: <memory, RAM> at device 11.5 (no driver attached)
pci0: <memory, RAM> at device 11.6 (no driver attached)
pci0: <memory, RAM> at device 11.7 (no driver attached)
pci0: <memory, RAM> at device 13.0 (no driver attached)
pci0: <memory, RAM> at device 13.1 (no driver attached)
pci0: <memory, RAM> at device 13.2 (no driver attached)
pci0: <memory, RAM> at device 13.3 (no driver attached)
pci0: <memory, RAM> at device 13.4 (no driver attached)
pci0: <memory, RAM> at device 13.5 (no driver attached)
pci0: <memory, RAM> at device 13.6 (no driver attached)
pci0: <memory, RAM> at device 13.7 (no driver attached)
pci0: <memory, RAM> at device 15.0 (no driver attached)
pci0: <memory, RAM> at device 15.1 (no driver attached)
pci0: <memory, RAM> at device 15.2 (no driver attached)
pci0: <memory, RAM> at device 15.3 (no driver attached)
pci0: <memory, RAM> at device 15.4 (no driver attached)
pci0: <memory, RAM> at device 15.5 (no driver attached)
pci0: <memory, RAM> at device 15.6 (no driver attached)
pci0: <memory, RAM> at device 15.7 (no driver attached)
uhci0: <Intel 82801EB (ICH5) USB controller USB-A> port 0x9060-0x907f irq 16 at device 29.0 on pci0
uhci0: [GIANT-LOCKED]
usb0: <Intel 82801EB (ICH5) USB controller USB-A> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <Intel 82801EB (ICH5) USB controller USB-B> port 0x9040-0x905f irq 19 at device 29.1 on pci0
uhci1: [GIANT-LOCKED]
usb1: <Intel 82801EB (ICH5) USB controller USB-B> on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2: <Intel 82801EB (ICH5) USB controller USB-C> port 0x9020-0x903f irq 18 at device 29.2 on pci0
uhci2: [GIANT-LOCKED]
usb2: <Intel 82801EB (ICH5) USB controller USB-C> on uhci2
usb2: USB revision 1.0
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
ehci0: <Intel 82801EB/R (ICH5) USB 2.0 controller> mem 0xb6500000-0xb65003ff irq 23 at device 29.7 on pci0
ehci0: [GIANT-LOCKED]
usb3: EHCI version 1.0
usb3: companion controllers, 2 ports each: usb0 usb1 usb2
usb3: <Intel 82801EB/R (ICH5) USB 2.0 controller> on ehci0
usb3: USB revision 2.0
uhub3: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub3: 6 ports with 6 removable, self powered
uhub4: vendor 0x0424 product 0x2504, class 9/0, rev 2.00/0.00, addr 2
uhub4: multiple transaction translators
uhub4: 3 ports with 3 removable, self powered
pcib12: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci17: <ACPI PCI bus> on pcib12
pci17: <display, VGA> at device 0.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH5 SATA150 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x9080-0x908f irq 18 at device 31.2 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A
sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem 0xc0000-0xcafff,0xcb000-0xcefff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
fdc0: <Enhanced floppy controller> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: [FAST]
ppc0: parallel port not found.
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
ukbd0: Logitech HID compliant keyboard, rev 1.10/1.80, addr 2, iclass 3/1
kbd2 at ukbd0
uhid0: Logitech HID compliant keyboard, rev 1.10/1.80, addr 2, iclass 3/1
Timecounters tick every 1.000 msec
hptrr: no controller detected.
Waiting 5 seconds for SCSI devices to settle
acd0: DVDROM <PHILIPS DVD-ROM SDR089/TQ02> at ata0-master UDMA33
ses0 at mpt0 bus 0 target 6 lun 0
ses0: <ESG-SHV SCA HSBP M34 1.07> Fixed Processor SCSI-2 device
ses0: 3.300MB/s transfers
ses0: SAF-TE Compliant Device
da0 at mpt0 bus 0 target 0 lun 0
da0: <SEAGATE ST336607LC 0007> Fixed Direct Access SCSI-3 device
da0: 320.000MB/s transfers (160.000MHz, offset 63, 16bit), Tagged Queueing Enabled
da0: 35003MB (71687372 512 byte sectors: 255H 63S/T 4462C)
da1 at mpt0 bus 0 target 1 lun 0
da1: <SEAGATE ST336607LC 0007> Fixed Direct Access SCSI-3 device
da1: 320.000MB/s transfers (160.000MHz, offset 63, 16bit), Tagged Queueing Enabled
da1: 35003MB (71687372 512 byte sectors: 255H 63S/T 4462C)
lapic11: Forcing LINT1 to edge trigger
SMP: AP CPU #3 Launched!
lapic9: Forcing LINT1 to edge trigger
SMP: AP CPU #1 Launched!
lapic10: Forcing LINT1 to edge trigger
SMP: AP CPU #2 Launched!
Trying to mount root from ufs:/dev/da0s1a
IP Filter: v4.1.28 initialized. Default = pass all, Logging = enabled
ukbd0: at uhub2 port 1 (addr 2) disconnected
ukbd0: detached
uhid0: at uhub2 port 1 (addr 2) disconnected
uhid0: detached
interrupt storm detected on "irq16:"; throttling interrupt source
interrupt storm detected on "irq16:"; throttling interrupt source
interrupt storm detected on "irq16:"; throttling interrupt source
interrupt storm detected on "irq16:"; throttling interrupt source
interrupt storm detected on "irq16:"; throttling interrupt source
interrupt storm detected on "irq16:"; throttling interrupt source
interrupt storm detected on "irq16:"; throttling interrupt source
interrupt storm detected on "irq16:"; throttling interrupt source
ядро GENERIC SMP, сейчас перекомпилирую его со следующим конфигом, но боюсь до утра не скомпилится:
machine i386
cpu I686_CPU
ident K_11022008
options SCHED_4BSD # 4BSD scheduler
options PREEMPTION # Enable kernel thread preemption
options INET # InterNETworking
options FFS # Berkeley Fast Filesystem
options SOFTUPDATES # Enable FFS soft updates support
options UFS_ACL # Support for access control lists
options UFS_DIRHASH # Improve performance on big directories
options MD_ROOT # MD is a potential root device
options NFSCLIENT # Network Filesystem Client
options NFSSERVER # Network Filesystem Server
options NFS_ROOT # NFS usable as /, requires NFSCLIENT
options MSDOSFS # MSDOS Filesystem
options CD9660 # ISO 9660 Filesystem
options PROCFS # Process filesystem (requires PSEUDOFS)
options PSEUDOFS # Pseudo-filesystem framework
options GEOM_GPT # GUID Partition Tables.
options COMPAT_43 # Compatible with BSD 4.3 [KEEP THIS!]
options COMPAT_FREEBSD4 # Compatible with FreeBSD4
options COMPAT_FREEBSD5 # Compatible with FreeBSD5
options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI
options SYSVSHM # SYSV-style shared memory
options SYSVMSG # SYSV-style message queues
options SYSVSEM # SYSV-style semaphores
options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
options KBD_INSTALL_CDEV # install a CDEV entry in /dev
options ADAPTIVE_GIANT # Giant mutex is adaptive.
device apic # I/O APIC
# Bus support.
device eisa
device pci
# ATA and ATAPI devices
device ata
device atadisk # ATA disk drives
device ataraid # ATA RAID drives
device atapicd # ATAPI CDROM drives
device atapifd # ATAPI floppy drives
device atapist # ATAPI tape drives
options ATA_STATIC_ID # Static device numbering
# SCSI Controllers
options AHC_REG_PRETTY_PRINT # Print register bitfields in debug
# output. Adds ~128k to driver.
options AHD_REG_PRETTY_PRINT # Print register bitfields in debug
# output. Adds ~215k to driver.
device mpt # LSI-Logic MPT-Fusion
# SCSI peripherals
device scbus # SCSI bus (required for SCSI)
device da # Direct Access (disks)
device ses # SCSI Environmental Services (and SAF-TE)
# atkbdc0 controls both the keyboard and the PS/2 mouse
device atkbdc # AT keyboard controller
device atkbd # AT keyboard
device vga # VGA video card driver
# syscons is the default console driver, resembling an SCO console
device sc
device agp # support several AGP chipsets
# Power management support (see NOTES for more options)
#device apm
# Add suspend/resume support for the i8254.
device pmtimer
# Serial (COM) ports
device sio # 8250, 16[45]50 based serial ports
# PCI Ethernet NICs that use the common MII bus controller code.
# NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
device miibus # MII bus support
device bge # Broadcom BCM570xx Gigabit Ethernet
# Pseudo devices.
device loop # Network loopback
device random # Entropy device
device ether # Ethernet support
device sl # Kernel SLIP
device ppp # Kernel PPP
device tun # Packet tunnel.
device pty # Pseudo-ttys (telnet etc)
device md # Memory "disks"
device gif # IPv6 and IPv4 tunneling
device faith # IPv6-to-IPv4 relaying (translation)
# The `bpf' device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
# Note that 'bpf' is required for DHCP.
device bpf # Berkeley packet filter
# USB support
device uhci # UHCI PCI->USB interface
device ehci # EHCI PCI->USB interface (USB 2.0)
device usb # USB Bus (required)
device uhid # "Human Interface Devices"
device ukbd # Keyboard
Интересное наблюдение: когда устанавливается FreeBSD 6.2 или 6.3, система не трмозит, копирование файлов с CD-ROM идёт на скорости около 1.5 Мб/с. при первом же запуске система начинает трмозить. Если запустить sysinstall, то при копировании скорость около 30 Kб/c.
Когда устанавливается FreeBSD 7.0 RC-2, то тормозить система начинает с начала загрузки. Даже прорисовывание окошек в sysinstall при установке тормозит.
В Сети видел много похожих проблем, но нигде не видел решения. Может кто наступал на такие грабли? или у кого-то мысли по этому поводу есть?