solaris11 flowadm (1)

Simple flowadm example.

server1 - 192.168.4.142, nic-name - net0
client1 - 192.168.4.161
client2 - 192.168.4.6

On server1 that runs solaris 11 run the following commands:
# flowadm add-flow -l net0 -a remote_ip=192.168.4.161 ssh-1
# flowadm add-flow -l net0 -a remote_ip=192.168.4.6 ssh-2
# flowadm set-flowprop -p maxbw=3M ssh-1
# flowadm set-flowprop -p maxbw=30M ssh-2

On server1 create a 10MB file in /tmp
dd if=/dev/zero of=/tmp/file bs=1024 count=10000

On client1 copy the 10MB file from server:/tmp/ to local /tmp
# time scp root@192.168.4.142:/tmp/file /tmp/
file 100% 10MB 357.1KB/s 00:28
real 0m30.308s
user 0m0.142s
sys 0m0.144s

On client2 copy the 10MB file from server:/tmp/ to local /tmp
# time scp root@192.168.4.142:/tmp/file /tmp/
file 100% 10MB 4.9MB/s 00:02
real 0m3.740s
user 0m0.148s
sys 0m0.078s

This entry was posted in Uncategorized. Bookmark the permalink.

Comments are closed.