lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.00.0904281331040.8066@gandalf.stny.rr.com>
Date:	Tue, 28 Apr 2009 13:36:26 -0400 (EDT)
From:	Steven Rostedt <rostedt@...dmis.org>
To:	Ingo Molnar <mingo@...e.hu>
cc:	Linus Torvalds <torvalds@...ux-foundation.org>, david@...g.hm,
	Tejun Heo <tj@...nel.org>, Dave Airlie <airlied@...il.com>,
	LKML <linux-kernel@...r.kernel.org>
Subject: Re: kms in defconfig


On Tue, 28 Apr 2009, Ingo Molnar wrote:

> 
> * Linus Torvalds <torvalds@...ux-foundation.org> wrote:
> 
> > So yes, it would be good to automate it:
> > 
> > > If a tool was available to detect the hardware and create a 
> > > config tailored for the box, this use for a default config would 
> > > go away
> > 
> > Yeah, I've wished for that.
> 
> Steve (Cc:-ed) submitted such a script last year IIRC. It wasnt 
> particularly complex.

I've submitted the script  a few times to LKML but it is not exactly what 
people want, but is quite useful in the mean time.

What people want is a script that will analyze their system devices and 
enable all the configs that will support them.

My script requires that you have booted the kernel (or similar kernel with 
the same config options and modules). It then runs lsmod, and searches for 
the options that enable those modules. It then reads the current .config 
file and prints out a new config that disables all module configs that are 
not used to enable the modules found with lsmod.

Here's the code (perl script):

http://rostedt.homelinux.com/code/streamline_config.pl

The instructions on how to use it are at the top of the file.

This script has brought down my full kernel compile times with distcc from 
50 minutes to under 10.

-- Steve

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ