From owner-freebsd-questions@FreeBSD.ORG Tue Nov 22 23:48:14 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8E04016A41F for ; Tue, 22 Nov 2005 23:48:14 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from rosebud.otenet.gr (rosebud.otenet.gr [195.170.0.94]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD00B43D93 for ; Tue, 22 Nov 2005 23:48:04 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from flame.pc (aris.bedc.ondsl.gr [62.103.39.226]) by rosebud.otenet.gr (8.13.4/8.13.4/Debian-1) with SMTP id jAMNm0wP018076; Wed, 23 Nov 2005 01:48:00 +0200 Received: by flame.pc (Postfix, from userid 1001) id CBAB6117BC; Wed, 23 Nov 2005 01:47:32 +0200 (EET) Date: Wed, 23 Nov 2005 01:47:32 +0200 From: Giorgos Keramidas To: Wojciech Puchar Message-ID: <20051122234732.GA64700@flame.pc> References: <20051123001005.E37502@chylonia.3miasto.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051123001005.E37502@chylonia.3miasto.net> Cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD GENERIC kernel&modules X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Nov 2005 23:48:14 -0000 On 2005-11-23 00:14, Wojciech Puchar wrote: > i have no idea why almost EVERYTHING is kld-modularized, and once > again in generic kernel. > > below is my "almost generic" kernel taking 4 times less space[...] > ident SMP-686 > options SMP # Symmetric MultiProcessor Kernel > machine i386 > cpu I686_CPU > > #options SCHED_ULE # ULE scheduler > options SCHED_4BSD # 4BSD scheduler > options PREEMPTION # Enable kernel thread preemption > options INET # InterNETworking > options INET6 # IPv6 communications protocols > options QUOTA > 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 COMPAT_43 # Compatible with BSD 4.3 [KEEP > THIS!] > options COMPAT_FREEBSD4 # Compatible with FreeBSD4 > options COMPAT_FREEBSD5 # Compatible with FreeBSD5 > options SCSI_DELAY=2000 # Delay (in ms) before probing SCSI > options KTRACE # ktrace(1) support > options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time > extensions > options ADAPTIVE_GIANT # Giant mutex is adaptive. > > device apic # I/O APIC > device pci > > device atkbdc # AT keyboard controller > device atkbd # AT keyboard > device psm # PS/2 mouse > > device vga # VGA video card driver > device sc > > # Pseudo devices. > device loop # Network loopback > device ether # Ethernet support > device pty # Pseudo-ttys (telnet etc) > > # 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 Pretty lean kernel configuration. It's impossible for the GENERIC kernel though to satisfy everyone, for various reasons. There are those who will cry "your GENERIC kernel is useless because it doesn't support my favorite SCSI controller, and I can't install it on my new shiny desktop". There also those who don't care too much about supporting the hardware RAID controller Foobar. This is why it's so easy to build custom kernel configs, after all :)