Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Red Hat Enterprise Linux 9 Essentials Book now available.

Purchase a copy of Red Hat Enterprise Linux 9 (RHEL 9) Essentials

Red Hat Enterprise Linux 9 Essentials Print and eBook (PDF) editions contain 34 chapters and 298 pages

Preview Book

25.7. Limit network bandwidth for a guest

In some environments it may be required to limit the network bandwidth available to certain guests. This can be used to implement basic Quality of Service on a host running multiple virtual machines. By default the virtual machine will be able to use any bandwidth setting available on your physical network card supports. The physical network card must be mapped to one of virtual machine's virtual network interfaces. In Red Hat Virtualization the “rate” parameter part of the VIF entries can be used to achieve the goal of throttling certain virtual machines.
This list covers the variables
rate
The rate= option can be added to the VIF= entry in a virtual machine configuration file to limit a virtual machine's network bandwidth or specify a specific time interval for a time window.
time window
The time window is optional to the rate= option:
The default time window is 50ms.
A smaller time window will provide less burst transmission, however, the replenishment rate and latency will increase.
The default 50ms time window is a good balance between latency and throughput and in most cases will not require changing.
Examples of rate parameter values and uses.
rate=10Mb/s
Limit the outgoing network traffic from the guest to 10MB/s.
rate=250KB/s
Limit the outgoing network traffic from the guest to 250KB/s.
rate=10MB/s@50ms
Limit bandwidth to 10MB/s and provide the guest with a 50KB chunk every 50ms.
In the virtual machine configuration a sample VIF entry would look like the following:
vif = [ 'rate=10MB/s , mac=00:16:3e:7a:55:1c, bridge=xenbr1']
This rate entry would limit the virtual machine's interface to 10MB/s for outgoing traffic

 
 
  Published under the terms of the GNU General Public License Design by Interspire