Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753211AbaDCRTO (ORCPT ); Thu, 3 Apr 2014 13:19:14 -0400 Received: from imap.thunk.org ([74.207.234.97]:49625 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752883AbaDCRTK (ORCPT ); Thu, 3 Apr 2014 13:19:10 -0400 Date: Thu, 3 Apr 2014 13:18:55 -0400 From: "Theodore Ts'o" To: "H. Peter Anvin" Cc: Joerg Roedel , Linus Torvalds , Jiri Kosina , Andrew Morton , Mateusz Guzik , Greg Kroah-Hartman , Steven Rostedt , LKML , Thomas Gleixner , Borislav Petkov , Ingo Molnar , Mel Gorman , Kay Sievers Subject: Re: [RFC PATCH] cmdline: Hide "debug" from /proc/cmdline Message-ID: <20140403171854.GA23737@thunk.org> Mail-Followup-To: Theodore Ts'o , "H. Peter Anvin" , Joerg Roedel , Linus Torvalds , Jiri Kosina , Andrew Morton , Mateusz Guzik , Greg Kroah-Hartman , Steven Rostedt , LKML , Thomas Gleixner , Borislav Petkov , Ingo Molnar , Mel Gorman , Kay Sievers References: <20140402162839.d3c00e9845e89d0f092c2ce3@linux-foundation.org> <20140403104308.GP13491@8bytes.org> <20140403170541.GA19010@thunk.org> <533D95C9.1020601@zytor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <533D95C9.1020601@zytor.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/