From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: [RFC PATCH v3 03/18] xen: console: Add ratelimit support for error message Date: Thu, 25 Jun 2015 14:21:54 +0100 Message-ID: <558C0072.90406@citrix.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: 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 , Jan Beulich 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 14:14, Vijay Kilari 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? Xen already has guest rate limiting logic, which has separate visible and ratelimited boundaries. http://xenbits.xen.org/docs/unstable/misc/xen-command-line.html Look at guest_loglvl. If the existing logic isn't working then it should be fixed. We should not introduce a second way of doing this. ~Andrew