Skip to contentSkip to conversation

kvm - max memory usage on the host for given configuration of a VM

DISCUSSION Andreas Hartmann 1 participant 1 message Feb 17, 2012 KVM

lore
Share & tools
lore
#0 lore raw

Hello!

I do have a question regarding the following VM (running on a linux 3.1.10 host with kvm 1.0). In the VM runs openSUSE 12.1 / 64bit.

The defined vnc interface is not used!

How much memory should this VM maximally use on the host (-> memory usage of the kvm-qemu process), as long as the currentMemory isn't changed?

I would have expected, that it shouldn't be much more than 256MB, maybe max. 300MB.

Is this correct?

Thank you for your hint,
kind regards,
Andreas

<domain type='kvm'>
<name>Dhcp</name>
<uuid>........</uuid>

<memory>1048576</memory>
<currentMemory>262144</currentMemory>

<vcpu>1</vcpu>

<os>

    <type arch='x86_64'>hvm</type>
    <boot dev='hd'/>

</os>

<features>

    <acpi/>
    <pae/>

</features>

<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>

<devices>

    <disk type='file' device='disk'>
      <source file='/raid/dhcp/vm/dhcp.qed' type='aio'/>
      <target dev='vda' bus='virtio'/>
      <driver name='qemu' type='qed' cache='none'/>
    </disk>

    <interface type='ethernet'>
      <mac address='17:a4:10:49:72:a5'/>
      <script path='no'/>
      <target dev='tap6'/>
      <model type='virtio'/>
    </interface>

    <interface type='ethernet'>
      <mac address='58:ac:12:8c:54:ef'/>
      <script path='no'/>
      <target dev='tap4'/>
      <model type='virtio'/>
    </interface>

    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='5933' autoport='no'/>
    <video>
      <model type='cirrus' vram='9216' heads='1'/>
    </video>

</devices>
</domain>