LWN: Comments on "In brief" https://lwn.net/Articles/347713/ This is a special feed containing comments posted to the individual LWN article titled "In brief". en-us Wed, 15 Oct 2025 08:04:38 +0000 Wed, 15 Oct 2025 08:04:38 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net localmodconfig https://lwn.net/Articles/353811/ https://lwn.net/Articles/353811/ BobRobertson <div class="FormattedComment"> I found out about this after posting a "wish list" to lxer.com which <br> included building a kernel .config that had only the actually used modules <br> compiled in, and everything else as loadable modules.<br> <p> I'll add my own Thank You to the list.<br> </div> Tue, 22 Sep 2009 19:49:48 +0000 In brief https://lwn.net/Articles/350713/ https://lwn.net/Articles/350713/ kabloom <div class="FormattedComment"> Both of those are a bit of overkill. Why create an executable to generate the data, when a file will do.<br> </div> Thu, 03 Sep 2009 20:35:39 +0000 In brief https://lwn.net/Articles/348756/ https://lwn.net/Articles/348756/ dlang <div class="FormattedComment"> if this just executes lsmod and parses the result, then the user can create a lsmod earlier in their path that echo's the results from a different box<br> <p> or you could allow the user to specify a command to get the data (defaulting to lsmod if nothing is specified)<br> </div> Tue, 25 Aug 2009 23:09:17 +0000 In brief https://lwn.net/Articles/348751/ https://lwn.net/Articles/348751/ nevets <div class="FormattedComment"> Yeah, that looks like we can add an enhancement. Perhaps add a "make LOADED_MODULES=embedded.lsmod localmodconfig", where embedded.lsmod is a filename holding the modules of the embedded device. Or have it use an environment variable to find the list of modules. If the environment variable does not exist, then it uses lsmod or /proc/modules. It currently does lsmod, but perhaps it should use /proc/modules directly.<br> <p> Thanks.<br> </div> Tue, 25 Aug 2009 23:01:20 +0000 In brief https://lwn.net/Articles/348725/ https://lwn.net/Articles/348725/ mb <div class="FormattedComment"> Well, but many small and embedded devices don't even have make or perl. So isn't there some way to tell the script to look somewhere else than /proc/modules (or wherever it looks into)?<br> So I could simply scp the modules list from the embedded machine to the build host and do the rest on the big machine.<br> </div> Tue, 25 Aug 2009 21:01:28 +0000 localmodconfig https://lwn.net/Articles/348500/ https://lwn.net/Articles/348500/ dirtyepic <div class="FormattedComment"> that's the only one i can think of. i was mistaken about the cpufreq stuff of course. :) nice job, btw, this is something that was sorely needed.<br> </div> Tue, 25 Aug 2009 01:35:58 +0000 local*config in Linux Next https://lwn.net/Articles/348495/ https://lwn.net/Articles/348495/ nevets <div class="FormattedComment"> local{mod,yes}config is now in the master branch of Linux Next:<br> <p> git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git<br> <p> Play with it and report anything that breaks.<br> <p> Note, if you are using git, then you can do the following as well:<br> <p> git remote add next git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git<br> git remote update<br> git checkout next/master<br> make localmodconfig<br> git checkout &lt;previous branch&gt;<br> <p> Now you have a streamlined config, even if you do not have the option in your current development branch.<br> <p> </div> Tue, 25 Aug 2009 00:39:36 +0000 localmodconfig https://lwn.net/Articles/348340/ https://lwn.net/Articles/348340/ nevets <div class="FormattedComment"> If there's a way to know about these, then certainly let me know. Email me at rostedt@goodmis.org. The localmodconfig is a start. But if we are missing necessary modules to boot the kernel, then we need to find a way to fix that.<br> </div> Mon, 24 Aug 2009 14:21:11 +0000 localmodconfig https://lwn.net/Articles/348305/ https://lwn.net/Articles/348305/ ABCD <div class="FormattedComment"> <font class="QuotedText">&gt; Anything that's loaded at boot is probably still loaded.</font><br> <p> That usually isn't true in the special case of the microcode module, as the various distribution's init scripts generally load the module, update the microcode, then immediately explicitly unload the module.<br> </div> Mon, 24 Aug 2009 02:19:48 +0000 localmodconfig https://lwn.net/Articles/348303/ https://lwn.net/Articles/348303/ mjg59 <div class="FormattedComment"> We don't generally automatically unload unused modules these days, especially since there's no good way to tell the difference between an unused module and one that's in use but has a reference count of zero. Anything that's loaded at boot is probably still loaded.<br> </div> Sun, 23 Aug 2009 22:17:06 +0000 localmodconfig https://lwn.net/Articles/348302/ https://lwn.net/Articles/348302/ dirtyepic <div class="FormattedComment"> and microcode built as a module is loaded once during boot to update the microcode, and then immediately unloaded, so the answer would be "no". I'm guessing things like cpufreq modules that aren't currently in use would also be missed.<br> </div> Sun, 23 Aug 2009 21:57:05 +0000 In brief https://lwn.net/Articles/348285/ https://lwn.net/Articles/348285/ nevets <div class="FormattedComment"> Yes exactly. It is just like the other "make *config". It only creates a config file and nothing more. I've used it on embedded boards to get a proper config. I would NFS mount the source, log into the embedded device, cd to the NFS mounted directory and run the "make localmodconfig" (well this is actually a lie, since I really just manually ran streamline_config.pl, but this should also work), and then built the resulting config on a faster box.<br> <p> </div> Sun, 23 Aug 2009 17:11:16 +0000 localmodconfig https://lwn.net/Articles/348284/ https://lwn.net/Articles/348284/ nevets <div class="FormattedComment"> It catches all modules that have been loaded. Anything listed in 'lsmod'.<br> </div> Sun, 23 Aug 2009 17:07:29 +0000 In brief https://lwn.net/Articles/348263/ https://lwn.net/Articles/348263/ jzbiciak <div class="FormattedComment"> It looks like all this make target does is generate the .config. You'd still have to build the kernel and modules afterwards. (At least, that's the impression I got from the linked email.)<br> </div> Sun, 23 Aug 2009 03:21:31 +0000 In brief https://lwn.net/Articles/348240/ https://lwn.net/Articles/348240/ rvfh <div class="FormattedComment"> I suppose you can do local*config on the low-power machine and interrupt it when it starts compiling, then copy the .config file accross. Make sure you have the right compiler and compiler options though...<br> </div> Sat, 22 Aug 2009 17:26:45 +0000 In brief https://lwn.net/Articles/348228/ https://lwn.net/Articles/348228/ dlang <div class="FormattedComment"> do the local*module commands have some way of pointing you at a file from another server instead of (I assume) /proc/modules?<br> <p> there needs to be some way to gather the info from one (probably low-powered) system and taking it to another system to actually do the build on.<br> </div> Sat, 22 Aug 2009 10:28:42 +0000 localmodconfig https://lwn.net/Articles/348199/ https://lwn.net/Articles/348199/ dirtyepic <div class="FormattedComment"> i'm guessing this wouldn't catch modules that are dynamically loaded when needed, like, off the top of my head, microcode?<br> </div> Sat, 22 Aug 2009 04:09:06 +0000 In brief https://lwn.net/Articles/347963/ https://lwn.net/Articles/347963/ eparis123 <div class="FormattedComment"> I really like the idea of the new option. Saves a lot of time wandering through the huge list of kernel options<br> <p> </div> Fri, 21 Aug 2009 02:05:24 +0000 Helpful localmodconfig https://lwn.net/Articles/347876/ https://lwn.net/Articles/347876/ sjayaraman <div class="FormattedComment"> Kudos!<br> <p> I think Steven Rostedt posted earlier a perl script to do this called streamline-config.pl which was useful. This is even better - making it part of the build system!<br> </div> Thu, 20 Aug 2009 16:59:29 +0000 Yay for localyesconfig https://lwn.net/Articles/347794/ https://lwn.net/Articles/347794/ alex <div class="FormattedComment"> Props to Steven Rostedt for implementing this. I'd been mulling over the usefulness of this option ever since I built a kernel for my Atom powered netbook which as you can expect takes a long long time. I suspect it will still take a while but at least a while compiling useful stuff :-)<br> </div> Thu, 20 Aug 2009 09:25:59 +0000 Low-memory mapping - core fixes https://lwn.net/Articles/347758/ https://lwn.net/Articles/347758/ jamesmrh <div class="FormattedComment"> FYI, these changes are currently being merged into F11 and F10 (rawhide will pick them up automatically), and new kernels should be out v. soon.<br> <p> Addressing this at the design level produces the most flexible result:<br> <p> - the sysctl (mmap_min_addr) cannot be overridden at all by MAC security policy (e.g. SELinux)<br> <p> - it can only be overridden with CAP_SYS_RAWIO<br> <p> - if the sysctl is disabled to allow e.g. wine to run, MAC security policy can be used to add further restrictions to ensure that only wine can perform the mapping, and nothing else. i.e. running wine does not mean degrading security for the entire system.<br> <p> <p> </div> Thu, 20 Aug 2009 01:44:06 +0000