<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.openanolis.cn/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.openanolis.cn/"
          
          maintainer="service@openanolis.org"
>

    <bug>
          <bug_id>1122</bug_id>
          
          <creation_ts>2022-05-06 12:13:27 +0000</creation_ts>
          <short_desc>Not enable the TLB_RANGE,The performance of 502.gcc_r will reduce 20% in SPEC-CPU2017</short_desc>
          <delta_ts>2022-05-06 17:09:40 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Anolis OS</classification>
          <product>Anolis OS 8</product>
          <component>kernel - anck-5.10</component>
          <version>8.2</version>
          <rep_platform>aarch64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CONFIRMED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3-Medium</priority>
          <bug_severity>S3-normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="feitian200603">feitian200603</reporter>
          <assigned_to name="feitian200603">feitian200603</assigned_to>
          
          
          <qa_contact name="shuming">qingming.su</qa_contact>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>3509</commentid>
    <comment_count>0</comment_count>
    <who name="feitian200603">feitian200603</who>
    <bug_when>2022-05-06 12:13:27 +0000</bug_when>
    <thetext>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 &gt; /proc/sys/vm/drop_caches
     ulimit -s unlimited
     echo always &gt;  /sys/kernel/mm/transparent_hugepage/enabled
     echo 1 &gt; /proc/sys/vm/swappiness
     echo 1 &gt; /proc/sys/vm/zone_reclaim_mode
     echo 20 &gt; /proc/sys/vm/dirty_ratio
     echo 10 &gt; /proc/sys/vm/dirty_background_ratio
     echo 1 &gt; /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:</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3544</commentid>
    <comment_count>1</comment_count>
    <who name="Shiloong">shile.zhang</who>
    <bug_when>2022-05-06 17:09:11 +0000</bug_when>
    <thetext>*** Bug 1124 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3546</commentid>
    <comment_count>2</comment_count>
    <who name="Shiloong">shile.zhang</who>
    <bug_when>2022-05-06 17:09:40 +0000</bug_when>
    <thetext>*** Bug 1123 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>