Bug 1124 - Not enable the TLB_RANGE,The performance of 502.gcc_r will reduce 20% in SPEC-CPU2017
Summary: Not enable the TLB_RANGE,The performance of 502.gcc_r will reduce 20% in SPEC...
Status: RESOLVED DUPLICATE of bug 1122
Alias: None
Product: Anolis OS 8
Classification: Anolis OS
Component: kernel - anck-5.10 (show other bugs) kernel - anck-5.10
Version: 8.2
Hardware: aarch64 Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: Shiloong
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-06 12:14 UTC by feitian200603
Modified: 2022-05-06 17:09 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description feitian200603 2022-05-06 12:14:48 UTC
Description of problem:
  Not enable the TLB_RANGE,tlb_flush will have greater impatct, The performance of 502.gcc_r will reduce 20% in SPEC-CPU2017

Version-Release number of selected component (if applicable):
  5.10.84-10.3.an8.aarch64

How reproducible:
准备环境
  1,安装speccpu 2017
  2,安装gcc 10.2 + glibc 2.28
执行测试
  1,参数设置:
     echo 3 > /proc/sys/vm/drop_caches
     ulimit -s unlimited
     echo always >  /sys/kernel/mm/transparent_hugepage/enabled
     echo 1 > /proc/sys/vm/swappiness
     echo 1 > /proc/sys/vm/zone_reclaim_mode
     echo 20 > /proc/sys/vm/dirty_ratio
     echo 10 > /proc/sys/vm/dirty_background_ratio
     echo 1 > /proc/sys/kernel/numa_balancing
  2,runcpu -c mytest.config --copies=100 --iterations=1 --action=validate -- 
     tune=base --size=ref 502
  3,热点函数分析
     perf top
     72.64% [kernel] [k] ptep_clear_flush
     5.64% [kernel] [k] tlb_flush
Actual results:
  Estimated Estimated
  Base Base Base Peak Peak Peak
  Benchmarks Copies Run Time Rate Copies Run Time Rate
  --------------- ------- --------- --------- ------- --------- ---------
  500.perlbench_r NR
  502.gcc_r 128 1003 181  *

Expected results:
  Estimated Estimated
  Base Base Base Peak Peak Peak
  Benchmarks Copies Run Time Rate Copies Run Time Rate
  --------------- ------- --------- --------- ------- --------- ---------
  500.perlbench_r NR
  502.gcc_r 128 761 238  *

Additional info:
Comment 1 Shiloong admin 2022-05-06 17:09:11 UTC
duplicated with 1122

*** This bug has been marked as a duplicate of bug 1122 ***