[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] How to know if the balloon driver is running



Hi,
I would like to know if my domU runs with the balloon driver activated.
My configuration is as follows:
-Xen 4.2
-dom0: 3.8.0-29-generic #42~precise1-Ubuntu, x86_64 x86_64 x86_64
-domU: PV mode, running the same version of Ubuntu as the dom0

######################
Configuration file to start de domU:
name = "vm.pv"
kernel = "/boot/vmlinuz-3.8.0-29-generic"
ramdisk = "/tmp/initramfs-3.8.0-29-generic"
extra = "root=/dev/xvda1 ro"
memory = 512
maxmem = 1024
vcpus = 1
disk = [ 'xxx,raw,xvda1,rw', 'xxx,raw,xvda2,rw']
######################
The swap disk size of the VM is 1Gb.

Inside my VM I have this:
######################
root@XXXXX:~# dmesg |grep balloon
[    0.030009] xen/balloon: Initialising balloon driver.
[    0.032393] xen-balloon: Initialising balloon driver.

######################
root@XXXXX:~# lsmod |grep xen   
xen_evtchn             13084  0
xen_gntdev             17794  0
xen_gntalloc           13275  0
xen_blkback            27338  0 [permanent]
xen_netback            32166  0 [permanent]
xenfs                  12985  1
xen_privcmd            13220  1 xenfs
######################
root@XXXXX:~# cat /etc/fstab
none /proc/xen xenfs defaults 0 0
/dev/xvda1 /               ext3    errors=remount-ro 0       1
/dev/xvda2 none            swap    sw              0       0

Regarding the README file provided with the xen source code (xxx/xen-4.2-testing.hg/tools/xenballoon), it is said that the balloon driver is running if the file /proc/xen/balloon exists. It doesn't exist in my VM.
######################
root@XXXXX:~# ls /proc/xen/
capabilities  privcmd  xenbus

But there is some files in the /sys file system which refers to the selfballooning. Does that mean that the balloon driver is running? If it is the case, how is about /proc/xen/balloon? Else, how to activate the balloon driver?
######################
root@XXXXX:~# find  /sys/ -name *balloon*
/sys/devices/system/xen_memory/xen_memory0/selfballoon
/sys/devices/system/xen_memory/xen_memory0/selfballoon/selfballoon_min_usable_mb
/sys/devices/system/xen_memory/xen_memory0/selfballoon/selfballoon_interval
/sys/devices/system/xen_memory/xen_memory0/selfballoon/selfballooning
/sys/devices/system/xen_memory/xen_memory0/selfballoon/selfballoon_reserved_mb
/sys/devices/system/xen_memory/xen_memory0/selfballoon/selfballoon_uphysteresis
/sys/devices/system/xen_memory/xen_memory0/selfballoon/selfballoon_downhysteresis

Thanks in advance & regards,
Alain
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.