Home > OpenSolaris > Networking, QoS and OpenSolaris

Networking, QoS and OpenSolaris

September 12th, 2009 Leave a comment Go to comments

OpenSolaris 200906 comes with some very interesting features about networking management. One is flowadm, allowing to manage network streams in a very simple and elegant way. For example, the next commands allow me to restrict the bandwith for my HTTP server.


flowadm add-flow -l bge0 -a transport=tcp,local_port=80 httpflow
flowadm set-flowprop -p maxbw=8 httpflow


wget -O /dev/null http://eva0/empty
2009-09-12 17:32:07 (971 KB/s) - « /dev/null »

As you can see it’s very simple! The following properties can be applied to a stream:

  • maxbw: Sets the full duplex bandwidth for the flow.
  • priority: Sets the relative priority for the flow.
  • cpus: Allocate packets of the flow to a processor set, for systems that have multiple
    processor sets. (this property is not yet available, maybe in 200911?)

References:

  • Configuring Virtual Networks
  • Configuring Resource Management on Data Links
  • Categories: OpenSolaris Tags:
    1. No comments yet.
    1. No trackbacks yet.