Skip to content

Commit 04a1045

Browse files
Fenghua Yuramesh-thomas
authored andcommitted
accel-config: Add user_default_profile.conf
Add contrib/configs/user_default_profile.conf as a user default configuration template. It specifies one DSA and one IAX with all WQs and engines in one group in each device. Run "accel-config config-user-default -c user_default_profile.conf" to apply the attributes to all available WQs and engines in each device. User can modify the attributes and/or remove a device per their requirements. Signed-off-by: Fenghua Yu <[email protected]> Reviewed-by: Ramesh Thomas <[email protected]>
1 parent a851eb4 commit 04a1045

File tree

2 files changed

+70
-0
lines changed

2 files changed

+70
-0
lines changed

contrib/configs/profilenote.txt

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,31 @@ profile descriptions.
3434
for throughput ops
3535
- targeting SPDK-like uses
3636
- DWQ threshold default 0
37+
38+
5. user_default_profile.conf
39+
Recommended dsa and iax accel profile template
40+
- The template specifies one DSA device and one IAX device
41+
- The attributes are applied to all WQs and engines on DSA and IAX
42+
- Run "accel-config config-user-default -c user_default_profile.conf"
43+
to load the config to all WQs and engines on all available DSA and
44+
IAX devices
45+
- The attributes can be edited. Two devices can be tailored to one device.
46+
- 1 group with all available WQs/all engs per group
47+
- Attributes that can be changed:
48+
"group_id":0
49+
"priority":10
50+
"block_on_fault":1
51+
"ats_disable":0
52+
"prs_disable":1
53+
"name":"user_default_wq"
54+
- Calcuated attributes:
55+
"size": max WQ size / max WQs
56+
"threshold": WQ size
57+
- Fixed attributes:
58+
"type": "user"
59+
"mode":"shared"
60+
"driver_name":"user",
61+
- Attributes with default values set by driver:
62+
"max_batch_size": default value
63+
"max_transfer_size": default value
64+
"op_config": default value
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
[
2+
{
3+
"dev":"dsa0",
4+
"groups":[
5+
{
6+
"dev":"group0.0",
7+
"grouped_workqueues":[
8+
{
9+
"dev":"wq0.0",
10+
"mode":"shared",
11+
"group_id":0,
12+
"priority":10,
13+
"block_on_fault":1,
14+
"name":"user_default_wq",
15+
"ats_disable":0,
16+
"prs_disable":1
17+
}
18+
]
19+
}
20+
]
21+
},
22+
{
23+
"dev":"iax1",
24+
"groups":[
25+
{
26+
"dev":"group1.0",
27+
"grouped_workqueues":[
28+
{
29+
"dev":"wq1.0",
30+
"mode":"shared",
31+
"group_id":0,
32+
"priority":10,
33+
"block_on_fault":1,
34+
"name":"user_default_wq",
35+
"ats_disable":0,
36+
"prs_disable":1
37+
}
38+
]
39+
}
40+
]
41+
}
42+
]

0 commit comments

Comments
 (0)