WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [RFC] Xend configuration option for console memory limit

To: Dan Smith <danms@xxxxxxxxxx>
Subject: Re: [Xen-devel] [RFC] Xend configuration option for console memory limit
From: Anthony Liguori <aliguori@xxxxxxxxxx>
Date: Tue, 11 Oct 2005 14:29:29 -0500
Cc: Xen Developers <xen-devel@xxxxxxxxxxxxxxxxxxx>, Ian.Pratt@xxxxxxxxxxxx
Delivery-date: Tue, 11 Oct 2005 19:26:56 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <87ek6rj25k.fsf@xxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <87ek6rj25k.fsf@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.6 (X11/20050912)
I think this is a reasonable solution. One thing to discuss is what the default limit should be. 4k was the old limit w/xcs and that was obviously unacceptable. Something like 1MB is probably more than enough. I'm of course wary to see there being any possibility of console data loss but this is neccessary to avoid DoS attacks.

Regards,

Anthony Liguori

Dan Smith wrote:

Bug #296 describes the possible Out-Of-Memory outcome of a console
flood.  Currently, xenconsoled has the ability to obey a limit, but
Xend does not set it, to prevent console message loss.

I propose that a configuration option be added to xend-config.sxp that
sets the limit.  That way, a user with a large console buffer
requirement can easily set it, and OOM situations can be avoided.

I'll be happy to knock up a patch if this sounds reasonable.

Thoughts?



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>