Return-Path: Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists.linuxfoundation.org (Postfix) with ESMTP id 0C946C0032 for ; Tue, 1 Aug 2023 21:59:34 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id B2AC780DC3 for ; Tue, 1 Aug 2023 21:59:31 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org B2AC780DC3 Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=IPndRoKU X-Virus-Scanned: amavisd-new at osuosl.org X-Spam-Flag: NO X-Spam-Score: -4.399 X-Spam-Level: X-Spam-Status: No, score=-4.399 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JYTjVCOf259M for ; Tue, 1 Aug 2023 21:59:31 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by smtp1.osuosl.org (Postfix) with ESMTPS id 1FD5281FA4 for ; Tue, 1 Aug 2023 21:59:31 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 1FD5281FA4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1690927171; x=1722463171; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=FrWjz21M3eZN2nxnoa2rQ1JodXUSsDh9jOAhMEeS8jw=; b=IPndRoKUd/FVziYkDwXrh/plLh6U+9YZax0bWkdO8XWLXSHzoTm20OD0 zo0heAqa+11+y+0pHcp5lLNhwh7BARlGrWItsF3ytWTr+uFjEupIyzF7h CoQKFpQF2WK67LSSwnTqrTiD+jELhko97fDZmfjSj6Af5wC7fYrWsIGZ8 /19hDF/CsBzKXflTKYuoPyddgVAzGFpZuXqPQBPLIyFz4iZI/ZN0zV4mD cQQOvrRlGBanMqrYAKDMraciZCk44oFgNFQUyBZRP8k5HI79mCOnLXd0H CoUiUZh56Hs+7GtR8YBKBpKm/xetADLxZsLUs/i6jIcTKh2YJ/x5HM6UQ w==; X-IronPort-AV: E=McAfee;i="6600,9927,10789"; a="400365409" X-IronPort-AV: E=Sophos;i="6.01,248,1684825200"; d="scan'208";a="400365409" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Aug 2023 14:52:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10789"; a="763974446" X-IronPort-AV: E=Sophos;i="6.01,248,1684825200"; d="scan'208";a="763974446" Received: from fyu1.sc.intel.com ([172.25.103.126]) by orsmga001.jf.intel.com with ESMTP; 01 Aug 2023 14:52:21 -0700 From: Fenghua Yu To: accel-config@lists.linuxfoundation.org, "Ramesh Thomas" , "Tony Luck" Date: Tue, 1 Aug 2023 14:52:31 -0700 Message-Id: <20230801215232.4001749-7-fenghua.yu@intel.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230801215232.4001749-1-fenghua.yu@intel.com> References: <20230801215232.4001749-1-fenghua.yu@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Accel-config] [PATCH 6/7] accel-config: Add user_default_profile.conf X-BeenThere: accel-config@lists.linuxfoundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: accel-config List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Aug 2023 21:59:34 -0000 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 Reviewed-by: Ramesh Thomas --- 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