high perf kernel

Chris Knipe savage at savage.za.org
Fri May 6 05:04:33 PDT 2005


Hi,

Can anyone recommend some very usefull settings for a high performance 
kernel on 5.4?  There doesn't seem to be a LINT config anymore in CVS, so I 
dont know what all my options are.

We have a quad CPU system with 4GB of RAM.... Nevermind what we throw at the 
system, it never seems to do any actual work.... I'm not sure whether this 
is because we already have a very good optimised system, or whether our test 
clients are unable to cope.... I believe that there may be a couple of 
issues with the high amount of resources we have.  The 4GB of RAM seems to 
be a issue (we can't get MySQL to even manage to use 2GB of it), and from 
what we can see, multiple processors aren't used either....

I'm also after settings / options for MAXDSIZ and MAXSSIZE, google has 
returned nothing... I've seen allot of archived posts refering to this, but 
as far as a actual configuration with those options go, nudda...

Our kernconf at the moment:
# DB02 - Optimised Kernel for Max Performance.
# cknipe - 2005/04/25

machine         i386
cpu             I686_CPU
ident           DB02
maxusers        512
options         NMBCLUSTERS=65536       # maxusers and NMBCLUSTERS are both 
very important settings

options         SCHED_4BSD              # 4BSD scheduler
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         PROCFS                  # Process filesystem
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         SCSI_DELAY=5000         # Delay (in ms) before probing SCSI
options         KTRACE                  # ktrace(1) support
options         SMP                     # Multi Processor System

# System V semaphores and tunable parameters
options         SYSVSEM                 # SYSV-style semaphores
options         SEMMAP=8192             # Amount of entries in semaphore map
options         SEMMNI=1024             # Number of semaphore identifiers in 
the system
options         SEMMNS=8192             # Number of semaphores in the system
options         SEMMNU=16384            # Number of undo structures in the 
system
options         SEMMSL=255              # Max number of semaphores per id
options         SEMOPM=401              # Max number of operations per semop 
call
options         SEMUME=201              # Max number of undo entries per 
process

# System V shared memory and tunable parameters
options         SYSVSHM                 # SYSV-style shared memory
options         SHMMAXPGS=4097          # Max amount of shared memory pages 
(4k on i386)
options         SHMALL=4097             # Max amount of shared memory 
(bytes)
options         SHMMAX="(SHMMAXPGS*PAGE_SIZE+1)" # Max shared memory segment 
size (bytes)
options         SHMSEG=57               # Max shared memory segments per 
process
options         SHMMNI=1024             # Max number of shared memory 
identifiers

# System V message queues and tunable parameters
options         SYSVMSG                 # SYSV-style message queues
options         MSGMNB=4097             # Max characters per message queue
options         MSGMNI=81               # Max number of message queue 
identifiers
options         MSGSEG=4097             # Max number of message segments in 
the system
options         MSGSSZ=32               # Size of a message segment MUST be 
power of 2
options         MSGTQL=81               # Max amount of messages in the 
system


options         _KPOSIX_PRIORITY_SCHEDULING
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.
options         ADAPTIVE_GIANT          # Giant mutex is adaptive.
device          apic                    # I/O APIC

# Bus support.  Do not remove isa, even if you have no isa slots
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
options         ATA_STATIC_ID   # Static device numbering

# SCSI peripherals
device          scbus           # SCSI bus (required for SCSI)
device          da              # Direct Access (disks)
device          ses             # SCSI Environmental Services (and SAF-TE)

# RAID controllers
device          aac             # Adaptec FSA RAID
device          aacp            # SCSI passthrough for aac (requires CAM)

# RAID controllers interfaced to the SCSI subsystem
device          amr             # AMI MegaRAID

# 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          agp             # support several AGP chipsets

device          splash          # Splash screen and screen saver support

# syscons is the default console driver, resembling an SCO console
device          sc

# Floating point support - do not disable.
device          npx

# 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          mem             # Memory and kernel memory devices
device          io              # I/O device
device          random          # Entropy device
device          ether           # Ethernet support
device          pty             # Pseudo-ttys (telnet etc)
device          bpf             # Berkeley packet filter

options         IPFILTER        # IPFilter support
options         IPFILTER_LOG    # IPFilter logging

dmesg:
Copyright (c) 1992-2005 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 5.4-STABLE #2: Fri May  6 09:55:13 UTC 2005
    root at wherever:/usr/obj/usr/src/sys/DB02
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Xeon(TM) CPU 3.20GHz (3185.46-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf25  Stepping = 5
  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>
  Hyperthreading: 2 logical CPUs
real memory  = 3892146176 (3711 MB)
avail memory = 3814055936 (3637 MB)
ACPI APIC Table: <DELL   PE1750  >
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
 cpu2 (AP): APIC ID:  6
 cpu3 (AP): APIC ID:  7
ioapic0: Changing APIC ID to 8
ioapic1: Changing APIC ID to 9
ioapic2: Changing APIC ID to 10
MADT: Forcing active-low polarity and level trigger for SCI
ioapic0 <Version 1.1> irqs 0-15 on motherboard
ioapic1 <Version 1.1> irqs 16-31 on motherboard
ioapic2 <Version 1.1> irqs 32-47 on motherboard
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <DELL PE1750> on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x808-0x80b 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 on acpi0
pci0: <ACPI PCI bus> on pcib0
pci0: <display, VGA> at device 14.0 (no driver attached)
atapci0: <ServerWorks CSB5 UDMA100 controller> port 
0x8b0-0x8bf,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 15.1 on pci0
ata0: channel #0 on atapci0
ata1: channel #1 on atapci0
pci0: <serial bus, USB> at device 15.2 (no driver attached)
isab0: <PCI-ISA bridge> at device 15.3 on pci0
isa0: <ISA bus> on isab0
pcib1: <ACPI Host-PCI bridge> on acpi0
pci4: <ACPI PCI bus> on pcib1
amr0: <LSILogic MegaRAID 1.51> mem 
0xf7f00000-0xf7f3ffff,0xe8000000-0xefffffff irq 18 at device 3.0 on pci4
amr0: <LSILogic PERC 4/Di> Firmware 412W, BIOS H406, 128MB RAM
pcib2: <ACPI Host-PCI bridge> on acpi0
pci3: <ACPI PCI bus> on pcib2
aac0: <Adaptec SCSI RAID 2200S> mem 0xf8000000-0xfbffffff irq 24 at device 
6.0 on pci3
aac0: Unknown processor 100MHz, 48MB cache memory, optional battery not 
installed
aac0: Kernel 4.1-0, Build 7244, S/N b764f4
aac0: Supported 
Options=11d7e<CLUSTERS,WCACHE,DATA64,HOSTTIME,RAID50,WINDOW4GB,SOFTERR,SGMAP64,ALARM,NONDASD>
aacp0: <SCSI Passthrough Bus> on aac0
aacp1: <SCSI Passthrough Bus> on aac0
pcib3: <ACPI Host-PCI bridge> on acpi0
pci2: <ACPI PCI bus> on pcib3
bge0: <Broadcom BCM5704C Dual Gigabit Ethernet, ASIC rev. 0x2002> mem 
0xfcf20000-0xfcf2ffff,0xfcf30000-0xfcf3ffff irq 16 at device 0.0 on pci2
miibus0: <MII bus> on bge0
brgphy0: <BCM5704 10/100/1000baseTX PHY> on miibus0
brgphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 
1000baseTX-FDX, auto
bge0: Ethernet address: 00:11:43:5a:68:70
bge1: <Broadcom BCM5704C Dual Gigabit Ethernet, ASIC rev. 0x2002> mem 
0xfcf00000-0xfcf0ffff,0xfcf10000-0xfcf1ffff irq 17 at device 0.1 on pci2
miibus1: <MII bus> on bge1
brgphy1: <BCM5704 10/100/1000baseTX PHY> on miibus1
brgphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 
1000baseTX-FDX, auto
bge1: Ethernet address: 00:11:43:5a:68:71
pcib4: <ACPI Host-PCI bridge> on acpi0
pci1: <ACPI PCI bus> on pcib4
fdc0: <floppy drive controller> port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on 
acpi0
sio0: type 16550A
orm0: <ISA Option ROMs> at iomem 
0xec000-0xeffff,0xd0000-0xd17ff,0xc9000-0xcd7ff,0xc8000-0xc8fff,0xc0000-0xc7fff 
on isa0
pmtimer0 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
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
Timecounters tick every 10.000 msec
IP Filter: v3.4.35 initialized.  Default = pass all, Logging = enabled
amrd0: <LSILogic MegaRAID logical drive> on amr0
amrd0: 34680MB (71024640 sectors) RAID 1 (optimal)
aacd0: <RAID 5> on aac0
aacd0: 419943MB (860045184 sectors)
(probe36:aacp0:0:6:0): Vendor Specific Command. CDB: 12 1 80 0 ff 0
(probe36:aacp0:0:6:0): ILLEGAL REQUEST asc:24,0
(probe36:aacp0:0:6:0): Invalid field in CDB
(probe36:aacp0:0:6:0): Vendor Specific Command. CDB: 12 1 80 0 ff 0
(probe36:aacp0:0:6:0): ILLEGAL REQUEST asc:24,0
(probe36:aacp0:0:6:0): Invalid field in CDB
(probe36:aacp0:0:6:0): Vendor Specific Command. CDB: 12 1 80 0 ff 0
(probe36:aacp0:0:6:0): ILLEGAL REQUEST asc:24,0
(probe36:aacp0:0:6:0): Invalid field in CDB
(probe36:aacp0:0:6:0): Vendor Specific Command. CDB: 12 1 80 0 ff 0
(probe36:aacp0:0:6:0): ILLEGAL REQUEST asc:24,0
(probe36:aacp0:0:6:0): Invalid field in CDB
(probe36:aacp0:0:6:0): Vendor Specific Command. CDB: 12 1 80 0 ff 0
(probe36:aacp0:0:6:0): ILLEGAL REQUEST asc:24,0
(probe36:aacp0:0:6:0): Invalid field in CDB
(probe0:aacp0:0:6:1): AutoSense Failed
(probe0:aacp0:0:6:2): AutoSense Failed
(probe0:aacp0:0:6:3): AutoSense Failed
(probe0:aacp0:0:6:4): AutoSense Failed
(probe0:aacp0:0:6:5): AutoSense Failed
(probe0:aacp0:0:6:6): AutoSense Failed
(probe0:aacp0:0:6:7): AutoSense Failed
ses0 at amr0 bus 0 target 6 lun 0
ses0: <PE/PV 1x3 SCSI BP 1.1> Fixed Processor SCSI-2 device
ses0: SAF-TE Compliant Device
ses1 at aacp0 bus 0 target 6 lun 0
ses1: <DELL PV22XS E.17> Fixed unknown SCSI-3 device
ses1: 3.300MB/s transfers
ses1: SAF-TE Compliant Device
SMP: AP CPU #2 Launched!
SMP: AP CPU #1 Launched!
SMP: AP CPU #3 Launched!
Mounting root from ufs:/dev/amrd0s2a
ohci0: <OHCI (generic) USB controller> mem 0xfe100000-0xfe100fff irq 11 at 
device 15.2 on pci0
usb0: OHCI version 1.0, legacy support
usb0: SMM does not respond, resetting
usb0: <OHCI (generic) USB controller> on ohci0
usb0: USB revision 1.0
uhub0: (0x1166) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 4 ports with 4 removable, self powered


Thanks in advance,
Chris. 



More information about the freebsd-questions mailing list