Skip to contentSkip to conversation

PROBLEM: Xen ballon driver seems to be broken in 2.6.26

DISCUSSION Jeremy Fitzhardinge 2 participants 5 messages Jul 22, 2008 – Jul 23, 2008 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 4 lines · Németh Tamás

I use openSUSE 10.3 both for dom0 and domU, but the kernels and the entire Xen system (hypervisor, tools and dom0 kernel) is replaced by the newest version downloadable from xen.org. Every component is compiled from source. The hypervisor is 64 bit, and the dom0 and domU systems are 32 bit, PAE. The domU kernel is the vanilla 2.6.26. It's OK, that migration, save, restore, etc. don't work, as you plan the support for these features to be included in 2.6.27 AFAIK. (BTW, when will you include the domU support for x86_64 and CPU hotplug?) But:

The balloon driver also seems to be broken. If i decrease the amount of memory in domU, it becomes immediately almost unresponsive. I can ping the domU, and even Xvnc continues to operate (the "screen" of domU changes, the KDE clock continues to count the seconds), but i cannot start new programs. Sadly it includes the fact that i can't even run dmesg. Neither the output of 'xm console' gives any error message. When i destroy and restart the domU then, i cannot find anything about the crash in /var/log/messages. When i try to start a new program, then the domU totally hangs finally, the KDE clock stops, and it cannot be shut down (only destroyed).

So that's consistent with the balloon driver over-aggressively shrinking the domain, until there's no memory left to do anything. The balloon driver has no safety checks to prevent that from happening.

What value are you setting the target size to? Are you using the right units?

J

#2 lore raw

Jeremy --

A patch was made in Xen to the balloon driver a few months ago to avoid this problem. The patch should probably be applied to the balloon driver in upstream Linux.

Nemeth --

What is your "newest" Xen version? If 3.2, the balloon driver fix isn't there yet, but I have a bash-script workaround. See tools/xenballoond in xen-unstable.

Dan

Quoted 56 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Jeremy Fitzhardinge
Sent: Tuesday, July 22, 2008 12:03 PM
To: Németh Tamás
Cc: [email protected]; [email protected]
Subject: [Xen-devel] Re: PROBLEM: Xen ballon driver seems to be broken in 2.6.26

Quoted 1 line · Németh Tamás

I use openSUSE 10.3 both for dom0 and domU, but the kernels

and the entire Xen

Quoted 1 line

system (hypervisor, tools and dom0 kernel) is replaced by

the newest version

Quoted 1 line

downloadable from xen.org. Every component is compiled from

source. The

Quoted 1 line

hypervisor is 64 bit, and the dom0 and domU systems are 32

bit, PAE. The domU

Quoted 1 line

kernel is the vanilla 2.6.26. It's OK, that migration,

save, restore, etc.

Quoted 1 line

don't work, as you plan the support for these features to

be included in

Quoted 1 line

2.6.27 AFAIK. (BTW, when will you include the domU support

for x86_64 and CPU

Quoted 3 lines

hotplug?) But:

The balloon driver also seems to be broken. If i decrease

the amount of memory

Quoted 1 line

in domU, it becomes immediately almost unresponsive. I can

ping the domU, and

Quoted 1 line

even Xvnc continues to operate (the "screen" of domU

changes, the KDE clock

Quoted 1 line

continues to count the seconds), but i cannot start new

programs. Sadly it

Quoted 1 line

includes the fact that i can't even run dmesg. Neither the

output of 'xm

Quoted 1 line

console' gives any error message. When i destroy and

restart the domU then,

Quoted 1 line

i cannot find anything about the crash in

/var/log/messages. When i try to

Quoted 1 line

start a new program, then the domU totally hangs finally,

the KDE clock

Quoted 2 lines

stops, and it cannot be shut down (only destroyed).

So that's consistent with the balloon driver over-aggressively shrinking
the domain, until there's no memory left to do anything. The balloon driver has no safety checks to prevent that from happening.

What value are you setting the target size to? Are you using the right
units?

Quoted 7 lines

J

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#3 lore raw
Quoted 4 lines · Dan Magenheimer

A patch was made in Xen to the balloon driver a few months ago to avoid this problem. The patch should probably be applied to the balloon driver in upstream Linux.

I should check that out again, but my memory is that I didn't really agree with the approach being taken.

J

#4 lore raw
Quoted 8 lines
Quoted 4 lines · Dan Magenheimer

A patch was made in Xen to the balloon driver a few months ago to avoid this problem. The patch should probably be applied to the balloon driver in upstream Linux.

I should check that out again, but my memory is that I didn't really agree with the approach being taken.

For the record, I don't agree with the approach either. But the results do agree with me. :-)

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

A message that is not in the archive (sent off-list or not yet received): [email protected]

#6 lore raw
Quoted 35 lines · Németh Tamás
Quoted 4 lines

What is your "newest" Xen version? If 3.2, the balloon driver fix isn't there yet, but I have a bash-script workaround. See tools/xenballoond in xen-unstable.

The source codes of the hyperhisor and the tools were downloaded from
xen.org a few days ago, so Xen is 3.2.1 and the dom0 kernel is 2.6.18.8-xen-3.2.0 (based on 2.6.18.8).

The domU kernel is 2.6.26 of course.

Quoted 9 lines
Quoted 9 lines

So that's consistent with the balloon driver over-aggressively shrinking
the domain, until there's no memory left to do anything. The balloon driver has no safety checks to prevent that from happening.

What value are you setting the target size to? Are you using the right
units?

Please take a look at this:

carrier5:/usr/local/LOCALHOST/src/linux-2.6.26 # xm list
Name ID Mem VCPUs State Time(s)

Domain-0                                     0  2048     1     r-----    370.3
u-96                                         5  1024     1     -b----     14.5
carrier5:/usr/local/LOCALHOST/src/linux-2.6.26 # xm mem-set u-96 768M
carrier5:/usr/local/LOCALHOST/src/linux-2.6.26 # xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0  2048     1     r-----    371.4
u-96                                         5   768     1     -b----     14.6
Quoted 4 lines

carrier5:/usr/local/LOCALHOST/src/linux-2.6.26 #

DomU - although being seemngly frozen - still responses for icmp echo requests.

Thanks, I'll have a look at it.

J