From owner-freebsd-stable@FreeBSD.ORG Sun Feb 12 08:29:51 2012 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9D590106566C; Sun, 12 Feb 2012 08:29:51 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) by mx1.freebsd.org (Postfix) with ESMTP id F3E898FC13; Sun, 12 Feb 2012 08:29:50 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id q1C7qbSX096664; Sun, 12 Feb 2012 18:52:38 +1100 (EST) (envelope-from smithi@nimnet.asn.au) Date: Sun, 12 Feb 2012 18:52:37 +1100 (EST) From: Ian Smith To: "Bjoern A. Zeeb" In-Reply-To: Message-ID: <20120212173339.G93710@sola.nimnet.asn.au> References: <20120210145604.Horde.ewjpSpjmRSRPNSH0YRHxgAk@webmail.leidinger.net> <4F353E4A.6030903@noc.ntua.gr> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: stable@freebsd.org, ipfw@freebsd.org, Panagiotis Christias Subject: Re: Reducing the need to compile a custom kernel X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Feb 2012 08:29:51 -0000 On Fri, 10 Feb 2012 16:12:00 +0000, Bjoern A. Zeeb wrote: > On 10. Feb 2012, at 15:56 , Panagiotis Christias wrote: > > > On 10/2/2012 15:56, Alexander Leidinger wrote: > >> Hi, > >> > >> during some big discussions in the last monts on various lists, one of > >> the problems was that some people would like to use freebsd-update but > >> can't as they are using a custom kernel. With all the kernel modules we > >> provide, the need for a custom kernel should be small, but on the other > >> hand, we do not provide a small kernel-skeleton where you can load just > >> the modules you need. > >> > >> This should be easy to change. As a first step I took the generic kernel > >> and removed all devices which are available as modules, e.g. the USB > >> section consists now only of the USB_DEBUG option (so that the module is > >> build like with the current generic kernel). I also removed some storage > >> drivers which are not available as a module. The rationale is, that I > >> can not remove CAM from the kernel config if I let those drivers inside > >> (if those drivers are important enough, someone will probably fix the > >> problem and add the missing pieces to generate a module). > >> > >> Such a kernel would cover situations where people compile their own > >> kernel because they want to get rid of some unused kernel code (and > >> maybe even need the memory this frees up). > >> > >> The question is, is this enough? Or asked differently, why are you > >> compiling a custom kernel in a production environment (so I rule out > >> debug options which are not enabled in GENERIC)? Are there options which > >> you add which you can not add as a module (SW_WATCHDOG comes to my > >> mind)? If yes, which ones and how important are they for you? > > > > Hello, > > > > we are currently using on every server (in order to maintain a single custom kernel) the following options: > > > > IPFIREWALL IPFIREWALL_DEFAULT_TO_ACCEPT > > loadable, tunable there for this Copying this to ipfw@ on finding that net.inet.ip.fw.default_to_accept tunable is not mentioned in any of ipfw(8), loader(8) nor tuning(7). > > IPFIREWALL_FORWARD Unless something's changed, julian@ has pointed out (paraphrasing) that this adds bits of code to various parts of the stack and was thought to impact performance too much when unused to conditionalise each instance. I'm unsure if this is the only case ipfw still needs building in kernel? cheers, Ian > > ROUTETABLES=n > > melifaro and I are working on this; he'll fix the netgraph netflow part and I'll fix the #ifdefs and the tunable will be enough. > > > > Soon, we will also add: > > > > IPSEC IPSEC_FILTERTUNNEL IPSEC_NAT_T crypto enc > > IPSEC_FILTERTUNNEL has long been obsolete. > > > > Finally, once we upgrade our jail setup VIMAGE will be also a must. > > I have read that multiple times already and I'd love to but that's a looong way. > The plan might be to one day provide a 2nd kernel to install from and that freebsd-update can handle but we'll see. > > /bz