Skip to contentSkip to conversation

ballooning not working on hotplugged pc-dimm

Qemu-devel Alexandre DERUMIER 4 participants 6 messages Sep 9, 2014 – Sep 11, 2014 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 0a98da72-f316-4e2b-8327-201f85a6e879@mailpro

#1 lore raw

Hello,

I was playing with pc-dimm hotplug, and I notice that balloning is not working on memory space of pc-dimm devices.

example:

qemu -m size=1024,slots=255,maxmem=15000M

#free -m : 1024M
-> qmp balloon 512M
#free -m : 512M

-> hotplug pc-dimm 1G:

#free -m : 1512M

(This is the same behavior if qemu is started with pc-dimm devices)

qemu 2.1
Guest kernel : 3.12.

Does it need a guest balloon module update ?

Regards,

Alexandre Derumier

#2 lore raw
Quoted 26 lines · Alexandre DERUMIER

Hello,

I was playing with pc-dimm hotplug, and I notice that balloning is not working on memory space of pc-dimm devices.

example:

qemu -m size=1024,slots=255,maxmem=15000M

#free -m : 1024M
-> qmp balloon 512M
#free -m : 512M

-> hotplug pc-dimm 1G:

#free -m : 1512M

(This is the same behavior if qemu is started with pc-dimm devices)

qemu 2.1
Guest kernel : 3.12.

Quoted 8 lines

Does it need a guest balloon module update ?

Regards,

Alexandre Derumier

Hi,

I noticed this fault also;-), this is a bug in qemu, And some work in process...

Actually in QEMU the hotplugged memory(named hotplug-memory) is distinguished from the common memory(named pc.ram). When do balloon action, QEMU wrongly stats the ram_size.

I will send a patch series which also include other bug fix for the memory hotplug.

Thanks,
zhanghailiang

#3 lore raw
Quoted 39 lines · zhanghailiang
Quoted 26 lines · Alexandre DERUMIER

Hello,

I was playing with pc-dimm hotplug, and I notice that balloning is not working on memory space of pc-dimm devices.

example:

qemu -m size=1024,slots=255,maxmem=15000M

#free -m : 1024M
-> qmp balloon 512M
#free -m : 512M

-> hotplug pc-dimm 1G:

#free -m : 1512M

(This is the same behavior if qemu is started with pc-dimm devices)

qemu 2.1
Guest kernel : 3.12.

Quoted 8 lines

Does it need a guest balloon module update ?

Regards,

Alexandre Derumier

Hi,

I noticed this fault also;-), this is a bug in qemu, And some work in process...

Quoted 11 lines

Actually in QEMU the hotplugged memory(named hotplug-memory) is distinguished from the common memory(named pc.ram). When do balloon action, QEMU wrongly stats the ram_size.

I will send a patch series which also include other bug fix for the memory hotplug.

Thanks,
zhanghailiang

Why does hotplugging use a different name?

This also affects RDMA live migration - we are explicitly looking up "pc.ram" ram blocks and pinning them for memory registration with Linux.

- Michael

#4 lore raw

Il 11/09/2014 03:57, Michael R. Hines ha scritto:

Quoted 6 lines
Quoted 1 line

Why does hotplugging use a different name?

This also affects RDMA live migration - we are explicitly looking up "pc.ram" ram blocks and pinning them for memory registration with Linux.

Are we? I cannot see any code that special cases pc.ram (it only appears in a couple of comments). It'd also be surprising to see that escaping review. :)

Paolo

#5 lore raw
Quoted 11 lines · Paolo Bonzini

Il 11/09/2014 03:57, Michael R. Hines ha scritto:

Quoted 4 lines

Why does hotplugging use a different name?

This also affects RDMA live migration - we are explicitly looking up "pc.ram" ram blocks and pinning them for memory registration with Linux.

Are we? I cannot see any code that special cases pc.ram (it only appears in a couple of comments). It'd also be surprising to see that escaping review. :)

Paolo

You're absolutely right =) I was thinking about old code. We loop through all the ram blocks.

Good sanity check, though =)

- Michael

#6 lore raw
Quoted 14 lines · Michael R. Hines
Quoted 11 lines · Paolo Bonzini

Il 11/09/2014 03:57, Michael R. Hines ha scritto:

Quoted 4 lines

Why does hotplugging use a different name?

This also affects RDMA live migration - we are explicitly looking up "pc.ram" ram blocks and pinning them for memory registration with Linux.

Are we? I cannot see any code that special cases pc.ram (it only appears in a couple of comments). It'd also be surprising to see that escaping review. :)

Paolo

Quoted 8 lines

You're absolutely right =) I was thinking about old code. We loop through all the ram blocks.

Good sanity check, though =)

- Michael

Hmm, in this case, it is better to remove this confused comments;-)