high perf kernel

2005-05-06 Thread Chris Knipe
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
maxusers512
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 

Re: high perf kernel

2005-05-06 Thread Erik Nørgaard
On Fri, 6 May 2005, Chris Knipe wrote:

 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.

AFIAK LINT has been replaced by NOTES, there is a general NOTES in
sys/conf/ and a system specific NOTES in sys/system/conf/.

Cheers, Erik


GnuPG: http://www.locolomo.org/home/norgaard/norgaard.gpg.asc
pub  1024D/11D11F9E 2003-08-15 Erik Norgaard [EMAIL PROTECTED]
 Key fingerprint = C394 81C4 D137 EEE5 39BE  82D5 3E6B FB3E 11D1 1F9E

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]