<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>If I remember correctly it's a max, not a guarantee. <br>
</p>
<p>lk<br>
</p>
<br>
<div class="moz-cite-prefix">On 1/11/17 8:15 PM, Mini Trader wrote:<br>
</div>
<blockquote
cite="mid:CACFEqhsSqCEVdasD0MXz0xpD9-dtuVspdLO6Gt10W82X5xubsQ@mail.gmail.com"
type="cite">
<div dir="ltr">Seems like I am confusing you
<div><br>
</div>
<div>I do realize that it is in BITS!</div>
<div><br>
</div>
<div>4M == 4000KBIT == 500kbytes.</div>
<div><br>
</div>
<div>Using 4000K OR 4M SHOULD restrict flow to a MAXIMUM of 500
KBYTES. What I am seeing is that using a value restricts flow
to a maximum of 100KBYTES!</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div>root@storage1:/root# flowadm add-flow -l backup0 -a
transport=tcp tcpflow</div>
<div>root@storage1:/root# flowadm set-flowprop -p maxbw=4M
tcpflow</div>
</div>
<div><br>
</div>
<div>ubuntu-16.04.1-desk 0%[ ] 2.67M
104KB/s eta 3h 45m<br>
</div>
<div><br>
</div>
<div># Well gosh darnit. That doesn't make sense. Maybe his
adapter cant download more than 100KBYTES. Lets undo what we
did and see what happens.</div>
<div><br>
</div>
<div>root@storage1:/root# flowadm remove-flow -l backup0<br>
</div>
<div>desktop-amd64.iso?_ 1%[ ] 18.24M
1.00MB/s eta 85m 54s<br>
</div>
<div><br>
</div>
<div># It appears our download speed is running at 8 MEGABIT or
1MEGABYTE without any flow. So why would a restriction of
half of our download rate cause it to run at 1/10th the
maximum speed!</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Jan 11, 2017 at 8:52 PM, Dan
McDonald <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:danmcd@omniti.com" target="_blank">danmcd@omniti.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex"><span
class=""><br>
> On Jan 11, 2017, at 8:32 PM, Mini Trader <<a
moz-do-not-send="true"
href="mailto:miniflowtrader@gmail.com">miniflowtrader@gmail.com</a>>
wrote:<br>
><br>
> This does not work. Simple example. Ran wget on an
ubuntu ISO. Was downloading at over 1 mega byte per sec.
Set adapter to 4000K. I would expect the download to peak
at around 500 Kilo Bytes. Was in the 100 range. 16000K
put it in the 500kb range. Doesn't add up. Also didn't
persist across reboot of zone.<br>
<br>
</span>1.) flowadm works in units of bits/sec, not bytes.
4000kbit == 4mbit == 500kbytes. Please RTFM carefully.<br>
<br>
2.) Use it in the global zone for the NIC you're assigning.
Then it'll persist. Persistence of /native commands in LX
zones is an open problem right now. We aren't planning on
doing it for flowadm, only for ipadm.<br>
<span class="HOEnZb"><font color="#888888"><br>
Dan<br>
<br>
<br>
<br>
</font></span></blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
OmniOS-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OmniOS-discuss@lists.omniti.com">OmniOS-discuss@lists.omniti.com</a>
<a class="moz-txt-link-freetext" href="http://lists.omniti.com/mailman/listinfo/omnios-discuss">http://lists.omniti.com/mailman/listinfo/omnios-discuss</a>
</pre>
</blockquote>
<br>
</body>
</html>