Re: [RFC] New kernel-message logging API

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Joe Perches <joe@...>
Cc: <holzheu@...>, Vegard Nossum <vegard.nossum@...>, LKML <linux-kernel@...>, Dick Streefland <dick.streefland@...>
Date: Monday, September 24, 2007 - 9:46 pm

On Monday 24 September 2007 7:10:32 pm Joe Perches wrote:

The single largest space savings in the existing -tiny patches comes from 
removing printk() calls and strings.  I would like to be able to selectively 
do this based on severity level, which is information most existing printk() 
calls already have.  I proposed a minimal change to how printk() works, 
allowing the compiler to remove unused code that wouldn't be below the 
displayed level of printk() anyway in the deployed product so wouldn't 
actually lose any output.

The kernel image is usually already compressed in flash and decompressed to 
dram during boot.  (Not always, sometimes it's run directly out of flash, but 
there's often a speed penalty for doing this, you have to set it up 
specially, and dram is cheaper than flash anyway.)  This means recompressing 
it doesn't help save flash.

If you want to save dram, have printk and associated strings be a function in 
a module that's demand loaded and unloaded again after each call.  Then you 
can foist compression off on userspace, and we're already used to modules 
having to match a given kernel version exactly.  Why come up with new 
infrastructure?

Rob
-- 
"One of my most productive days was throwing away 1000 lines of code."
  - Ken Thompson.
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] New kernel-message logging API, Vegard Nossum, (Sat Sep 22, 3:27 pm)
Re: [RFC] New kernel-message logging API, Jesse Barnes, (Mon Sep 24, 2:26 pm)
Re: [RFC] New kernel-message logging API, Michael Holzheu, (Mon Sep 24, 5:22 am)
Re: [RFC] New kernel-message logging API, Joe Perches, (Mon Sep 24, 11:19 am)
Re: [RFC] New kernel-message logging API, Michael Holzheu, (Tue Sep 25, 4:57 am)
Re: [RFC] New kernel-message logging API, Rob Landley, (Mon Sep 24, 7:51 pm)
Re: [RFC] New kernel-message logging API, Joe Perches, (Mon Sep 24, 8:10 pm)
Re: [RFC] New kernel-message logging API, Rob Landley, (Mon Sep 24, 9:46 pm)
Re: [RFC] New kernel-message logging API, Vegard Nossum, (Mon Sep 24, 12:43 pm)
Re: [RFC] New kernel-message logging API, Joe Perches, (Mon Sep 24, 1:00 pm)
Re: [RFC] New kernel-message logging API, Vegard Nossum, (Mon Sep 24, 4:37 pm)
Re: [RFC] New kernel-message logging API, Rob Landley, (Mon Sep 24, 9:18 pm)
Re: [RFC] New kernel-message logging API, Rob Landley, (Sun Sep 23, 4:05 pm)
Re: [RFC] New kernel-message logging API, Miguel Ojeda, (Sat Sep 22, 9:05 pm)
Re: [RFC] New kernel-message logging API, Vegard Nossum, (Tue Sep 25, 1:27 am)
Re: [RFC] New kernel-message logging API, Miguel Ojeda, (Tue Sep 25, 1:24 pm)
Re: [RFC] New kernel-message logging API, Joe Perches, (Sat Sep 22, 8:13 pm)
Re: [RFC] New kernel-message logging API, Vegard Nossum, (Sun Sep 23, 4:39 am)
Re: [RFC] New kernel-message logging API, Joe Perches, (Sun Sep 23, 3:25 pm)
Re: [RFC] New kernel-message logging API, Jan Engelhardt, (Sun Sep 23, 4:45 am)
Re: [RFC] New kernel-message logging API, Joe Perches, (Sun Sep 23, 3:23 pm)
Re: [RFC] New kernel-message logging API, Vegard Nossum, (Sun Sep 23, 5:20 am)
Re: [RFC] New kernel-message logging API, Jan Engelhardt, (Sun Sep 23, 5:38 am)
Re: [RFC] New kernel-message logging API, Kyle Moffett, (Sat Sep 22, 8:40 pm)
Re: [RFC] New kernel-message logging API, Joe Perches, (Sat Sep 22, 8:47 pm)
Re: [RFC] New kernel-message logging API, Kyle Moffett, (Sat Sep 22, 11:43 pm)