Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754293AbaDDTBH (ORCPT ); Fri, 4 Apr 2014 15:01:07 -0400 Received: from mail-qg0-f43.google.com ([209.85.192.43]:59094 "EHLO mail-qg0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754140AbaDDTBF (ORCPT ); Fri, 4 Apr 2014 15:01:05 -0400 MIME-Version: 1.0 In-Reply-To: References: <20140402144219.4cafbe37@gandalf.local.home> <20140402221212.GD16570@mguzik.redhat.com> <20140402162839.d3c00e9845e89d0f092c2ce3@linux-foundation.org> <20140403104308.GP13491@8bytes.org> <20140403170541.GA19010@thunk.org> <533EF832.1030902@mit.edu> From: Andy Lutomirski Date: Fri, 4 Apr 2014 12:00:44 -0700 Message-ID: Subject: Re: [RFC PATCH] cmdline: Hide "debug" from /proc/cmdline To: Linus Torvalds Cc: "Theodore Ts'o" , Joerg Roedel , Jiri Kosina , Andrew Morton , Mateusz Guzik , Greg Kroah-Hartman , Steven Rostedt , LKML , Thomas Gleixner , "H. Peter Anvin" , Borislav Petkov , Ingo Molnar , Mel Gorman , Kay Sievers Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 4, 2014 at 11:42 AM, Linus Torvalds wrote: > On Fri, Apr 4, 2014 at 11:21 AM, Andy Lutomirski wrote: >> >> I'm using /dev/kmsg in virtme so that I can easily capture, with >> timestamps, the ten or so log lines that it produces. It would be sad >> if I had to worry about small ratelimits here. > > So the _default_ rate limits (which is what my example patch used) are > almost certainly not appropriate for /dev/kmsg. > If this kind of patch goes in, I'd like to see a burst of 50 or 100 lines allowed, at least early on. If virtme's init stuff runs for more than five seconds, something's wrong anyway. That being said, virtme will be happily immune to a per-struct file approach, since it's mostly written in sh and it does things like "echo virtme-initramfs: in ur box eating ur cycles" >/dev/kmsg. --Andy -- 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/