[Accel-config] [PATCH 6/7] accel-config: Add user_default_profile.conf
Fenghua Yu <[email protected]> Tue, 1 Aug 2023 14:52:31 -0700
| Newsgroups | dev.linux.lists.accel-config |
|---|---|
| Message-ID | <[email protected]> |
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]> --- contrib/configs/profilenote.txt | 28 +++++++++++++++ contrib/configs/user_default_profile.conf | 42 +++++++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 contrib/configs/user_default_profile.conf diff --git a/contrib/configs/profilenote.txt b/contrib/configs/profilenote.txt index 6debc9a..a48fed0 100644 --- a/contrib/configs/profilenote.txt +++ b/contrib/configs/profilenote.txt @@ -34,3 +34,31 @@ profile descriptions. for throughput ops - targeting SPDK-like uses - DWQ threshold default 0 + +5. user_default_profile.conf + Recommended dsa and iax accel profile template + - The template specifies one DSA device and one IAX device + - The attributes are applied to all WQs and engines on DSA and IAX + - Run "accel-config config-user-default -c user_default_profile.conf" + to load the config to all WQs and engines on all available DSA and + IAX devices + - The attributes can be edited. Two devices can be tailored to one device. + - 1 group with all available WQs/all engs per group + - Attributes that can be changed: + "group_id":0 + "priority":10 + "block_on_fault":1 + "ats_disable":0 + "prs_disable":1 + "name":"user_default_wq" + - Calcuated attributes: + "size": max WQ size / max WQs + "threshold": WQ size + - Fixed attributes: + "type": "user" + "mode":"shared" + "driver_name":"user", + - Attributes with default values set by driver: + "max_batch_size": default value + "max_transfer_size": default value + "op_config": default value diff --git a/contrib/configs/user_default_profile.conf b/contrib/configs/user_default_profile.conf new file mode 100644 index 0000000..8c6f808 --- /dev/null +++ b/contrib/configs/user_default_profile.conf @@ -0,0 +1,42 @@ +[ + { + "dev":"dsa0", + "groups":[ + { + "dev":"group0.0", + "grouped_workqueues":[ + { + "dev":"wq0.0", + "mode":"shared", + "group_id":0, + "priority":10, + "block_on_fault":1, + "name":"user_default_wq", + "ats_disable":0, + "prs_disable":1 + } + ] + } + ] + }, + { + "dev":"iax1", + "groups":[ + { + "dev":"group1.0", + "grouped_workqueues":[ + { + "dev":"wq1.0", + "mode":"shared", + "group_id":0, + "priority":10, + "block_on_fault":1, + "name":"user_default_wq", + "ats_disable":0, + "prs_disable":1 + } + ] + } + ] + } +] -- 2.31.1