<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Oops, I fail at email..
<div><br>
</div>
<div>Phil,
<div><br>
</div>
<div>Your use case is similar to how we use it. The idea is that the instance_types rxtx_factor is multiplied by the rxtx_base on networks to equal the rxtx_cap which ends up as a meta characteristic of a vif in the network_info model.</div>
<div><br>
</div>
<div>For example if you have a network with a 1024kb/s rxtx_base, you can have several different instance types with rxtx_factors of 1.0, 2.0, 4.0, 10.0…. etc. When the network_info object is crafted by the network manager, it multiplies the two and stores
 the result in the meta field of vif. If you have multiple networks, they can have different rxtx_base values, and this will be reflected in the rxtx_cap for the resulting vifs. At this point anything that has access to the network_info object can grab the
 values from vif.get_meta('rxtx_cap'). As vish pointed out, the xen vif driver passes the rxtx_cap to xen in the process of creating vifs on the hypervisor.</div>
<div><br>
</div>
<div>-trey</div>
<div><br>
</div>
<div>
<div>On Jan 30, 2013, at 8:32 PM, Vishvananda Ishaya wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite"><base href="x-msg://9947/">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div>Hi phil,</div>
<div><br>
</div>
It is used to generate the rxtx_cap in the network_info cache which is in turn used to generate qos params in xenapi in:
<div><br>
</div>
<div>~/os/nova/nova/virt/xenapi/vif.py<br>
<div><br>
</div>
<div>I don't believe it is used in the other drivers at all.</div>
<div><br>
</div>
<div>tr3buchet or _cerberus_ might be able to add a bit more detail</div>
<div><br>
</div>
<div>Vish</div>
<div><br>
<div>
<div>On Jan 30, 2013, at 1:43 PM, "Day, Phil" <<a href="mailto:philip.day@hp.com">philip.day@hp.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div lang="EN-GB" link="blue" vlink="purple" style="font-family: Menlo; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">
<div class="WordSection1" style="page: WordSection1; ">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">
Hi Folks,<o:p></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">
<o:p> </o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">
Can anyone point me to where the rxtx factor of an instance type is currently used in the code please ?<o:p></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">
<o:p> </o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">
I was thinking about the use case of having instance types which are differentiated by their network bandwidth, and how that could be accommodated in a scheduler filter and passed down to the virt layer for cgroup configuration, and the rxtx factor seems to
 be the obvious starting point – but I was struggling to see how its already used.<o:p></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">
<o:p> </o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">
Has anyone else looked at this as an issue ?<o:p></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">
<o:p> </o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">
Cheers,<o:p></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">
Phil<o:p></o:p></div>
</div>
_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org" style="color: purple; text-decoration: underline; ">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" style="color: purple; text-decoration: underline; ">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</body>
</html>