Skip to contentSkip to conversation

qmp query-balloon return only "actual" value ?

Qemu-devel Alexandre DERUMIER 2 participants 3 messages Dec 5, 2012 – Dec 6, 2012 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): e3a5d4bc-9192-4d99-a30c-517826ea7c38@mailpro

#1 lore raw

Hi,
I'm trying to use qmp "query-balloon", to get stats,

Quoted 1 line

From Doc, I expect to have

-> { "execute": "query-balloon" }

<- {
      "return":{
         "actual":1073741824,
         "mem_swapped_in":0,
         "mem_swapped_out":0,
         "major_page_faults":142,
         "minor_page_faults":239245,
         "free_mem":1014185984,
         "total_mem":1044668416
      }

}

But I got only

-> { "execute": "query-balloon" }

<- {
      "return":{
         "actual":1073741824,
      }

}

qemu 1.3.

Guest kernels tested : 2.6.32, 3.2 and 3.5.

Does I need a more recent kernel in my guest ?

Regards,

Alexandre

#2 lore raw
Quoted 20 lines · On Wed, 05 Dec 2012 15:07:24 +0100 (CET) Alexandre DERUMIER…

Hi,
I'm trying to use qmp "query-balloon", to get stats,

From Doc, I expect to have

-> { "execute": "query-balloon" }

<- {
      "return":{
         "actual":1073741824,
         "mem_swapped_in":0,
         "mem_swapped_out":0,
         "major_page_faults":142,
         "minor_page_faults":239245,
         "free_mem":1014185984,
         "total_mem":1044668416
      }

}

Quoted 8 lines

But I got only

-> { "execute": "query-balloon" }

<- {
      "return":{
         "actual":1073741824,
      }

}

Yes, that's correct, the doc is wrong. Balloon stats have been disabled long ago. I've sent a series to re-enable them:

http://lists.gnu.org/archive/html/qemu-devel/2012-12/msg00287.html

I'll send a patch fixing the old doc shortly.

#3 lore raw
Quoted 1 line
Quoted 1 line

Yes, that's correct, the doc is wrong.

Oh, ok, thanks!

Quoted 4 lines
Quoted 4 lines

Balloon stats have been disabled
long ago. I've sent a series to re-enable them:

http://lists.gnu.org/archive/html/qemu-devel/2012-12/msg00287.html

Great. I hope I'll be ready for qemu 1.4 :)

I'll send a patch fixing the old doc shortly.

Thanks for your response !

----- Mail original -----

De: "Luiz Capitulino" <[email protected]>
À: "Alexandre DERUMIER" <[email protected]>
Cc: "qemu-devel" <[email protected]>
Envoyé: Jeudi 6 Décembre 2012 13:34:23
Objet: Re: [Qemu-devel] qmp query-balloon return only "actual" value ?

Quoted 20 lines · On Wed, 05 Dec 2012 15:07:24 +0100 (CET) Alexandre DERUMIER…

Hi,
I'm trying to use qmp "query-balloon", to get stats,

From Doc, I expect to have

-> { "execute": "query-balloon" }
<- {
"return":{
"actual":1073741824,
"mem_swapped_in":0,
"mem_swapped_out":0,
"major_page_faults":142,
"minor_page_faults":239245,
"free_mem":1014185984,
"total_mem":1044668416
}
}

Quoted 8 lines

But I got only

-> { "execute": "query-balloon" }
<- {
"return":{
"actual":1073741824,
}
}

Yes, that's correct, the doc is wrong. Balloon stats have been disabled long ago. I've sent a series to re-enable them:

http://lists.gnu.org/archive/html/qemu-devel/2012-12/msg00287.html

I'll send a patch fixing the old doc shortly.