sched: initial import
[dpdk.git] / examples / qos_sched / profile.cfg
1 ;   BSD LICENSE
2
3 ;   Copyright(c) 2010-2013 Intel Corporation. All rights reserved.
4 ;   All rights reserved.
5
6 ;   Redistribution and use in source and binary forms, with or without 
7 ;   modification, are permitted provided that the following conditions 
8 ;   are met:
9
10 ;     * Redistributions of source code must retain the above copyright 
11 ;       notice, this list of conditions and the following disclaimer.
12 ;     * Redistributions in binary form must reproduce the above copyright 
13 ;       notice, this list of conditions and the following disclaimer in 
14 ;       the documentation and/or other materials provided with the 
15 ;       distribution.
16 ;     * Neither the name of Intel Corporation nor the names of its 
17 ;       contributors may be used to endorse or promote products derived 
18 ;       from this software without specific prior written permission.
19
20 ;   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
21 ;   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
22 ;   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 
23 ;   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 
24 ;   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 
25 ;   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 
26 ;   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
27 ;   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 
28 ;   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 
29 ;   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 
30 ;   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
32
33 ; This file enables the following hierarchical scheduler configuration for each
34 ; 10GbE output port:
35 ;       * Single subport (subport 0): 
36 ;               - Subport rate set to 100% of port rate
37 ;               - Each of the 4 traffic classes has rate set to 100% of port rate
38 ;       * 4K pipes per subport 0 (pipes 0 .. 4095) with identical configuration:
39 ;               - Pipe rate set to 1/4K of port rate
40 ;               - Each of the 4 traffic classes has rate set to 100% of pipe rate
41 ;               - Within each traffic class, the byte-level WRR weights for the 4 queues
42 ;         are set to 1:1:1:1
43 ;
44 ; For more details, please refer to chapter "Quality of Service (QoS) Framework"
45 ; of Intel Data Plane Development Kit (Intel DPDK) Programmer's Guide.
46  
47 ; Port configuration
48 [port]
49 frame overhead = 24
50 number of subports per port = 1
51 number of pipes per subport = 4096
52 queue sizes = 64 64 64 64
53
54 ; Subport configuration
55 [subport 0]
56 tb rate = 1250000000           ; Bytes per second
57 tb size = 1000000              ; Bytes
58
59 tc 0 rate = 1250000000         ; Bytes per second
60 tc 1 rate = 1250000000         ; Bytes per second
61 tc 2 rate = 1250000000         ; Bytes per second
62 tc 3 rate = 1250000000         ; Bytes per second
63 tc period = 10                 ; Milliseconds
64 tc oversubscription period = 10; Milliseconds
65
66 pipe 0-4095 = 0                ; These pipes are configured with pipe profile 0
67
68 ; Pipe configuration
69 [pipe profile 0]
70 tb rate = 305175               ; Bytes per second
71 tb size = 1000000              ; Bytes
72
73 tc 0 rate = 305175             ; Bytes per second
74 tc 1 rate = 305175             ; Bytes per second
75 tc 2 rate = 305175             ; Bytes per second
76 tc 3 rate = 305175             ; Bytes per second
77 tc period = 40                 ; Milliseconds
78
79 tc 0 oversubscription weight = 1
80 tc 1 oversubscription weight = 1
81 tc 2 oversubscription weight = 1
82 tc 3 oversubscription weight = 1
83
84 tc 0 wrr weights = 1 1 1 1
85 tc 1 wrr weights = 1 1 1 1
86 tc 2 wrr weights = 1 1 1 1
87 tc 3 wrr weights = 1 1 1 1
88
89 ; RED params per traffic class and color (Green / Yellow / Red)
90 [red]
91 tc 0 wred min = 48 40 32
92 tc 0 wred max = 64 64 64
93 tc 0 wred inv prob = 10 10 10
94 tc 0 wred weight = 9 9 9
95
96 tc 1 wred min = 48 40 32
97 tc 1 wred max = 64 64 64
98 tc 1 wred inv prob = 10 10 10
99 tc 1 wred weight = 9 9 9
100
101 tc 2 wred min = 48 40 32
102 tc 2 wred max = 64 64 64
103 tc 2 wred inv prob = 10 10 10
104 tc 2 wred weight = 9 9 9
105
106 tc 3 wred min = 48 40 32
107 tc 3 wred max = 64 64 64
108 tc 3 wred inv prob = 10 10 10
109 tc 3 wred weight = 9 9 9