• 全志T527 CPU测试


    一、基本介绍(8核 A55)

            全志科技T527采用多核异构设计,集成了CPU、GPU、NPU、DSP、MCU等各种计算单元,为各种复杂场景的多任务处理、专用数据处理以及算法应用提供了高效且灵活的解决方案。

    其中:

    · T527集成了8核1.8GHz ARM CortexTM-A55内核,能够高效处理系统调度和并发业务,确保产品更好的性能表现和交互体验;

    · G57 GPU则为游戏体验、多屏显示及多屏互动提供了图形应用支撑;

    · 独立的NPU,算力高达2Tops,为端侧语音及自然语言处理,图像处理及画质增强等AI应用提供了性能支持;

    · 专用DSP能够广泛应用于图像、音频及数字信号处理的专用领域,为影音娱乐、工业生产提供了专属算力;

    · RISC-V内核运行RTOS系统,为工业及机器人系统上的实时处理、高速响应以及工业级的稳定运行提供了重要保障。

    二、DTS信息

    1. cpus {
    2. #address-cells = <2>;
    3. #size-cells = <0>;
    4. cpu0: cpu@0 {
    5. device_type = "cpu";
    6. compatible = "arm,cortex-a55";
    7. reg = <0x0 0x0>;
    8. enable-method = "psci";
    9. cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
    10. capacity-dmips-mhz = <922>;
    11. clocks = <&cpupll_ccu CLK_PLL_CPU1>;
    12. operating-points-v2 = <&cluster0_opp_table>;
    13. #cooling-cells = <2>;
    14. dynamic-power-coefficient = <286>;
    15. };
    16. cpu1: cpu@100 {
    17. device_type = "cpu";
    18. compatible = "arm,cortex-a55";
    19. reg = <0x0 0x100>;
    20. enable-method = "psci";
    21. cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
    22. capacity-dmips-mhz = <922>;
    23. clocks = <&cpupll_ccu CLK_PLL_CPU1>;
    24. operating-points-v2 = <&cluster0_opp_table>;
    25. #cooling-cells = <2>;
    26. };
    27. cpu2: cpu@200 {
    28. device_type = "cpu";
    29. compatible = "arm,cortex-a55";
    30. reg = <0x0 0x200>;
    31. enable-method = "psci";
    32. cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
    33. capacity-dmips-mhz = <922>;
    34. clocks = <&cpupll_ccu CLK_PLL_CPU1>;
    35. operating-points-v2 = <&cluster0_opp_table>;
    36. #cooling-cells = <2>;
    37. };
    38. cpu3: cpu@300 {
    39. device_type = "cpu";
    40. compatible = "arm,cortex-a55";
    41. reg = <0x0 0x300>;
    42. enable-method = "psci";
    43. cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
    44. capacity-dmips-mhz = <922>;
    45. clocks = <&cpupll_ccu CLK_PLL_CPU1>;
    46. operating-points-v2 = <&cluster0_opp_table>;
    47. #cooling-cells = <2>;
    48. };
    49. cpu4: cpu@400 {
    50. device_type = "cpu";
    51. compatible = "arm,cortex-a55";
    52. reg = <0x0 0x400>;
    53. enable-method = "psci";
    54. cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
    55. capacity-dmips-mhz = <1024>;
    56. clocks = <&cpupll_ccu CLK_PLL_CPU3>;
    57. operating-points-v2 = <&cluster1_opp_table>;
    58. #cooling-cells = <2>;
    59. dynamic-power-coefficient = <354>;
    60. };
    61. cpu5: cpu@500 {
    62. device_type = "cpu";
    63. compatible = "arm,cortex-a55";
    64. reg = <0x0 0x500>;
    65. enable-method = "psci";
    66. cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
    67. capacity-dmips-mhz = <1024>;
    68. clocks = <&cpupll_ccu CLK_PLL_CPU3>;
    69. operating-points-v2 = <&cluster1_opp_table>;
    70. #cooling-cells = <2>;
    71. };
    72. cpu6: cpu@600 {
    73. device_type = "cpu";
    74. compatible = "arm,cortex-a55";
    75. reg = <0x0 0x600>;
    76. enable-method = "psci";
    77. cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
    78. capacity-dmips-mhz = <1024>;
    79. clocks = <&cpupll_ccu CLK_PLL_CPU3>;
    80. operating-points-v2 = <&cluster1_opp_table>;
    81. #cooling-cells = <2>;
    82. };
    83. cpu7: cpu@700 {
    84. device_type = "cpu";
    85. compatible = "arm,cortex-a55";
    86. reg = <0x0 0x700>;
    87. enable-method = "psci";
    88. cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
    89. capacity-dmips-mhz = <1024>;
    90. clocks = <&cpupll_ccu CLK_PLL_CPU3>;
    91. operating-points-v2 = <&cluster1_opp_table>;
    92. #cooling-cells = <2>;
    93. };

    三、测试方法

    1.stress-ng CPU压力测试

    (1)基本 CPU 压力测试

    stress-ng --cpu 4 --timeout 60s

    (2)浮点运算压力测试

    stress-ng --cpu 4 --cpu-method flops --timeout 60s

    (3)矩阵乘法压力测试

    stress-ng --cpu 4 --cpu-method matrixprod --timeout 60s

    (4)质数计算压力测试

    stress-ng --cpu 4 --cpu-method prime --timeout 60s

    (5)混合 CPU 压力测试

    stress-ng --cpu 4 --cpu-method mix --timeout 60s

    (6)多线程 CPU 压力测试(75% 负载)

    stress-ng --cpu 4 --cpu-load 75 --timeout 60s

    (7)同时对 CPU 和内存进行压力测试

    stress-ng --cpu 4 --vm 2 --vm-bytes 512M --timeout 60s

    stress-ng --cpu 8 --cpu-load 700 --vm 2 --vm-bytes 512M --timeout 60s

    taskset -c 1 stress-ng --cpu 1 --vm 1 --vm-bytes 512M --timeout 60s

    (8)同时8核 CPU MEM压力测试

    #taskset 指定核

    taskset -c 0 stress-ng --cpu 1 --vm 1 --vm-bytes 400M --timeout 60s &

    taskset -c 1 stress-ng --cpu 1 --vm 1 --vm-bytes 400M --timeout 60s &

    (9)8核

    run_stress_test.sh 0 7 &

    1. #!/bin/bash
    2. # 检查参数是否正确
    3. if [ "$#" -ne 2 ]; then
    4. echo "Usage: $0 "
    5. exit 1
    6. fi
    7. # 获取输入参数
    8. start_core=$1
    9. end_core=$2
    10. # 检查 start_core 和 end_core 是否合法
    11. if [ "$start_core" -gt "$end_core" ] || [ "$end_core" -gt 7 ]; then
    12. echo "Invalid core range: $start_core-$end_core"
    13. exit 1
    14. fi
    15. # 循环遍历指定的核心范围,运行压力测试
    16. for ((core=start_core; core<=end_core; core++)); do
    17. echo "Running stress test on CPU core $core..."
    18. taskset -c $core stress-ng --cpu 1 --vm 1 --vm-bytes 512M --timeout 60s
    19. done
    20. echo "Stress test completed."

  • 相关阅读:
    考生都难哭了,用 Python 分析了一下,这里才是高考地狱级难度
    Spark - 权威指南
    计算机信息系统安全服务等级证.
    GitHub 上有个沙雕开发者,做了款斗图工具后火了...
    华为路由器基于接口限速
    excel 通过SUMIF关键词统计词频
    溶于乙醇的碳量子点CQDs,发射波长420nm,535nm,565nm,505nm,675nm
    【分割链表】
    【Git技巧】第七篇 git分区原理(超级详细)
    java毕业设计视频点播系统Mybatis+系统+数据库+调试部署
  • 原文地址:https://blog.csdn.net/qq_53676406/article/details/139932652