]> git.proxmox.com Git - ceph.git/blob - ceph/src/dpdk/examples/qos_sched/profile.cfg
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / dpdk / examples / qos_sched / profile.cfg
1 ; BSD LICENSE
2 ;
3 ; Copyright(c) 2010-2014 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 ; This file enables the following hierarchical scheduler configuration for each
33 ; 10GbE output port:
34 ; * Single subport (subport 0):
35 ; - Subport rate set to 100% of port rate
36 ; - Each of the 4 traffic classes has rate set to 100% of port rate
37 ; * 4K pipes per subport 0 (pipes 0 .. 4095) with identical configuration:
38 ; - Pipe rate set to 1/4K of port rate
39 ; - Each of the 4 traffic classes has rate set to 100% of pipe rate
40 ; - Within each traffic class, the byte-level WRR weights for the 4 queues
41 ; are set to 1:1:1:1
42 ;
43 ; For more details, please refer to chapter "Quality of Service (QoS) Framework"
44 ; of Data Plane Development Kit (DPDK) Programmer's Guide.
45
46 ; Port configuration
47 [port]
48 frame overhead = 24
49 number of subports per port = 1
50 number of pipes per subport = 4096
51 queue sizes = 64 64 64 64
52
53 ; Subport configuration
54 [subport 0]
55 tb rate = 1250000000 ; Bytes per second
56 tb size = 1000000 ; Bytes
57
58 tc 0 rate = 1250000000 ; Bytes per second
59 tc 1 rate = 1250000000 ; Bytes per second
60 tc 2 rate = 1250000000 ; Bytes per second
61 tc 3 rate = 1250000000 ; Bytes per second
62 tc period = 10 ; Milliseconds
63
64 pipe 0-4095 = 0 ; These pipes are configured with pipe profile 0
65
66 ; Pipe configuration
67 [pipe profile 0]
68 tb rate = 305175 ; Bytes per second
69 tb size = 1000000 ; Bytes
70
71 tc 0 rate = 305175 ; Bytes per second
72 tc 1 rate = 305175 ; Bytes per second
73 tc 2 rate = 305175 ; Bytes per second
74 tc 3 rate = 305175 ; Bytes per second
75 tc period = 40 ; Milliseconds
76
77 tc 3 oversubscription weight = 1
78
79 tc 0 wrr weights = 1 1 1 1
80 tc 1 wrr weights = 1 1 1 1
81 tc 2 wrr weights = 1 1 1 1
82 tc 3 wrr weights = 1 1 1 1
83
84 ; RED params per traffic class and color (Green / Yellow / Red)
85 [red]
86 tc 0 wred min = 48 40 32
87 tc 0 wred max = 64 64 64
88 tc 0 wred inv prob = 10 10 10
89 tc 0 wred weight = 9 9 9
90
91 tc 1 wred min = 48 40 32
92 tc 1 wred max = 64 64 64
93 tc 1 wred inv prob = 10 10 10
94 tc 1 wred weight = 9 9 9
95
96 tc 2 wred min = 48 40 32
97 tc 2 wred max = 64 64 64
98 tc 2 wred inv prob = 10 10 10
99 tc 2 wred weight = 9 9 9
100
101 tc 3 wred min = 48 40 32
102 tc 3 wred max = 64 64 64
103 tc 3 wred inv prob = 10 10 10
104 tc 3 wred weight = 9 9 9