Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754849AbbGCLVw (ORCPT ); Fri, 3 Jul 2015 07:21:52 -0400 Received: from mail-vn0-f54.google.com ([209.85.216.54]:45593 "EHLO mail-vn0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754250AbbGCLVo (ORCPT ); Fri, 3 Jul 2015 07:21:44 -0400 MIME-Version: 1.0 In-Reply-To: <1435920595-30879-1-git-send-email-m.niesluchow@samsung.com> References: <1435920595-30879-1-git-send-email-m.niesluchow@samsung.com> Date: Fri, 3 Jul 2015 13:21:43 +0200 Message-ID: Subject: Re: [RFC 0/8] Additional kmsg devices From: Richard Weinberger To: Marcin Niesluchowski Cc: "linux-doc@vger.kernel.org" , LKML , "open list:ABI/API" , Jonathan Corbet , Greg Kroah-Hartman , Petr Mladek , Tejun Heo , Kay Sievers , Andrew Morton , Joe Perches , Karol Lewandowski , Bartlomiej Zolnierkiewicz Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1479 Lines: 39 On Fri, Jul 3, 2015 at 12:49 PM, Marcin Niesluchowski wrote: > Dear All, > > This series of patches extends kmsg interface with ability to dynamicaly > create (and destroy) kmsg-like devices which can be used by user space > for logging. Logging to kernel has number of benefits, including but not > limited to - always available, requiring no userspace, automatically > rotating and low overhead. > > User-space logging to kernel cyclic buffers was already successfully used > in android logger concept but it had certain flaws that this commits try > to address: > * drops hardcoded number of devices and static paths in favor for dynamic > configuration by ioctl interface in userspace > * extends existing driver instead of creating completely new one So, now we start moving syslogd into kernel land because userspace is too broken to provide decent logging? I can understand the systemd is using kmsg if no other logging service is available but I really don't think we should encourage other programs to do so. Why can't you just make sure that your target has a working syslogd/rsyslogd/journald/whatever? All can be done perfectly fine in userspace. Just my two cents. -- Thanks, //richard -- 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/