On 21 Oct 2009, at 11:24pm, Nicolas Droux wrote:

Nils,

On Oct 18, 2009, at 4:13 AM, Nils Goroll wrote:

Hi Kais and all,

Set the bandwith limit on the vnic of one of the guests to zero.
assuming the guest's automatically created vnic is called xvm1_0:
# dladm set-linkprop -p maxbw=0 xvm1_0
Great idea! I will try this tomorrow. Thank you!

Today is not the 16th of September, so my reply is a month late, but still this doesn't seem to work for me as I'd expect:

- Little detail: Only setting maxbw to 0 temporarily seems to work:

r...@d0:~# dladm set-linkprop -t -p maxbw=0 xvm4_2
r...@d0:~# dladm show-linkprop xvm4_2
LINK PROPERTY PERM VALUE DEFAULT POSSIBLE
xvm4_2       autopush        --   --             --             --
xvm4_2       zone            rw   --             --             --
xvm4_2 state r- up up up,down
xvm4_2       mtu             r-   1500           1500           1500
xvm4_2       maxbw           rw       0          --             --
xvm4_2       cpus            rw   --             --             --
xvm4_2 priority rw high high low,medium,high xvm4_2 tagmode rw vlanonly vlanonly normal,vlanonly

r...@d0:~# dladm set-linkprop -p maxbw=0 xvm4_2
dladm: warning: cannot persistently set link property 'maxbw': object not found

If xvm4_2 is a temporary VNIC created by Xen then it's expected. If you don't specify -t, dladm will assume you want to set that property persistently, and you cannot store persistent properties for non-persistent data-links.

There was an effort to allow the maximum bandwidth to be configured from the Xen tools themselves, and then apply the corresponding maxbw property on the VNICs transparently as they are created by Xen. The bandwidth limit would have been in this case stored persistently in the Xen configuration itself, and then applied to the temporary VNICs created by Xen. See http://arc.opensolaris.org/caselog/PSARC/2009/137 .

Unfortunately the responsible engineer was redeployed before he had a chance to finish the work and this has not been picked up by anyone else.

This should work in the current bits.

_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to