From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: [PATCH] Throttle consoled to work-around xcs Date: Thu, 04 Aug 2005 16:14:02 -0500 Message-ID: <42F2851A.1000406@us.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------060907040606000304030002" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------060907040606000304030002 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Instead of queuing messages when the control channels are full, xcs just does nothing (see ctrl_interface.c:ctrl_chan_write_request()). The following patch throttles the rate in which consoled writes data to xcs. With the current values, you get a responsive console but avoid data corruption in most scenarios. I'm able to get pretty far in my regression test with this patch. With higher throttle values I'm able to get even further (but the console becomes painfully slow). I implemented proper control channel queuing in xenctld in VM-Tools and it's pretty nasty stuff. This should prevent corruption for most users until we can get rid of xcs. Regards, Anthony Liguori Signed-off-by: Anthony Liguori