svn commit: r255323 - in head/sys: amd64/conf i386/conf

Slawa Olhovchenkov slw at zxy.spb.ru
Sat Sep 7 19:09:14 UTC 2013


On Sat, Sep 07, 2013 at 10:47:07AM -0700, Adrian Chadd wrote:

> I'll be happy if someone does this right now, by populating a
> /boot/loader.modules or something, and then force the "fixing" of loader to
> cache metadata to make the reads faster.

Some very, very old devices don't exist as modules.
This SCSI controllers (ISA-only?). I just drop this.

device         adv             # Advansys SCSI adapters
device         adw             # Advansys wide SCSI adapters
device         aic             # Adaptec 15[012]x SCSI adapters, AIC-6[23]60.
device         bt              # Buslogic/Mylex MultiMaster SCSI adapters

This 10Mbit network cards. I just drop this.

device         cs              # Crystal Semiconductor CS89x0 NIC
device         ex              # Intel EtherExpress Pro/10 and Pro/10+
device         ep              # Etherlink III based cards
device         fe              # Fujitsu MB8696x based cards
device         xe              # Xircom pccard Ethernet


I attached my kernel config.

My loader.conf. Not all modules from GENERIC present. I can write
loader.conf with full list of modules from GENERIC kernel.

zfs_load="YES"
procfs_load="yes"
pseudofs_load="yes"
sysvmsg_load="yes"
sysvsem_load="yes"
sysvshm_load="yes"
geom_part_gpt_load="yes"
geom_label_load="yes"
geom_raid_load="yes"
ufs_load="yes"
cpufreq_load="yes"
ahci_load="yes"
ata_load="yes"
kbdmux_load="yes"
agp_load="yes"
uart_load="yes"
lpt_load="yes"
ppi_load="yes"
puc_load="yes"
random_load="yes"
pty_load="yes"
uhci_load="yes"
ohci_load="yes"
ehci_load="yes"
xhci_load="yes"
ukbd_load="yes"
umass_load="yes"
ums_load="yes"
virtio_pci_load="yes"
if_vtnet_load="yes"
if_re_load="yes"
if_em_load="yes"
# NFS Client
nfssvc_load="yes"
nfscommon_load="yes"
nfslock_load="yes"
nfscl_load="yes"
kgssapi_krb5_load="yes"
nfslockd_load="yes"
lockstat_load="yes"
#


> On 7 September 2013 10:07, Slawa Olhovchenkov <slw at zxy.spb.ru> wrote:
> 
> > On Sat, Sep 07, 2013 at 11:52:42AM -0500, Bryan Venteicher wrote:
> >
> > > On Sat, Sep 7, 2013 at 3:17 AM, Slawa Olhovchenkov <slw at zxy.spb.ru>
> > wrote:
> > >
> > > > On Fri, Sep 06, 2013 at 03:46:11PM -0500, Bryan Venteicher wrote:
> > > >
> > > > > On Fri, Sep 6, 2013 at 3:24 PM, Bryan Venteicher <bryanv at freebsd.org
> > >
> > > > wrote:
> > > > >
> > > > > > Author: bryanv
> > > > > > Date: Fri Sep  6 20:24:21 2013
> > > > > > New Revision: 255323
> > > > > > URL: http://svnweb.freebsd.org/changeset/base/255323
> > > > > >
> > > > > > Log:
> > > > > >   Add vmx device to the i386 and amd64 NOTES files
> > > > > >
> > > > > >
> > > > > FWIW - I'm on the fence about adding vmx to GENERIC for 10.0. IIRC,
> > > > > VMware's vmxnet3 driver returns BUS_PROBE_VENDOR so the two drivers
> > > > should
> > > > > coexist. This is assuming VMware updates the driver for 10 ... which
> > I'm
> > > > > guessing isn't likely and was a large reason I added this driver in
> > the
> > > > > first place.
> > > >
> > > > Why we don't switch (in 10.0) to minimal GENERIC and all driver loaded
> > > > as modules (/boot/loader.conf)? This is reduce memory (by easy
> > unloading
> > > > unneed
> > > > drivers/modules), space (by reducing GENERIC+symbols size about 100M),
> > > > space on install media too (100M + compressed 100M), build time (not
> > > > need to build some modules twice) and add ability to easy
> > > > update/bugfix modules w/o reboot.
> > > >
> > > > After last updates to bootloader loading many modules enought fast.
> > > >
> > > I already switched (for me) to this setup and it's fine for me.
> > > >
> > >
> > > The holy grail would be for the loader to automatically detect and load
> > > what is needed/supported, but this has been talked and beaten to death in
> > > the past.
> >
> > No-no, not automatically detect. Just load all bundle of modules,
> > cureently staticly compiled in GENERIC as individual modules.
> > Just /boot/loader.conf of 100 lines module_load="yes".
> >
-------------- next part --------------
#
# GENERIC -- Generic kernel configuration file for FreeBSD/amd64
#
# For more information on this file, please read the config(5) manual page,
# and/or the handbook section on Kernel Configuration Files:
#
#    http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.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.
# If you are in doubt as to the purpose or necessity of a line, check first
# in NOTES.
#
# $FreeBSD: releng/9.2/sys/amd64/conf/GENERIC 253860 2013-08-01 13:18:47Z marius $

cpu		HAMMER
ident		MODULAR

makeoptions	DEBUG=-g		# Build kernel with gdb(1) debug symbols
makeoptions	WITH_CTF=1		# Run ctfconvert(1) for DTrace support

options 	SCHED_ULE		# ULE scheduler
options 	PREEMPTION		# Enable kernel thread preemption
options 	INET			# InterNETworking
options 	INET6			# IPv6 communications protocols
options 	TCP_OFFLOAD		# TCP offload
options 	SCTP			# Stream Control Transmission Protocol

options 	SOFTUPDATES		# Enable FFS soft updates support
options 	UFS_ACL			# Support for access control lists
options 	UFS_DIRHASH		# Improve performance on big directories
options 	UFS_GJOURNAL		# Enable gjournal-based UFS journaling
options 	QUOTA			# Enable disk quotas for UFS

options 	MD_ROOT			# MD is a potential root device
options 	NFS_ROOT		# NFS usable as /, requires NFSCL

options 	COMPAT_FREEBSD32	# Compatible with i386 binaries
options 	COMPAT_FREEBSD4		# Compatible with FreeBSD4
options 	COMPAT_FREEBSD5		# Compatible with FreeBSD5
options 	COMPAT_FREEBSD6		# Compatible with FreeBSD6
options 	COMPAT_FREEBSD7		# Compatible with FreeBSD7
options 	SCSI_DELAY=5000		# Delay (in ms) before probing SCSI
options 	KTRACE			# ktrace(1) support
options 	STACK			# stack(9) support
options 	_KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
options 	PRINTF_BUFR_SIZE=128	# Prevent printf output being interspersed.
options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
options 	HWPMC_HOOKS		# Necessary kernel hooks for hwpmc(4)
options 	AUDIT			# Security event auditing
options 	MAC			# TrustedBSD MAC Framework
options 	KDTRACE_FRAME		# Ensure frames are compiled in
options 	KDTRACE_HOOKS		# Kernel DTrace hooks
options 	INCLUDE_CONFIG_FILE     # Include this file in kernel
options 	KDB			# Kernel debugger related code
options 	KDB_TRACE		# Print a stack trace for a panic
options 	DDB_CTF			# kernel ELF linker loads CTF data

# Make an SMP-capable kernel by default
options 	SMP			# Symmetric MultiProcessor Kernel

# Bus support.
device		acpi
device		pci

# ATA controllers
options 	ATA_CAM		# Handle legacy controllers with CAM
options 	ATA_STATIC_ID	# Static device numbering

# SCSI Controllers
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.

# 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
options 	VESA		# Add support for VESA BIOS Extensions (VBE)

device		splash		# Splash screen and screen saver support

# syscons is the default console driver, resembling an SCO console
device		sc
options 	SC_PIXEL_MODE	# add support for the raster text mode
options 	ENABLE_ALART		# Control alarm on Intel intpm driver
options 	VGA_WIDTH90		# support 90 column modes

# Wireless NIC cards
options 	IEEE80211_DEBUG	# enable debug msgs
options 	IEEE80211_AMPDU_AGE # age frames in AMPDU reorder q's
options 	IEEE80211_SUPPORT_MESH	# enable 802.11s draft support
options 	AH_SUPPORT_AR5416	# enable AR5416 tx/rx descriptors
options 	ATH_DEBUG
options 	ATH_DIAGAPI
options 	ATH_ENABLE_DFS
options 	ATH_ENABLE_11N

# Pseudo devices.
device		loop		# Network loopback
options 	PADLOCK_RNG	# VIA Padlock RNG
options 	RDRAND_RNG	# Intel Bull Mountain RNG
device		ether		# Ethernet support

# 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
options 	USB_DEBUG	# enable debug msgs


More information about the svn-src-head mailing list