From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1FpgEm-0003pk-RA for garchives@archives.gentoo.org; Mon, 12 Jun 2006 06:49:25 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.6/8.13.6) with SMTP id k5C6lMxH030290; Mon, 12 Jun 2006 06:47:22 GMT Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.181]) by robin.gentoo.org (8.13.6/8.13.6) with ESMTP id k5C6cgBP010912 for ; Mon, 12 Jun 2006 06:38:43 GMT Received: by py-out-1112.google.com with SMTP id x31so1590566pye for ; Sun, 11 Jun 2006 23:38:42 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=o/iIdKT6A/8DDWlTDvscEyDz4qykjX4h1190D8BnIWW4yych6GMkBiGG59V7LlvxJjdhTcNTWmuSqtbmycA8PAH+mXy0qu/X0zOyZ11xzR2sbD+0BMEWeOGm1oplSum3xo8NNpjeFcKyksX1x8JgMOt/j7625ydSn6nYon+fEho= Received: by 10.35.11.15 with SMTP id o15mr295495pyi; Sun, 11 Jun 2006 23:31:58 -0700 (PDT) Received: by 10.35.125.17 with HTTP; Sun, 11 Jun 2006 23:31:58 -0700 (PDT) Message-ID: Date: Mon, 12 Jun 2006 02:31:58 -0400 From: "Mike Huber" To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Module philosophy: Compile-in or Load In-Reply-To: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <448CFAAA.7030102@gt.rr.com> X-Archives-Salt: 703c8d6c-148d-4efd-9c92-31d07ce111ac X-Archives-Hash: e79df21708644c2bbcf20798404e3f17 Well, all mileage may vary. Personally, I prefer to not have things loaded into the kernel when I'm not using them. It's not really a performance or a memory saving thing, but more of an OCD thing. I'm sure that, in the grand scheme of things, the little time/power/whatever I save by keeping them out of the kernel is far outweighed by the amount of time it takes to type "modprobe x" when i remember I need to load the thing. Afterall, my time at the command prompt is significantly more valuable than a few extra cycles, or an extra 70-500K memory footprint. The thing is, it really depends on how clean you keep your kernel config. If you seriously go through the kernel config an make sure that you only select the things which are appropriate for your system, then you're fine. I've known people who just have almost everything built as a module, and let kernel autoloading take care of figuring out which one they need for their system (yes, terribly stupid and inelegant, but it does solve the problem when you don't know how else to do it). Also, compiling a whole tree of modules can be a simple way of figuring out exactly which set of code corresponds to your chipset, but that is not relevant to the current discussion. Basically, I'd say that if it doesn't matter how the thing is loaded into the kernel (I.E., no outside code relies on it being a module), and if it's going to be loaded more than some threshold percentage of time, just build it in. Unless you are facing some weird constraints, anything resembling modern hardware can handle the slightly larger kernel, and if you are facing those constraints, you probably already know what you're doing much better than I'll ever be able to say. As a side question for the list, when you load a module, you can pass module options to it (at least, last I checked, this could be done to specify things like the name of the interface on an internet driver, debugging level, etc...). When you build something into the kernel, is there an easy way to pass such options off to it? boot time options? anyone know? --Mike On 6/12/06, Steven Susbauer wrote: > > > On Mon, 12 Jun 2006, Anthony E. Caudel wrote: > > > I was wondering what gentoo-users think and practice about kernel > > modules. Do most compile them in the kernel or load them at boot-up. > > > > Note that I'm _NOT_ talking about those modules that have to be compiled > > in such as for your filesystem. This is about the other ones. > > > > I generally like to load them at boot-up. One reason is that I have > > heard that for suspend or hibernate to work, some modules have to be > > unloaded. > > > > On the other hand, compiling them in results in faster boot times. > > > > So, what do gentoo-users think? > > > > Tony > > > > > I have never used any modules that I didn't have to. At this point, I use > none. They are all compiled into the kernel, because I don't have a point > to unloading or loading. The only point for modules in any of my > experience is if you're often changing hardware (possibly a laptop with a > base station... or something?) > -- > gentoo-user@gentoo.org mailing list > > -- gentoo-user@gentoo.org mailing list