Bug 161199 - xen domain gets not destroyed after shutdown, still consumes RAM
xen domain gets not destroyed after shutdown, still consumes RAM
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: xen (Show other bugs)
4
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Rik van Riel
:
Depends On:
Blocks: 179599
  Show dependency treegraph
 
Reported: 2005-06-21 06:26 EDT by Nils Toedtmann
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-02-20 21:58:16 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Nils Toedtmann 2005-06-21 06:26:26 EDT
Description of problem:
  When i shutdown a xen domU (from inside the domU or via "xm shutdown") the
  domain does not get destroyed and still holds it's assigned memory until i 
  use "xm list". So unattended halts and boots will end up in dead domains
  blocking RAM.


Version-Release number of selected component (if applicable):
  xen-2-20050522
  kernel-xen0-2.6.11-1.1369_FC4
  kernel-xenU-2.6.11-1.1369_FC4


How reproducible:
  Always


Steps to Reproduce:
  xm shutdown domain
  # wait for "Power down."
  xm info | grep free_memory
  # wait as long as you like
  xm info | grep free_memory
  xm list
  sleep 2
  xm list
  xm info | grep free_memory


Actual results:
  The halted domain gets destroyed shortly after the first "xm list". Until 
  then, it's kept in state "s" ("shutdown"), memory still assigned.


Expected results:
  The halted domain gets destroyed (and memory freed) shortly after the domU
  kernel stops.


Additional info:
  I think this bug was discussed on xen-devel, so maybe it's fixed upstrem. 
  Example session:

  [root@crusher PW]# xm create -c bering
  Using config file "/etc/xen/bering".
  ...
  bering# halt
  ...
  Power down.
  # type Ctrl-]
  
  [root@crusher PW]# xm info | grep free_memory
  free_memory            : 231
  [root@crusher PW]# sleep 120

  [root@crusher PW]# xm info | grep free_memory
  free_memory            : 231
  [root@crusher PW]# xm list
  Name              Id  Mem(MB)  CPU  State  Time(s)  Console
  Domain-0           0      245    0  r----   1273.2        
  bering2            8       16    0  ---s-      0.5    9608
  [root@crusher PW]# xm list
  Name              Id  Mem(MB)  CPU  State  Time(s)  Console
  Domain-0           0      245    0  r----   1274.6        
  [root@crusher PW]# xm info | grep free_memory
  free_memory            : 247
Comment 1 Rik van Riel 2006-02-08 21:21:36 EST
This no longer seems to happen with current Fedora Core 5 rawhide Xen packages.

Note You need to log in before you can comment on or make changes to this bug.