<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi,<div><br></div><div>I am running OpenStack Cluster and use libvirt + cgroup to limit vm’s performance</div><div><a href="https://wiki.openstack.org/InstanceResourceQuota">https://wiki.openstack.org/InstanceResourceQuota</a></div><div><br></div><div>What I am confusing is..</div><div><br></div><div>1. After running a vm instance with some croup limit applied, I can’t find any related cgroup settings.</div><div>2. Can I change limit value after instance is running? like change disk_read_iops_sec from 10 to 20.</div><div><br></div><div>One of the xml file like below.</div><div><br></div><div><div><domain type="kvm"></div><div>  <uuid>27f49e5c-8ee0-4a09-8269-5fa31acd2983</uuid></div><div>  <name>instance-000000da</name></div><div>  <memory>2097152</memory></div><div>  <vcpu cpuset="1-12">1</vcpu></div><div>  <sysinfo type="smbios"></div><div>    <system></div><div>      <entry name="manufacturer">Red Hat Inc.</entry></div><div>      <entry name="product">OpenStack Nova</entry></div><div>      <entry name="version">2013.2.3-1.el6</entry></div><div>      <entry name="serial">9fa4736a-2b02-11e1-a8e4-5cf3fcb968b4</entry></div><div>      <entry name="uuid">27f49e5c-8ee0-4a09-8269-5fa31acd2983</entry></div><div>    </system></div><div>  </sysinfo></div><div>  <os></div><div>    <type>hvm</type></div><div>    <boot dev="hd"/></div><div>    <smbios mode="sysinfo"/></div><div>  </os></div><div>  <features></div><div>    <acpi/></div><div>    <apic/></div><div>  </features></div><div>  <clock offset="utc"></div><div>    <timer name="pit" tickpolicy="delay"/></div><div>    <timer name="rtc" tickpolicy="catchup"/></div><div>  </clock></div><div>  <cpu mode="host-model" match="exact"/></div><div>  <devices></div><div>    <disk type="file" device="disk"></div><div>      <driver name="qemu" type="qcow2" cache="none"/></div><div>      <source file="/data1/lib/nova/instances/27f49e5c-8ee0-4a09-8269-5fa31acd2983/disk"/></div><div>      <target bus="virtio" dev="vda"/></div><div>      <iotune></div><div>        <read_bytes_sec>25600000</read_bytes_sec></div><div>        <write_bytes_sec>40960000</write_bytes_sec></div><div>      </iotune></div><div>    </disk></div><div>    <interface type="bridge"></div><div>      <mac address="fa:16:3e:49:04:ce"/></div><div>      <model type="virtio"/></div><div>      <source bridge="br-int"/></div><div>      <target dev="tape30b3c05-12"/></div><div>      <virtualport type="openvswitch"></div><div>        <parameters interfaceid="e30b3c05-126c-45bd-ac31-e5eb5481a652"/></div><div>      </virtualport></div><div>    </interface></div><div>    <serial type="file"></div><div>      <source path="/data1/lib/nova/instances/27f49e5c-8ee0-4a09-8269-5fa31acd2983/console.log"/></div><div>    </serial></div><div>    <serial type="pty"/></div><div>    <input type="tablet" bus="usb"/></div><div>    <graphics type="vnc" autoport="yes" keymap="en-us" listen="10.13.128.43"/></div><div>  </devices></div><div></domain></div></div><div><br></div><div><br></div><div>
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="orphans: 2; widows: 2;">✉ --</div><div style="orphans: 2; widows: 2;">朴元奎</div><div style="orphans: 2; widows: 2;">kerwin</div></div>
</div>
<br></body></html>