[gem5-users] 答复: Supplementing experiment Data///答复: How to make scheduleInstStop() function to stop simulate at an accurate expected instructions counts for one core KVM/ATOMIC/O3 CPU simulation?

2020-08-09 Thread Liyichao via gem5-users
Hi All:
 Are there any experts who can help me to explain the features of the 
scheduleInstStop() function?


李翼超(Charlie)

华为技术有限公司 Huawei Technologies Co., Ltd.
[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!

发件人: Liyichao
发送时间: 2020年8月7日 12:12
收件人: 'gem5-users@gem5.org' 
主题: Supplementing experiment Data///答复: How to make scheduleInstStop() function 
to stop simulate at an accurate expected instructions counts for one core 
KVM/ATOMIC/O3 CPU simulation?



Hi All:


I use the scheduleInstStop() function to let the m5.simulate() stop at a point 
instrutions as my ROI start, for example: 1(100M) instrutions, but when 
the simulate stop, I print the instructions from last start simulation to the 
end, the count always exceed my specified instrutions(100M), like 100423403, 
about 0.4% exceeded. If I set to 137579444 in O3 cpu, when simulation stop, 
totalInsts() print 121264766,about 12% instruction number error.



The more detail the CPU is or the less expected instruction we set to 
scheduleInstStop() , the more error rate the result is.

Can the scheduleInstStop() function to stop simulate at an accurate instrutions 
count?



Below is my experiment data:

SP means each ROI segment number

WT means weight each SP

KVM FF INSTS means expected fastforward instrutions  set to shceduleInstsStop 
in KVM CPU and KVM FF INSTS REAL means actural instructions when simulation 
stopped.

Thes same as DETAIL WARMUP INSTS and DETAIL WARMUP INSTS REAL, ROI START REAL

DETAIL SIM INSTS REAL means actural instructions when simulation stopped.



SP


ROI START INSTS


ROI INSTS


WT


GEM5 CPU time(s)


KVM FF INSTS REAL


KVM FF INSTS


KVM FF ERROR


DETAIL WARMUP INSTS REAL


DETAIL WARMUP INSTS


DETAIL WARMUP ERROR  RATE


ROI START REAL


ROI START ERROR


ROI START ERROR RATE


DETAIL SIM INSTS REAL


ROI ERROR


ROI ERROR RATE


253


10178192697


7961215


0.0831


235.37


10168198363


10168192697


0.56%


11769096


1000


17.69%


10179967459


1774762


0.01744%


9765795


1804580


22.67%


489


14993215251


28956263


0.0807


480.69


14985233613


14983215251


0.013471%


12670891


1000


26.71%


14997904504


4689253


0.03128%


31630388


2674125


9.24%


745


20961513684


7952028


0.0831


366.16


20951519275


20951513684


0.27%


10930605


1000


9.31%


20962449880


936196


0.00447%


9196796


1244768


15.65%


747


20985389544


7913399


0.0831


368.9


20976588014


20975389544


0.005714%


13508368


1000


35.08%


20990096382


4706838


0.02243%


8729639


816240


10.31%


1535


36747557633


71903019


0.0489


852.12


36737563780


36737557633


0.17%


13915280


1000


39.15%


36751479060


3921427


0.01067%


76114831


4211812


5.86%


1576


39801482033


72581100


0.0489


986.37


39791620332


39791482033


0.000348%


13898089


1000


38.98%


39805518421


4036388


0.01014%


76712281


4131181


5.69%


1630


41397216547


7969257


0.0831


576.6


41387222182


41387216547


0.14%


14108619


1000


41.09%


41401330801


4114254


0.00994%


12213236


4243979


53.25%


1678


41875758899


7945777


0.0831


578.1


41871459914


41865758899


0.013617%


14214926


1000


42.15%


41885674840


9915941


0.02368%


12108036


4162259


52.38%


1884


46344067975


28927369


0.0807


845.82


46334073500


46334067975


0.12%


11344254


1000


13.44%


46345417754


1349779


0.00291%


31850077


2922708


10.10%


1919


47342402174


28905117


0.0807


805.16


47332436420


47332402174


0.72%


12802266


1000


28.02%


47345238686


2836512


0.00599%


31773934


2868817


9.92%


1926


47542229035


28886691


0.0807


787.53


47534320414


47532229035


0.004400%


12709174


1000


27.09%


47547029588


4800553


0.01010%


31731786


2845095


9.85%


1940


47914392807


28885810


0.0807


761.57


47904398647


47904392807


0.12%


12542440


1000


25.42%


47916941087


2548280


0.00532%


31799566


2913756


10.09%


2756


62457880622


7895848


0.0831


504.08


62447886490


62447880622


0.09%


13888058


1000


38.88%


62461774548



[gem5-users] Re: gem5 aborted when increase mem-size in FS mode

2020-08-09 Thread syf1997--- via gem5-users

A few seconds after I login using m5term. But when I changed a new kernel 
vmlinux-5.2.4 it could work except got stuck at training section. I checked it 
out by mounting the disk image on my own machine and I saw the warning :cannot 
found /proc/cpuinfo. I think it is beacause I use AomaticCPU. But when I used 
TimingSimpleCPU and /proc/cpuinfo did exit, my program still got stuck. Could 
you give some suggestions? Thank you

Best regards,

Yifan Song

> -原始邮件-
> 发件人: "Ciro Santilli via gem5-users" 
> 发送时间: 2020-08-06 15:11:57 (星期四)
> 收件人: "gem5 users mailing list" 
> 抄送: syf1...@mail.ustc.edu.cn, "Ciro Santilli" 
> 主题: [gem5-users] Re: gem5 aborted when increase mem-size in FS mode
> 
> Does it crash immediately? If so, provide to us and look at the
> backtrace to try and determine which allocation fails. If that doesn't
> help, you can also try techniques mentioned at:
> https://stackoverflow.com/questions/6261201/how-to-find-memory-leak-in-a-c-code-project/57877190#57877190
> 
> On Thu, Aug 6, 2020 at 2:44 AM syf1997--- via gem5-users
>  wrote:
> >
> > Hi Jason,
> >
> > Thank you for your reply. I am using the latest version 20.3. I have just 
> > double-checked the memory usage info of gem5. It showed that memory usage 
> > is about 10GB, while I run gem5 on a 128GB memory server. I don't think my 
> > system ran out of memory. I am confused about it.
> >
> > Yifan Song
> >
> > -原始邮件-
> > 发件人:"Jason Lowe-Power via gem5-users" 
> > 发送时间:2020-08-06 01:13:59 (星期四)
> > 收件人: "gem5 users mailing list" 
> > 抄送: syf1...@mail.ustc.edu.cn, "Jason Lowe-Power" 
> > 主题: [gem5-users] Re: gem5 aborted when increase mem-size in FS mode
> >
> > Hi Yifan,
> >
> > Is it possible that your system is running out of memory? It's possible 
> > this is a gem5 bug (what version are you using?), but I haven't heard of 
> > this issue before.
> >
> > Cheers,
> > Jason
> >
> > On Wed, Aug 5, 2020 at 1:34 AM syf1997--- via gem5-users 
> >  wrote:
> >>
> >> Hi all,
> >>
> >> I am trying to run my own program (training a tiny vgg16 CNN model using 
> >> CPU) in FS mode. I have created my own disk image and installed python3 
> >> and pytorch on it. My command line is as bellow:
> >>
> >> build/X86/gem5.opt configs/example/fs.py --kernel=binary/vmlinux-5.2.4 
> >> --disk-image=disk/linux-x86.img -n 2 --caches --l2cache --mem-size=4GB
> >>
> >> If I set the mem-size small, like 512MB, 1GB, 2GB, my program could run 
> >> normally but would fail due to the small memory. On the other hand, if I 
> >> increase the mem-size, my program could not run and gem5 aborted (core 
> >> dump). Could anyone give me some advice? Thanks.
> >>
> >> Best regards,
> >>
> >> Yifan
> >>
> >> ___
> >> 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
> ___
> 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