Bug#702676: linux-image-3.2.0-4-amd64: In a qemu-kvm vm, virtio_balloon fails to increase available memory

2013-05-02 Thread Журавлев Алексей

I have same problem with wheezy (host) and squeeze (guest).
In libvirt I have following memory configuration for the guest:
memory unit='MiB'1024/memory
currentMemory unit='MiB'128/currentMemory
[...]
memballoon model='virtio'
address type='pci' domain='0x' bus='0x00' slot='0x05' function='0x0'/
/memballoon

But the guest uses only 128 Mb, and when it fills, begins to use swap 
instead of increase memory.



Linux version 3.2.0-4-amd64 (debian-kernel@lists.debian.org) (gcc 
version 4.6.3 (Debian 4.6.3-15) ) #1 SMP Debian 3.2.41-2
Command line: BOOT_IMAGE=/boot/vmlinuz-3.2.0-4-amd64 
root=UUID=170b7f1f-8fd8-4e89-b923-b8ecfa50d761 ro quiet


Packages:
libvirt-bin0.9.12-11amd64
libvirt00.9.12-11amd64
python-libvirt0.9.12-11amd64
qemu-kvm1.1.2+dfsg-6amd64
virt-viewer0.5.3-1amd64
virtinst0.600.1-3all


lspci:
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core 
processor DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core 
processor PCI Express Root Port (rev 09)
00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v2/3rd 
Gen Core processor Graphics Controller (rev 09)
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset 
Family USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation 7 Series/C210 Series 
Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset 
Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset 
Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset 
Family PCI Express Root Port 1 (rev c4)
00:1c.5 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset 
Family PCI Express Root Port 6 (rev c4)

00:1c.6 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset 
Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation Z77 Express Chipset LPC Controller 
(rev 04)
00:1f.2 SATA controller: Intel Corporation 7 Series/C210 Series Chipset 
Family 6-port SATA Controller [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 7 Series/C210 Series Chipset Family 
SMBus Controller (rev 04)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. 
RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 09)
04:00.0 PCI bridge: ASMedia Technology Inc. ASM1083/1085 PCIe to PCI 
Bridge (rev 03)


Modules:
tun
ip6table_filter
ip6_tables
ebtable_nat
ebtables
bridge
stp
ipt_MASQUERADE
xt_conntrack
xt_tcpudp
iptable_mangle
iptable_filter
iptable_nat
nf_nat
nf_conntrack_ipv4
nf_defrag_ipv4
nf_conntrack
ip_tables
x_tables
6_tables,ip6table_filter
loop
kvm_intel
kvm
snd_hda_codec_hdmi
snd_hda_codec_realtek
joydev
usbhid
hid
snd_hda_intel
snd_hda_codec
snd_hwdep
i915
snd_pcm
snd_page_alloc
snd_timer
snd
soundcore
drm_kms_helper
drm
eeepc_wmi
psmouse
i2c_algo_bit
coretemp
acpi_cpufreq
mperf
pcspkr
asus_wmi
sparse_keymap
rfkill
serio_raw
evdev
crc32c_intel
ghash_clmulni_intel
cryptd
mxm_wmi
i2c_i801
i2c_core
video
processor
iTCO_wdt
iTCO_vendor_support
wmi
button
ext3
mbcache
jbd
dm_mod
raid1
md_mod
sg
sd_mod
crc_t10dif
fan
thermal
thermal_sys
ahci
r8169
libahci
mii
libata
scsi_mod
ehci_hcd
xhci_hcd
usbcore
usb_common

--
Zhuravlev Alexey
http://www.iteksys.ru/


--
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/51821922.9000...@iteksys.ru



Bug#702676: linux-image-3.2.0-4-amd64: In a qemu-kvm vm, virtio_balloon fails to increase available memory

2013-03-09 Thread Daniel Dickinson
Package: src:linux
Version: 3.2.35-2
Severity: important

I am running Debian Wheezy inside a libvirt-bin qemu-kvm virtual machine 
(running on a Debian Wheezy host) and have noticed that the virtio balloon 
driver is not working.

I have the initial allocation set to 512MB and allow up to 4096MB allocation 
and have pleny of physical memory on my host, but the virtual machine fails to 
grow beyond 512MB allocation and e.g. dpkg fails to being unable to allocation 
memory (and swap is in use and full when this happens, since swap is small).

This is rather defeats the purpose of using the balloon driver and is also 
rather strange since when first starting the virtual machine the full 
allocation is used (e.g. 4G is allocated to VM until the balloon driver 
releases all but 512 MB of it).

-- Package-specific info:
** Version:
Linux version 3.2.0-4-amd64 (debian-kernel@lists.debian.org) (gcc version 4.6.3 
(Debian 4.6.3-14) ) #1 SMP Debian 3.2.35-2

** Command line:
BOOT_IMAGE=/vmlinuz-3.2.0-4-amd64 root=/dev/mapper/pwyllwork-root ro 
rootflags=data=journal quiet

** Not tainted

** Kernel log:
[2.457390] PM: Hibernation image not present or could not be loaded.
[2.480064] EXT4-fs: Warning: mounting with data=journal disables delayed 
allocation and O_DIRECT support!
[2.521242] EXT4-fs (dm-0): mounted filesystem with journalled data mode. 
Opts: data=journal
[4.502346] udevd[396]: starting version 175
[5.244564] WARNING! power/level is deprecated; use power/control instead
[5.283157] input: Power Button as 
/devices/LNXSYSTM:00/LNXPWRBN:00/input/input2
[5.283162] ACPI: Power Button [PWRF]
[5.361030] virtio-pci :00:09.0: irq 51 for MSI/MSI-X
[5.361110] virtio-pci :00:09.0: irq 52 for MSI/MSI-X
[5.436062] input: PC Speaker as /devices/platform/pcspkr/input/input3
[5.577315] piix4_smbus :00:01.3: SMBus Host Controller at 0xb100, 
revision 0
[5.628492] Installing 9P2000 support
[5.697594] virtio-pci :00:0a.0: irq 53 for MSI/MSI-X
[5.697616] virtio-pci :00:0a.0: irq 54 for MSI/MSI-X
[5.739832] virtio-pci :00:0b.0: irq 55 for MSI/MSI-X
[5.739884] virtio-pci :00:0b.0: irq 56 for MSI/MSI-X
[5.793803] virtio-pci :00:0c.0: irq 57 for MSI/MSI-X
[5.793879] virtio-pci :00:0c.0: irq 58 for MSI/MSI-X
[5.898710] virtio-pci :00:0d.0: irq 59 for MSI/MSI-X
[5.898731] virtio-pci :00:0d.0: irq 60 for MSI/MSI-X
[6.000904] virtio-pci :00:0e.0: irq 61 for MSI/MSI-X
[6.000970] virtio-pci :00:0e.0: irq 62 for MSI/MSI-X
[6.037475] virtio-pci :00:0f.0: irq 63 for MSI/MSI-X
[6.037554] virtio-pci :00:0f.0: irq 64 for MSI/MSI-X
[6.122298] virtio-pci :00:10.0: irq 65 for MSI/MSI-X
[6.122336] virtio-pci :00:10.0: irq 66 for MSI/MSI-X
[6.179021] virtio-pci :00:11.0: irq 67 for MSI/MSI-X
[6.179099] virtio-pci :00:11.0: irq 68 for MSI/MSI-X
[6.231417] virtio-pci :00:12.0: irq 69 for MSI/MSI-X
[6.231494] virtio-pci :00:12.0: irq 70 for MSI/MSI-X
[6.286203] virtio-pci :00:14.0: irq 71 for MSI/MSI-X
[6.286225] virtio-pci :00:14.0: irq 72 for MSI/MSI-X
[6.334191] virtio-pci :00:15.0: irq 73 for MSI/MSI-X
[6.334214] virtio-pci :00:15.0: irq 74 for MSI/MSI-X
[6.466354] input: ImExPS/2 Generic Explorer Mouse as 
/devices/platform/i8042/serio1/input/input4
[6.815147] snd_hda_intel :00:04.0: irq 75 for MSI/MSI-X
[6.832772] snd_hda_intel :00:04.0: setting latency timer to 64
[8.353279] kvm: Nested Virtualization enabled
[9.272042] EXT4-fs (dm-0): re-mounted. Opts: (null)
[9.584517] EXT4-fs (dm-0): re-mounted. Opts: errors=remount-ro
[   10.094627] loop: module loaded
[   11.134881] Adding 471036k swap on /dev/mapper/pwyllwork-swap_1.  
Priority:-1 extents:1 across:471036k 
[   11.567044] FS-Cache: Loaded
[   11.581909] Installing v9fs 9p2000 file system support
[   11.582072] FS-Cache: Netfs '9p' registered for caching
[   13.113998] ip_tables: (C) 2000-2006 Netfilter Core Team
[   13.413047] nf_conntrack version 0.5.0 (3057 buckets, 12228 max)
[   13.795900] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   15.753155] RPC: Registered named UNIX socket transport module.
[   15.753158] RPC: Registered udp transport module.
[   15.753159] RPC: Registered tcp transport module.
[   15.753161] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   15.822877] FS-Cache: Netfs 'nfs' registered for caching
[   15.855056] Installing knfsd (copyright (C) 1996 o...@monad.swb.de).
[   18.241465] zfs-fuse (2432): /proc/2532/oom_adj is deprecated, please use 
/proc/2532/oom_score_adj instead.
[   20.127497] Netfilter messages via NETLINK v0.30.
[   20.482004] NF_TPROXY: Transparent proxy support initialized, version 4.1.0
[   20.482008] NF_TPROXY: Copyright (c) 2006-2007 BalaBit IT Ltd.
[   20.552221] xt_time: kernel timezone is -0500
[   20.586524] ctnetlink v0.93: registering with nfnetlink.
[