Piotr Jasiukajtis
2008-Nov-06 13:35 UTC
[crossbow-discuss] net-virt_xb_40_snv_101_103108 cannot set link property ''maxbw''
Hi, I use the latest crossbow bfu archives: [root at slxce101 ~]# dladm set-linkprop -p maxbw=400K vnic0 dladm: warning: cannot set link property ''maxbw'' on ''vnic0'': invalid value [root at slxce101 ~]# dladm set-linkprop -p maxbw=10M vnic0 [root at slxce101 ~]# dladm set-linkprop -p maxbw=2M vnic0 [root at slxce101 ~]# dladm set-linkprop -p maxbw=1M vnic0 dladm: warning: cannot set link property ''maxbw'' on ''vnic0'': invalid value -- Regards, Piotr Jasiukajtis | estibi | SCA OS0072 http://estseg.blogspot.com
Steffen Weiberle
2008-Nov-06 14:40 UTC
[crossbow-discuss] net-virt_xb_40_snv_101_103108 cannot set link property ''maxbw''
Piotr Jasiukajtis wrote:> Hi, > > I use the latest crossbow bfu archives: > > > [root at slxce101 ~]# dladm set-linkprop -p maxbw=400K vnic0 > dladm: warning: cannot set link property ''maxbw'' on ''vnic0'': invalid value > [root at slxce101 ~]# dladm set-linkprop -p maxbw=10M vnic0 > [root at slxce101 ~]# dladm set-linkprop -p maxbw=2M vnic0 > [root at slxce101 ~]# dladm set-linkprop -p maxbw=1M vnic0 > dladm: warning: cannot set link property ''maxbw'' on ''vnic0'': invalid value >I thought the lowest value was 1Mbps, so the last one would work. It must be 2Mbps. This should probably be added to the maxbw link property section of dladm(1M). Also, maybe instead of invalid value, ''too low of a value'' is more meaningful as an error message. Steffen
Piotr Jasiukajtis
2008-Nov-06 14:57 UTC
[crossbow-discuss] net-virt_xb_40_snv_101_103108 cannot set link property ''maxbw''
Steffen Weiberle pisze:> Piotr Jasiukajtis wrote: >> Hi, >> >> I use the latest crossbow bfu archives: >> >> >> [root at slxce101 ~]# dladm set-linkprop -p maxbw=400K vnic0 >> dladm: warning: cannot set link property ''maxbw'' on ''vnic0'': invalid >> value >> [root at slxce101 ~]# dladm set-linkprop -p maxbw=10M vnic0 >> [root at slxce101 ~]# dladm set-linkprop -p maxbw=2M vnic0 >> [root at slxce101 ~]# dladm set-linkprop -p maxbw=1M vnic0 >> dladm: warning: cannot set link property ''maxbw'' on ''vnic0'': invalid >> value >> > > I thought the lowest value was 1Mbps, so the last one would work. It > must be 2Mbps. This should probably be added to the maxbw link property > section of dladm(1M). Also, maybe instead of invalid value, ''too low of > a value'' is more meaningful as an error message.Is there any chance to use more accurate values than 1M ? -- Regards, Piotr Jasiukajtis | estibi | SCA OS0072 http://estseg.blogspot.com
Zhijun Fu
2008-Nov-06 15:14 UTC
[crossbow-discuss] net-virt_xb_40_snv_101_103108 cannot set link property ''maxbw''
Piotr Jasiukajtis wrote:> Steffen Weiberle pisze: > >> Piotr Jasiukajtis wrote: >> >>> Hi, >>> >>> I use the latest crossbow bfu archives: >>> >>> >>> [root at slxce101 ~]# dladm set-linkprop -p maxbw=400K vnic0 >>> dladm: warning: cannot set link property ''maxbw'' on ''vnic0'': invalid >>> value >>> [root at slxce101 ~]# dladm set-linkprop -p maxbw=10M vnic0 >>> [root at slxce101 ~]# dladm set-linkprop -p maxbw=2M vnic0 >>> [root at slxce101 ~]# dladm set-linkprop -p maxbw=1M vnic0 >>> dladm: warning: cannot set link property ''maxbw'' on ''vnic0'': invalid >>> value >>> >>> >> I thought the lowest value was 1Mbps, so the last one would work. It >> must be 2Mbps. This should probably be added to the maxbw link property >> section of dladm(1M). Also, maybe instead of invalid value, ''too low of >> a value'' is more meaningful as an error message. >> > Is there any chance to use more accurate values than 1M ? >The current limitation comes from the way Crossbow works, when a non-zero bandwidth is set, in interrupt mode each tick (10ms) we need to at least allow a packet, so in a second we need to allow 1500B * 100 = 150KB = 1.2Mb, which results the 1Mbps limitation. People from the Crossbow team can correct me. Thanks, Zhijun -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/crossbow-discuss/attachments/20081106/c6147fa0/attachment.html>
Peter Memishian
2008-Nov-06 15:19 UTC
[crossbow-discuss] net-virt_xb_40_snv_101_103108 cannot set link property ''maxbw''
> >> I use the latest crossbow bfu archives:> >> > >> > >> [root at slxce101 ~]# dladm set-linkprop -p maxbw=400K vnic0 > >> dladm: warning: cannot set link property ''maxbw'' on ''vnic0'': invalid > >> value > >> [root at slxce101 ~]# dladm set-linkprop -p maxbw=10M vnic0 > >> [root at slxce101 ~]# dladm set-linkprop -p maxbw=2M vnic0 > >> [root at slxce101 ~]# dladm set-linkprop -p maxbw=1M vnic0 > >> dladm: warning: cannot set link property ''maxbw'' on ''vnic0'': invalid > >> value > >> > > > > I thought the lowest value was 1Mbps, so the last one would work. It > > must be 2Mbps. This should probably be added to the maxbw link property > > section of dladm(1M). Also, maybe instead of invalid value, ''too low of > > a value'' is more meaningful as an error message. > Is there any chance to use more accurate values than 1M ? dladm show-linkprop should show you the range, though I agree the set-linkprop error message should be more precise. Sounds like a good topic for brussels-dev at opensolaris.org -- meem
Steffen Weiberle
2008-Nov-06 19:09 UTC
[crossbow-discuss] net-virt_xb_40_snv_101_103108 cannot set link property ''maxbw''
On 11/06/08 10:19, Peter Memishian wrote:> > >> I use the latest crossbow bfu archives: > > >> > > >> > > >> [root at slxce101 ~]# dladm set-linkprop -p maxbw=400K vnic0 > > >> dladm: warning: cannot set link property ''maxbw'' on ''vnic0'': invalid > > >> value > > >> [root at slxce101 ~]# dladm set-linkprop -p maxbw=10M vnic0 > > >> [root at slxce101 ~]# dladm set-linkprop -p maxbw=2M vnic0 > > >> [root at slxce101 ~]# dladm set-linkprop -p maxbw=1M vnic0 > > >> dladm: warning: cannot set link property ''maxbw'' on ''vnic0'': invalid > > >> value > > >> > > > > > > I thought the lowest value was 1Mbps, so the last one would work. It > > > must be 2Mbps. This should probably be added to the maxbw link property > > > section of dladm(1M). Also, maybe instead of invalid value, ''too low of > > > a value'' is more meaningful as an error message. > > Is there any chance to use more accurate values than 1M ? > > dladm show-linkprop should show you the range, though I agree the > set-linkprop error message should be more precise. Sounds like a good > topic for brussels-dev at opensolaris.org > > -- > meemI filed the following... CR 6768471: network/docs dladm vnic bw needs to show lower limit CR 6768475: software/dladm dladm create-vnic maxbw error on too low bandwidth is misleading