Xend configuration option for console memory limit
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?
Signature · 4 lines
Dan Smith IBM Linux Technology Center Open Hypervisor Team email: [email protected]
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
Quoted 14 lines · Dan Smith
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?