Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Jun 2008 10:32:36 +0200
From:      CZUCZY Gergely <gergely.czuczy@harmless.hu>
To:        freebsd-stable@freebsd.org
Subject:   ALTQ and cpufreq(4)
Message-ID:  <20080603103236.6f145eef@twoflower.in.publishing.hu>

next in thread | raw e-mail | index | archive | help
--Sig_/=lF0xup95bu5j1FXMz8jvkF
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hello,

I've met some quite strange reboots recently on my home gateway. I'm
trying to reduce its power consumption, so I've loaded the cpufreq(4) drive=
r,
and enabled powerd. After this the box started to reboot randomly all over =
the
place. I started to think what can cause the trouble, removing the cpufreq(=
4)
support would be too trivial, so I've removed the ALTQ references from my
pf.conf, and surprisingly these accidental reboots gone away.

My guess is ALTQ has some problems with cpufreq(4). Before submitting a PR =
on
this, could someone also check this configuration, to be sure on this?

System info:
FreeBSD beeblebrox.harmless.lan 6.3-STABLE FreeBSD 6.3-STABLE #0: Sat May 3=
1 18:35:15 CEST 2008 toor@beeblebrox.harmless.lan:/usr/obj/usr/src/sys/BEEB=
LEBROX  i386

I'm using hfsc in my pf configuration.

Kernel config:
machine         i386
cpu             I686_CPU
ident           BEEBLEBROX

maxusers        32

# To statically compile in device wiring instead of /boot/device.hints
#hints          "GENERIC.hints"         # Default places to look for device=
s.

makeoptions     DEBUG=3D-g                # Build kernel with gdb(1) debug =
symbols

options         SCHED_4BSD              # 4BSD scheduler
options         PREEMPTION              # Enable kernel thread preemption
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 direct=
ories
#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 NFSCLIE=
NT
options         MSDOSFS                 # MSDOS Filesystem
options         CD9660                  # ISO 9660 Filesystem
options         PROCFS                  # Process filesystem (requires PSEU=
DOFS)
options         PSEUDOFS                # Pseudo-filesystem framework
options         GEOM_GPT                # GUID Partition Tables.
options         COMPAT_43               # Compatible with BSD 4.3 [KEEP THI=
S!]
options         COMPAT_FREEBSD4         # Compatible with FreeBSD4
options         COMPAT_FREEBSD5         # Compatible with FreeBSD5
options         SCSI_DELAY=3D5000         # Delay (in ms) before probing SC=
SI
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         ADAPTIVE_GIANT          # Giant mutex is adaptiv=
e.

device          apic                    # I/O APIC
# Bus support.
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 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          kbdmux          # keyboard multiplexer

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

# Power management support (see NOTES for more options)
#device         apm
# Add suspend/resume support for the i8254.
device          pmtimer

# PCCARD (PCMCIA) support
# PCMCIA and cardbus bridge support
device          cbb             # cardbus (yenta) bridge
device          pccard          # PC Card (16-bit) bus
device          cardbus         # CardBus (32-bit) bus

# Serial (COM) ports
device          sio             # 8250, 16[45]50 based serial ports

# 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.
device          de              # DEC/Intel DC21x4x (``Tulip'')
device          em              # Intel PRO/1000 adapter Gigabit Ethernet C=
ard

# 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          dc              # DEC/Intel 21143 and various workalikes
device          fxp             # Intel EtherExpress PRO/100B (82557, 82558)

# Pseudo devices.
device          loop            # Network loopback
device          random          # Entropy device
device          ether           # Ethernet support
device          ppp             # Kernel PPP
device          tun             # Packet tunnel.
device          pty             # Pseudo-ttys (telnet etc)
device          md              # Memory "disks"

# 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          ohci            # OHCI PCI->USB interface
device          ehci            # EHCI PCI->USB interface (USB 2.0)
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

options         GEOM_MIRROR
options         GEOM_LABEL
options         GEOM_ELI

device          crypto
device          cryptodev
device          hifn

device          tun
device          tap

device          pf
device          pflog

options         COMPAT_LINUX
options         ALTQ
options         ALTQ_CBQ        # Class Bases Queueing
options         ALTQ_RED        # Random Early Detection
options         ALTQ_RIO        # RED In/Out
options         ALTQ_HFSC       # Hierarchical Packet Scheduler
options         ALTQ_PRIQ       # Priority Queueing
options         ALTQ_NOPCC      # Required for SMP build

device          ichwd
device          sk
device          netgraph
options         NETGRAPH_SOCKET
options         NETGRAPH_ETHER
options         NETGRAPH_PPPOE
options         NETGRAPH_DEFLATE

device          cpufreq

altq in pf.conf (these are the lines i've commented out - removed ALTQ -, a=
nd the reboots had gone away) :
#altq on $if_ppp hfsc bandwidth 512Kb queue { std, ssh, http, ack, vpn, std=
ack}
#queue std bandwidth 16% priority 0 qlimit 1024 hfsc (default realtime 32Kb=
 upperlimit 412Kb)
#queue http bandwidth 16% priority 2 qlimit 512 hfsc (realtime 16Kb upperli=
mit 490Kb )
#queue ssh bandwidth 16% priority 5 qlimit 512 hfsc (realtime 32Kb upperlim=
it 490Kb )
#queue stdack bandwidth 16% priority 5 qlimit 1024 hfsc ( realtime 8Kb uppe=
rlimit 384Kb)
#queue vpn bandwidth 16% priority 6 qlimit 2048 hfsc ( realtime 16Kb upperl=
imit 512Kb)
#queue ack bandwidth 16% priority 7 qlimit 1024 hfsc ( realtime 8Kb upperli=
mit 512Kb)

#pass out quick on $if_ppp proto udp from any to any port {14567,14568} kee=
p state queue(ssh, ack)
#pass out quick on $if_ppp proto tcp from any to port 22 flags S/SA keep st=
ate queue (ssh, ack)
#pass out quick on $if_ppp proto tcp from any to port {80,443} flags S/SA k=
eep state queue (http, ack)
#pass out quick on $if_ppp proto tcp from any to 195.56.55.204 port 60080 f=
lags S/SA keep state queue (http, ack)

#pass out quick on $if_ppp proto tcp from port 60150 to any keep state queu=
e(std, stdack)


--=20
=C3=9Cdv=C3=B6lettel,

Czuczy Gergely
Harmless Digital Bt
mailto: gergely.czuczy@harmless.hu
Tel: +36-30-9702963

--Sig_/=lF0xup95bu5j1FXMz8jvkF
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.3 (FreeBSD)

iD8DBQFIRQGmzrC0WyuMkpsRAhlGAJ4/pd3uHCIHaKd9gdKz0GWpBcusCQCffZXg
LGsayAYXWKChSLx694GqunM=
=Rswa
-----END PGP SIGNATURE-----

--Sig_/=lF0xup95bu5j1FXMz8jvkF--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080603103236.6f145eef>