Hey Charlie,

I don't think there's any bug here. The debug out file is not one
instruction per line. Certain operations may be over two lines, for
example. We don't expect the number of lines in this file to equal the
number of simulated instructions so you can't compare these side-by-side.

Kind regards,
Bobby


Dr. Bobby R. Bruce
Room 2235,
Kemper Hall, UC Davis
Davis,
CA, 95616

web: https://www.bobbybruce.net


On Wed, Apr 7, 2021 at 7:32 PM Liyichao via gem5-users <gem5-users@gem5.org>
wrote:

> Hi all:
>
>          When I use se mode to execute an ELF under O3 type with Exec
> debug flags, the sim_insts in stats.txt is different with the lines of Exec
> debug output file.
>
>      Sim_ints is 94189557, but Exec debug output file has 472187507 lines.
> I have test the same ELF on my aarch64 server with “perf stat -e r11 -e
> r8:k -e r8:u ./redis_0327”, the r8:u is userspace instrution counts, the
> result is:
>
> 1,514,293,116 r11
> 820,116,727 r8:k
> 429,128,196 r8:u
>
> Is the count of sim_insts was wrong?It seems that the sim_insts is about a
> fifth less than the actual count of instructions.
>
>
>
>
>
> My gem5 versiont is 20.0.0.3, my command is
>
> “./build/ARM/gem5.opt --debug-flags=Exec
> --debug-file=./new_o3_debug_out.txt configs/example/se.py
> --cpu-type=DerivO3CPU --cpu-clock=2.6GHz --sys-clock=2.6GHz --caches
> --l2cache --mem-size=8GB
> --nvmain-config=../../nvmain_public/Config/template_DRAM_2933.config -c
> ./redis_0327”
>
>
>
> Stats.txt:
>
> final_tick 144144768845 # Number of ticks from beginning of simulation
> (restored from checkpoints and never reset)
> host_inst_rate 18845 # Simulator instruction rate (inst/s)
> host_mem_usage 8562280 # Number of bytes of host memory used
> host_op_rate 24546 # Simulator op (including micro ops) rate (op/s)
> host_seconds 4998.02 # Real time elapsed on the host
> host_tick_rate 28840391 # Simulator tick rate (ticks/s)
> sim_freq 1000000000000 # Frequency of simulated ticks
> sim_insts 94189557 # Number of instructions simulated
> sim_ops 122680518 # Number of ops (including micro ops) simulated
> sim_seconds 0.144145 # Number of seconds simulated
> sim_ticks 144144768845 # Number of ticks simulated
>
>
>
> Exec debug output file:
>
> cat m5out/new_o3_debug_out.txt |wc -l
> 472187507
>
>
> ------------------------------
>
> 李翼超(Charlie)
>
>
>
> 华为技术有限公司 Huawei Technologies Co., Ltd.
>
> [image: Company_logo]
>
> 部门:计算系统与组件开发部 [云与计算BG]
>
> 手 机:15858232899
> 电子邮件:liyic...@huawei.com
>
> 地址:中国(China)-杭州(Hangzhou)-滨江区江淑路360号华为杭州研发中心Z4# [3-A06]
> ------------------------------
>
>  本邮件及其附件含有华为公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁
> 止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中
> 的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件!
> This e-mail and its attachments contain confidential information from
> HUAWEI, which
> is intended only for the person or entity whose address is listed above.
> Any use of the
> information contained herein in any way (including, but not limited to,
> total or partial
> disclosure, reproduction, or dissemination) by persons other than the
> intended
> recipient(s) is prohibited. If you receive this e-mail in error, please
> notify the sender by
> phone or email immediately and delete it!
>
>
> _______________________________________________
> gem5-users mailing list -- gem5-users@gem5.org
> To unsubscribe send an email to gem5-users-le...@gem5.org
> %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to