您尚未登录,请先 登录注册,以便参与发帖交流。

AARONIA实时频谱分析仪软件优化DSP线程的内核设置

回复主题
0 个回复 · 132 次浏览
#1 2023-09-05 17:16
我们AARONIA最新的实时频谱分析仪RTSA Suite PRO版本(Build>=13809)已经引入一个新的应用程序配置设置:DSP Scheduler custom core Order,用于优化DSP线程的内核设置,让我们可以更好地调用英特尔CPU的不同核心类型:自动模式将首先使用性能核心,自定义模式可以允许我们自定义核心的使用。这个功能可以使我们能够更有效地控制CPU内核在应用程序中如何分配给DSP(数字信号处理)线程。当使用具有“Performance Cores”(P核心)和“Efficiency Cores”(E-Cores)的混合CPU(如英特尔的Alder Lake)或为AMD的ZEN架构CPU调整CPU的核心顺序时,这尤其有益。

那这么设置有什么用处呢?
对于大多数CPU,DSP Scheduler Mode的默认值设置为Balanced,这在大多数情况下都是正确且最有用的设置。现代CPU通常具有复杂的体系结构,旨在优化性能、功率效率或其他因素。这种复杂性可以在单个CPU内产生不同类型的核(例如,Alder Lake中的P核和e核,或者Zen中的多核复合体)。操作系统可能并不总是为线程到核心的分配做出最佳选择,尤其是对于像数字信号处理这样的任务,这些任务可能需要一个更可控的环境来实现最大效率或性能。


它是如何工作的?
使用DSP调度器自定义内核顺序,您可以指定为DSP线程分配CPU内核的顺序。语法允许通过逗号分隔的值和/或范围规范进行简单的自定义。

以下是如何使用它的简要说明:
Comma Separation: Use commas to specify the cores in the exact order they should be allocated. For example, `9,7,4,2` would allocate DSP threads first to core 9, then core 7, followed by core 4, and finally core 2.
Ranges: If you have a range of cores you wish to allocate, use a dash. For example, `5-25` would allocate DSP threads to cores 5 through 25, in that order.
Full Expression: You can also combine the above formats for more complex assignments. For instance, `5,3,2,5-8` would allocate the first DSP thread to core 5, the second to core 3, the third to core 2, and then the subsequent threads to cores 5 through 8 in order.
Examples
Here are some practical examples to help you get started:
High-Performance Focus: If you have an Alder Lake CPU and you want to allocate DSP threads strictly to the Performance cores (let's assume they are cores 1, 3, 5), your configuration would look like `1,3,5`.
Core Grouping on Zen Architecture: Let's assume you are using a Zen-based CPU with different core complexes. If cores 24,28,32,36 are in one CCX and cores  8,12,16,20 are in another, and you want to group DSP threads within each CCX, your configuration might look like '8,12,16,20,24,28,32,36'.
Mixed Allocation: If you want to first allocate a couple of specific cores (e.g., 2 and 6) and then utilize a range of cores (e.g., 10-20), your configuration would be `2,6,10-20`.
By leveraging DSP Scheduler Custom Core Order, you can optimize thread allocation for better performance and efficiency tailored to your specific needs.We hope you find this feature beneficial. Feel free to share your experiences and ask any questions you may have!
To set the DSP Scheduler Mode, open the Aaronia RTSA Suite PRO Configuration using the menu "Extras"->"Configuration" and look for the "Performance" setting in the Environment configuration:

TOP
回复主题
快速回复