lkml.org 
[lkml]   [2014]   [Apr]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH] cmdline: Hide "debug" from /proc/cmdline
On Thu, Apr 03, 2014 at 10:09:29AM -0700, H. Peter Anvin wrote:
>
> Having the kernel be the keeper of the logging IPC isn't at all
> unreasonable. However, kmsg in its current form isn't adequate.
> Augmenting it into a proper logging IPC might be the right thing to do.
> (Hmm... new IPC... does this sound a bit like kdbus to anyone?)

I'm not sure it makes sense for the kernel to be stashing log entries
until there is a good place to save them. So if systemd wants to send
hundreds of thousands of messages before the file system is remounted
read-only, we don't really want to storing them in non-swappable
kernel memory. In a userspace process, you can do things like do
compression, and in the worst case, the oom killer can kill the
logging daemon if the systemd verbosity has been turned up too high,
and it's taking too long to get /var/log mounted and writeable.

That's why I wrote logsave(8) --- because IMHO, this is a userspace
problem, and not something that we should even be trying to solve in
kernel space.

- Ted


\
 
 \ /
  Last update: 2014-04-05 09:21    [W:0.261 / U:0.748 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site