Date: Mon, 2 Feb 2004 12:41:31 +0100 From: Melvyn Sopacua <freebsd-current@webteckies.org> To: current@FreeBSD.org Subject: SCHED_ULE and loadavg() results Message-ID: <200402021241.35427.freebsd-current@webteckies.org>
next in thread | raw e-mail | index | archive | help
--Boundary-03=_vdjHAapwygbxMFy
Content-Type: multipart/mixed;
boundary="Boundary-01=_rdjHAS06uher6Xo"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--Boundary-01=_rdjHAS06uher6Xo
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Hi,
following up on recent statements regarding loadavg() calculation:
I currently have a machine compiling a make release, using SCHED_ULE.
I use WORLDARGS=3D'-j4' and have observed the following:
* During compilation loads gets up to 15 and stays there, but I feel this h=
as=20
been "set in motion" by top(1). The buildprocess already was an hour or 2 o=
n=20
it's way (set it up remotely) and the first time I ran top, the load was=20
three. I quit top, and monitored slowly by calling uptime(1) about every=20
minute manually (to avoid sleep()), but the load still went up.
* changing top's refresh frequency to 5, had no impact whatsoever - load st=
ill=20
goes up, finally changed it to 1 and kept monitoring.
* during 'install' stage load went down to appr. 0.62 and kept lurking betw=
een=20
0.62 and 1.20, still with many make(10 and sh(1) processes, but no compiler=
s.
* during kernel build stage load went quickly up to 3 and 5, with less=20
compilers this time.
* it's now building ports and balancing between 1.10 and 3.50.
I've used this machine more often lately to build dists, but never saw the=
=20
load come above 6, using SCHED_4BSD. Last time was about 1,5 weeks ago.
Kernel config and dmesg attached.
=46ull command is:
nohup make release BUILDNAME=3D5.2-idgnl-CURRENT \
CHROOTDIR=3D/webdocs/scratch/CURRENT \
CVSROOT=3D/home/ncvs DOC_LANG=3Den_US.ISO8859-1 -DMAKEISOS \
RELEASEDIRFILES=3D/usr/ports/distfiles WORLD_FLAGS=3D-j4 \
KERNELS=3D'DBSERVER SERVER3' -DNOPORTREADMES &
=2D-=20
Melvyn
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D
=46reeBSD sarevok.idg.nl 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Wed Jan 28 18:=
01:18=20
CET 2004 =20
root@sarevok.lan.webteckies.org:/usr/obj/usr/src/sys/SAREVOK_NOAPM_NODEBUG =
=20
i386
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D
--Boundary-01=_rdjHAS06uher6Xo
Content-Type: text/plain;
charset="us-ascii";
name="dmesg.boot"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="dmesg.boot"
Copyright (c) 1992-2004 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.
=46reeBSD 5.2-CURRENT #0: Mon Feb 2 05:21:28 CET 2004
root@server3.webtechs.idg.nl:/usr/obj/usr/src/sys/SERVER3
Preloaded elf kernel "/boot/kernel/kernel" at 0xc07fa000.
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc07fa1f4.
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel Pentium III (601.37-MHz 686-class CPU)
Origin =3D "GenuineIntel" Id =3D 0x681 Stepping =3D 1
Features=3D0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,=
CMOV,PAT,PSE36,MMX,FXSR,SSE>
real memory =3D 536858624 (511 MB)
avail memory =3D 519802880 (495 MB)
Pentium Pro MTRR support enabled
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <ASUS P2B-S> on motherboard
pcibios: BIOS version 2.10
Using $PIR table, 7 entries at 0xc00f0d10
acpi0: Power Button (fixed)
Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0xe408-0xe40b on acpi0
acpi_cpu0: <CPU> on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib0: slot 6 INTA is routed to irq 3
pcib0: slot 9 INTA is routed to irq 3
pcib0: slot 10 INTA is routed to irq 4
pcib0: slot 11 INTA is routed to irq 10
agp0: <Intel 82443BX (440 BX) host to PCI bridge> mem 0xe4000000-0xe7ffffff=
at device 0.0 on pci0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
isab0: <PCI-ISA bridge> at device 4.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 UDMA33 controller> port 0xd800-0xd80f at device 4.1 o=
n pci0
ata0: at 0x1f0 irq 14 on atapci0
ata0: [MPSAFE]
ata1: at 0x170 irq 15 on atapci0
ata1: [MPSAFE]
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0xd400-0xd41f at devi=
ce 4.2 on pci0
pcib0: slot 4 INTD is routed to irq 3
usb0: <Intel 82371AB/EB (PIIX4) USB controller> 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
pci0: <bridge, PCI-unknown> at device 4.3 (no driver attached)
ahc0: <Adaptec aic7890/91 Ultra2 SCSI adapter> port 0xd000-0xd0ff mem 0xe10=
00000-0xe1000fff irq 3 at device 6.0 on pci0
aic7890/91: Ultra2 Wide Channel A, SCSI Id=3D7, 32/253 SCBs
pci0: <display, VGA> at device 9.0 (no driver attached)
fxp0: <Intel 82558 Pro/100 Ethernet> port 0xb800-0xb81f mem 0xe0000000-0xe0=
0fffff,0xe3000000-0xe3000fff irq 4 at device 10.0 on pci0
fxp0: Ethernet address 00:90:27:12:cb:aa
miibus0: <MII bus> on fxp0
inphy0: <i82555 10/100 media interface> on miibus0
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp1: <Intel 82558 Pro/100 Ethernet> port 0xb400-0xb41f mem 0xdf800000-0xdf=
8fffff,0xe2000000-0xe2000fff irq 10 at device 11.0 on pci0
fxp1: Ethernet address 00:50:8b:5b:a3:01
miibus1: <MII bus> on fxp1
inphy1: <i82555 10/100 media interface> on miibus1
inphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fdc0: ready for input in output
fdc0: cmd 3 failed at out byte 1 of 3
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
fdc0: ready for input in output
fdc0: cmd 3 failed at out byte 1 of 3
orm0: <Option ROMs> at iomem 0xd0000-0xd07ff,0xc0000-0xc7fff on isa0
pmtimer0 on isa0
fdc0: cannot reserve I/O port range (6 ports)
ppc0: parallel port not found.
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=3D0x300>
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 8250 or not responding
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 601365488 Hz quality 800
Timecounters tick every 10.000 msec
acd0: CDROM <CREATIVE CD4834E> at ata0-master PIO4
GEOM: create disk ad2 dp=3D0xc417a460
ad2: 117246MB <Maxtor 4G120J6> [238216/16/63] at ata1-master UDMA33
Waiting 15 seconds for SCSI devices to settle
GEOM: create disk da0 dp=3D0xc417f450
da0 at ahc0 bus 0 target 0 lun 0
da0: <QUANTUM QM318000TD-SW N1B0> Fixed Direct Access SCSI-2 device=20
da0: 40.000MB/s transfers (20.000MHz, offset 31, 16bit), Tagged Queueing En=
abled
da0: 17366MB (35566499 512 byte sectors: 255H 63S/T 2213C)
Mounting root from ufs:/dev/da0s1a
--Boundary-01=_rdjHAS06uher6Xo
Content-Type: text/plain;
charset="us-ascii";
name="SERVER3"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="SERVER3"
#
# GENERIC -- Generic kernel configuration file for FreeBSD/i386
#
# For more information on this file, please read the handbook section on
# Kernel Configuration Files:
#
# http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig=
=2Dconfig.html
#
# The handbook is also available locally in /usr/share/doc/handbook
# if you've installed the doc distribution, otherwise always see the
# FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the
# latest information.
#
# An exhaustive list of options and more detailed explanations of the
# device lines is also present in the ../../conf/NOTES and NOTES files.=20
# If you are in doubt as to the purpose or necessity of a line, check first=
=20
# in NOTES.
#
# $FreeBSD: src/sys/i386/conf/GENERIC,v 1.394 2003/12/03 21:13:06 jhb Exp $
machine i386
cpu I686_CPU
ident SERVER3
#To statically compile in device wiring instead of /boot/device.hints
#hints "GENERIC.hints" #Default places to look for devices.
#makeoptions DEBUG=3D-g #Build kernel with gdb(1) debug symbols
options SCHED_ULE #ULE Scheduler
options INET #InterNETworking
options INET6 #IPv6 communications protocols
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 COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!]
options COMPAT_FREEBSD4 #Compatible with FreeBSD4
options SCSI_DELAY=3D15000 #Delay (in ms) before probing SCSI
options KTRACE #ktrace(1) support
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 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.
# Debugging for use in -current
#options DDB #Enable the kernel debugger
#options INVARIANTS #Enable calls of extra sanity checking
#options INVARIANT_SUPPORT #Extra sanity checks of internal structures, re=
quired by INVARIANTS
#options WITNESS #Enable checks to detect deadlocks and cycles
#options WITNESS_SKIPSPIN #Don't run witness on spinlocks for speed
# To make an SMP kernel, the next two are needed
#options SMP # Symmetric MultiProcessor Kernel
#device apic # I/O APIC
device isa
device eisa
device pci
# Floppy drives
device fdc
# 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
device ahb # EISA AHA1742 family
device ahc # AHA2940 and onboard AIC7xxx devices
device ahd # AHA39320/29320 and onboard AIC79xx devices
device amd # AMD 53C974 (Tekram DC-390(T))
device isp # Qlogic family
device mpt # LSI-Logic MPT-Fusion
#device ncr # NCR/Symbios Logic
device sym # NCR/Symbios Logic (newer chipsets + those of `ncr')
# SCSI peripherals
device scbus # SCSI bus (required for SCSI)
device ch # SCSI media changers
device da # Direct Access (disks)
device sa # Sequential Access (tape etc)
device cd # CD
device pass # Passthrough device (direct SCSI access)
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 psm # PS/2 mouse
device vga # VGA video card driver
device splash # Splash screen and screen saver support
# syscons is the default console driver, resembling an SCO console
device sc
# Enable this for the pcvt (VT220 compatible) console driver
#device vt
#options XSERVER # support for X server on a vt console
#options FAT_CURSOR # start with block cursor
device agp # support several AGP chipsets
# Floating point support - do not disable.
device npx
# 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
# Parallel port
device ppc
device ppbus # Parallel port bus (required)
device lpt # Printer
device plip # TCP/IP over parallel
device ppi # Parallel port interface device
#device vpo # Requires scbus and da
# If you've got a "dumb" serial or parallel PCI card that is
# supported by the puc(4) glue driver, uncomment the following
# line to enable it (connects to the sio and/or ppc drivers):
#device puc
# 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 bfe # Broadcom BCM440x 10/100 ethernet
#device bge # Broadcom BCM570xx Gigabit Ethernet
device fxp # Intel EtherExpress PRO/100B (82557, 82558)
#device xl # 3Com 3c90x (``Boomerang'', ``Cyclone'')
# Pseudo devices - the number indicates how many units to allocate.
device random # Entropy device
device loop # Network loopback
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!
device bpf # Berkeley packet filter
# USB support
device uhci # UHCI PCI->USB interface
device ohci # OHCI PCI->USB interface
device usb # USB Bus (required)
#device udbp # USB Double Bulk Pipe devices
device ugen # Generic
device uhid # "Human Interface Devices"
device ukbd # Keyboard
device ulpt # Printer
device umass # Disks/Mass storage - Requires scbus and da
device ums # Mouse
device urio # Diamond Rio 500 MP3 player
device uscanner # Scanners
# USB Ethernet, requires mii
device aue # ADMtek USB ethernet
device axe # ASIX Electronics USB ethernet
device cue # CATC USB ethernet
device kue # Kawasaki LSI USB ethernet
--Boundary-01=_rdjHAS06uher6Xo--
--Boundary-03=_vdjHAapwygbxMFy
Content-Type: application/pgp-signature
Content-Description: signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)
iD8DBQBAHjdvOv9JNmfFN5URAgi9AJ9gR3pRhU/pMMHgVLKe52e3zGpNEwCfSviY
CRmqxThFwcpYL3ig8r7p+cQ=
=CQcl
-----END PGP SIGNATURE-----
--Boundary-03=_vdjHAapwygbxMFy--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402021241.35427.freebsd-current>
