C.2.3 setting outbound network traffic priority, C.3 configuration file example 1, C.2.3 – Oracle Audio Technologies E10898-02 User Manual
Page 91: Setting outbound, Conf
Configuration File Example 1
Guest Configuration
C-3
qos_algorithm_type is the QoS algorithm. Only
tbf
is currently supported.
qos_algorithm_params are the parameters for the qos_algorithm_type. For the tbf
algorithm, this may be the rate limit and latency, for example,
rate=8mbit,latency=50ms
.
For example:
vif_other_config = [['00:16:3e:31:d5:4b', 'tbf', 'rate=8mbit,latency=50ms'],
['00:16:3e:52:c4:03', 'tbf', 'rate=10mbit']]
If you make a change to a running guest’s configuration file, you must shut down the
guest, then start it again with the
xm create vm.cfg
command for the change to
take effect. The
xm reboot
command does not restart the guest with the new
configuration.
C.2.3 Setting Outbound Network Traffic Priority
You can set the priority of outbound network traffic for a guest. The outbound
network traffic priority is controlled with the
rate
parameter of the
vif
option in the
guest’s configuration file (vm.cfg). The
rate
parameter supports an optional time
window parameter for specifying the granularity of credit replenishment. The default
window is
50ms
. For example, you could set rate as
rate=10Mb/s
,
rate=250KB/s
,
or
rate=1MB/s@20ms
. An example
vif
option to set the network traffic priority for a
guest might be:
vif = ['mac=00:16:3e:31:d5:4b,bridge=xenbr0,rate=10Mb/s@50ms']
If you make a change to a running guest’s configuration file, you must shut down the
guest, then start it again with the
xm create vm.cfg
command for the change to
take effect. The
xm reboot
command does not restart the guest with the new
configuration.
C.3 Configuration File Example 1
A simple example of a configuration file to create a guest follows:
disk = [ 'file:/mnt/el4u5_64_hvm//system.img,hda,w' ]
memory=4096
vcpus=2
name="el4u5_64_hvm"
vif = [ ' ' ] #By default no n/w interfaces are configured. E.g: A default hvm
install will have the line as vif=[ 'type=ioemu,bridge=xenbr0' ]
builder = "hvm"
device_model = "/usr/lib/xen/bin/qemu-dm"
vnc=1
vncunused=1
apic=1
acpi=1
pae=1
serial = "pty" # enable serial console
on_reboot = 'restart'
on_crash = 'restart'