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

[Xen-devel] [PATCH] [xentop] fix abnormal value cpu(%) when domain shutd

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] [xentop] fix abnormal value cpu(%) when domain shutdown.
From: Atsushi SAKAI <sakaia@xxxxxxxxxxxxxx>
Date: Tue, 07 Aug 2007 10:32:43 +0900
Delivery-date: Mon, 06 Aug 2007 18:31:08 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

  This patch intends to fix the xentop cpu(%).
If we test multiple domain create/shutdown many times.
sometimes abnormal values of cpu(%) are appeared.
This is because shutdown domain remove failure.
(in other words, memory corruption of struct )
This corruption makes abnormal cpu(%) values are shown xentop
sometimes.

Signed-off-by: Atsushi SAKAI <sakaia@xxxxxxxxxxxxxx>

===example of problem===

      NAME  STATE   CPU(sec) CPU(%)     MEM(k) MEM(%)  MAXMEM(k) MAXMEM(%) 
VCPUS NETS NETTX(k) NETRX(k) VBDS   VBD_OO   VBD_RD   VBD_WR SSID
  Domain-0 -----r        332   0.7     988128   11.8    1048576      
12.5     4    0        0        0    0        0        0        0    0
PVdomain.1 -----r        101  100.5     988160   11.8    1048576      
12.5     4    0        0        0    1        0        0        0    0
PVdomain.2 -----r        149  200.4     988160   11.8    1048576      
12.5     4    0        0        0    1        0       12        0    0    
temp.1 -----r         35  100.5     463872    5.5     524288       6.3     4  
  0        0        0    1        0        0        0    0   
temp.2 -----r         19  200.4     463872    5.5     524288       6.3     4  
  0        0        0    1        0       12        0    0      
      NAME  STATE   CPU(sec) CPU(%)     MEM(k) MEM(%)  MAXMEM(k) MAXMEM(%) 
VCPUS NETS NETTX(k) NETRX(k) VBDS   VBD_OO   VBD_RD   VBD_WR SSID
  Domain-0 -----r        333  26.7     988128   11.8    1048576      12.5     
4    0        0        0    0        0        0        0    0
======Problem event
***PVdomain.1 d-----        103 529379705092.7         16    0.0    1048576   
   12.5     4    0        0        0    1        0       12        0    0
======Problem event
PVdomain.2 -----r        156  200.9     988160   11.8    1048576      12.5    
 4    0        0        0    0        0        0        0    0    
temp.1 -----r         39  101.4     463872    5.5     524288       6.3     4  
  0        0        0    1        0        0        0    0      
NAME  STATE   CPU(sec) CPU(%)     MEM(k) MEM(%)  MAXMEM(k) MAXMEM(%) VCPUS 
NETS NETTX(k) NETRX(k) VBDS   VBD_OO   VBD_RD   VBD_WR SSID
  Domain-0 -----r        334   33.7     988128   11.8    1048576      12.5    
 4    0        0        0    0        0        0        0    0
PVdomain.2 -----r        162 1890.8     988160   11.8    1048576      12.5    
 4    0        0        0    1        0       12        0    0    
temp.1 -----r         42  100.8     463872    5.5     524288       6.3     4  
  0        0        0    1        0        0        0    0
temp.2 -----r         32    0.0     463872    5.5     524288       6.3     
4    0        0        0    1        0       12        0    0



Thanks
Atsushi SAKAI

Attachment: fix_xentop_abnomal_cpu_pct.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] [xentop] fix abnormal value cpu(%) when domain shutdown., Atsushi SAKAI <=