From owner-freebsd-questions@FreeBSD.ORG Fri May 6 12:04:33 2005 Return-Path: Delivered-To: freebsd-questions@www.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3CA1B16A4D0 for ; Fri, 6 May 2005 12:04:33 +0000 (GMT) Received: from mx2.freebsd.org (mx2.freebsd.org [216.136.204.119]) by mx1.FreeBSD.org (Postfix) with ESMTP id E3D1F43D81 for ; Fri, 6 May 2005 12:04:32 +0000 (GMT) (envelope-from savage@savage.za.org) Received: from hub.freebsd.org (hub.freebsd.org [216.136.204.18]) by mx2.freebsd.org (Postfix) with ESMTP id D203A5542C for ; Fri, 6 May 2005 12:04:32 +0000 (GMT) (envelope-from savage@savage.za.org) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CEE9A16A4D0 for ; Fri, 6 May 2005 12:04:32 +0000 (GMT) Received: from ctb-mesg3.saix.net (ctb-mesg3.saix.net [196.25.240.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA98543D98 for ; Fri, 6 May 2005 12:04:29 +0000 (GMT) (envelope-from savage@savage.za.org) Received: from smtp01.za.hybyte.net (wbs-146-141-67.telkomadsl.co.za [165.146.141.67]) by ctb-mesg3.saix.net (Postfix) with ESMTP id E1A6E7157 for ; Fri, 6 May 2005 14:04:25 +0200 (SAST) Received: from 030-001.za.hybyte.net ([192.168.1.30] helo=pc2xp) by smtp01.za.hybyte.net with smtp (Exim 4.50) id 1DU1ZB-0007PC-pi for freebsd-questions@lists.freebsd.org; Fri, 06 May 2005 14:04:25 +0200 Message-ID: <000501c55233$bfbe80f0$1e01a8c0@pc2xp> From: "Chris Knipe" To: Date: Fri, 6 May 2005 14:04:26 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 Subject: high perf kernel X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 May 2005 12:04:33 -0000 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@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 Hyperthreading: 2 logical CPUs real memory = 3892146176 (3711 MB) avail memory = 3814055936 (3637 MB) ACPI APIC Table: 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 irqs 0-15 on motherboard ioapic1 irqs 16-31 on motherboard ioapic2 irqs 32-47 on motherboard npx0: on motherboard npx0: INT 16 interface acpi0: 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: on acpi0 cpu1: on acpi0 cpu2: on acpi0 cpu3: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pci0: at device 14.0 (no driver attached) atapci0: 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: at device 15.2 (no driver attached) isab0: at device 15.3 on pci0 isa0: on isab0 pcib1: on acpi0 pci4: on pcib1 amr0: mem 0xf7f00000-0xf7f3ffff,0xe8000000-0xefffffff irq 18 at device 3.0 on pci4 amr0: Firmware 412W, BIOS H406, 128MB RAM pcib2: on acpi0 pci3: on pcib2 aac0: 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 aacp0: on aac0 aacp1: on aac0 pcib3: on acpi0 pci2: on pcib3 bge0: mem 0xfcf20000-0xfcf2ffff,0xfcf30000-0xfcf3ffff irq 16 at device 0.0 on pci2 miibus0: on bge0 brgphy0: on miibus0 brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto bge0: Ethernet address: 00:11:43:5a:68:70 bge1: mem 0xfcf00000-0xfcf0ffff,0xfcf10000-0xfcf1ffff irq 17 at device 0.1 on pci2 miibus1: on bge1 brgphy1: on miibus1 brgphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto bge1: Ethernet address: 00:11:43:5a:68:71 pcib4: on acpi0 pci1: on pcib4 fdc0: port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0 fd0: <1440-KB 3.5" drive> on fdc0 drive 0 atkbdc0: port 0x64,0x60 irq 1 on acpi0 atkbd0: 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: at iomem 0xec000-0xeffff,0xd0000-0xd17ff,0xc9000-0xcd7ff,0xc8000-0xc8fff,0xc0000-0xc7fff on isa0 pmtimer0 on isa0 sc0: 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: 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: on amr0 amrd0: 34680MB (71024640 sectors) RAID 1 (optimal) aacd0: 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: Fixed Processor SCSI-2 device ses0: SAF-TE Compliant Device ses1 at aacp0 bus 0 target 6 lun 0 ses1: 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: 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: 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.