From: "Jan Beulich" Subject: Re: [RFC PATCH v3 03/18] xen: console: Add ratelimit support for error message Date: Thu, 25 Jun 2015 14:31:16 +0100 Message-ID: <558C1EC40200007800089A91@mail.emea.novell.com> References: <1434974517-12136-1-git-send-email-vijay.kilari@gmail.com> <1434974517-12136-4-git-send-email-vijay.kilari@gmail.com> <558827EA0200007800087945@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Vijay Kilari Cc: Ian Campbell , Stefano Stabellini , Prasun Kapoor , manish.jaggi@caviumnetworks.com, Tim Deegan , "xen-devel@lists.xen.org" , Julien Grall , Stefano Stabellini , Vijaya Kumar K List-Id: xen-devel@lists.xenproject.org >>> On 25.06.15 at 15:14, wrote: > On Mon, Jun 22, 2015 at 6:51 PM, Jan Beulich wrote: >>>>> On 22.06.15 at 14:01, wrote: >>> From: Vijaya Kumar K >>> >>> XENLOG_ERR_RATE_LIMIT and XENLOG_G_ERR_RATE_LIMIT >>> log levels are added to support rate limit for error messages >> >> If you mean to say that rate limiting currently doesn't work for >> XENLOG_ERR messages, then that's a problem to be fixed by >> adjusting existing code, not by adding yet another log level. > > For GUEST messages ERR and WARN are rate limited by > setting lower threshold to 0 and upper threshold to 2 as below > > #define XENLOG_GUEST_UPPER_THRESHOLD 2 /* Do not print INFO and DEBUG */ > #define XENLOG_GUEST_LOWER_THRESHOLD 0 /* Rate-limit ERR and WARNING */ > > So do you recommend to set same threshold levels to Xen messages > there by ERR & WARN are rate limited? I'm not sure I understand what you're asking: I recommend no change at all, unless you see something broken (in which case that's what I want clearly described). Jan