Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

2020-01-28 Thread Dimitrios Chasapis
What happens if you connect to the m5term and simply try to run a 
command, such as ls or echo there?  I don't really have experience with 
x86 and gem5 since I am using the ARM ISA.



On 1/27/20 10:11 PM, ABD ALRHMAN ABO ALKHEEL wrote:

Hi Giacomo and Dimitrios,

please have a look into the screenshots bellow. It's not able to run 
the rcS script. any help would be appreciated.


test.rcS is:
#!/bin/sh
echo "Starting sfw test..."

/sbin/m5 resetstats

echo "HI"

/sbin/m5 dumpstats

echo "finished sfw test, exiting..."

/sbin/m5 exit








*From:* Giacomo Travaglini 
*Sent:* Tuesday, January 21, 2020 3:06 PM
*To:* ABD ALRHMAN ABO ALKHEEL ; Dimitrios 
Chasapis ; gem5 users mailing list 

*Subject:* Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode
#!/bin/sh
cd /home/ubuntu
/sbin/m5 resetstats
echo "HI"
/sbin/m5 dumpstats
/sbin/m5 exit

I don't know what is going on. As I have already explained in previous 
message, it is better to run the commands interactively the first time 
instead of using a script. So that it possible to understand where you 
are failing.

My questions are anyway:

1) Why aren't you logging in as root? (just type root in the username)
2) If you really need to access with a non root user, you should sudo 
EVERY m5 call. Are you still executing the script as it is?
I can see how by failing to execute m5 pseudo instructions you are 
neither dumping stats nor exiting simulation
(m5 exit won't be recognized and Linux will keep going waiting for 
another command from the terminal).


Kind Regards

Giacomo

*From:* gem5-users  on behalf of ABD 
ALRHMAN ABO ALKHEEL 

*Sent:* 21 January 2020 03:53
*To:* Dimitrios Chasapis ; gem5 users mailing list 


*Subject:* Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode
Hi All,

I got this (ubuntu@ubuntu:~$) when i run ( cat 
m5out/system.pc.com_1.device). The problem is not able to load the 
script. That the reason why it is running forever. Any help please.


the command:
./build/X86/gem5.fast ./configs/example/fs.py -I 100 
--kernel=/home/abdkhail/linux_new/vmlinux 
--disk-image=/home/abdkhail/ubuntu16.img 
--script=/home/abdkhail/new_gem5/gem5/configs/boot/benchmark/test.rcS 
 --checkpoint-restore=3 --mem-size=3GB --num-cpus=4 --cpu-clock=2GHz 
--caches --l2_size=2MB --l1i_size=32kB --l1d_size=32kB


The rcS:

#!/bin/sh
cd /home/ubuntu
/sbin/m5 resetstats
echo "HI"
/sbin/m5 dumpstats
/sbin/m5 exit

Best




*From:* Dimitrios Chasapis 
*Sent:* Monday, January 20, 2020 10:57 PM
*To:* ABD ALRHMAN ABO ALKHEEL ; gem5 users 
mailing list 

*Subject:* Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

That's strange, I've never run into this problem, but my setup is 
quite different.  I don't get though why it didn't finish execution, 
since it failed at the first m5 command.  Didn't it return when it 
reached that point?



On 1/20/2020 10:42 PM, ABD ALRHMAN ABO ALKHEEL wrote:

Hi Dimitrios,

I have run the rcS script below and it is running forever because 
/sbin/m5 command needs sudo to execute it. When the image is booted i 
accessed the image by user name (ubuntu and pass) and try to run 
/sbin/m5 exit I got permission denied and it worked when i used sudo 
/sbin/m5 exit. May this is the problem. Any help would be appreciated.





Best Regards




*From:* Dimitrios Chasapis  <mailto:dchas...@bsc.es>
*Sent:* Monday, January 20, 2020 11:41 AM
*To:* ABD ALRHMAN ABO ALKHEEL  
<mailto:abdkeel...@hotmail.com>; gem5 users mailing list 
 <mailto:gem5-users@gem5.org>

*Subject:* Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode
Output seems fine, but if I understand correctly, it never finishes
execution?  It may take days to finish and personally I have never used
this --maxinsts so I don't really know if and how it works.  Have you
been able to run gcc with test input? Does it finish properly?



http://bsc.es/disclaimer



WARNING / LEGAL TEXT: This message is intended only for the use of the 
individual or entity to which it is addressed and may contain 
information which is privileged, confidential, proprietary, or exempt 
from disclosure under applicable law. If you are not the intended 
recipient or the person responsible for delivering the message to the 
intended recipient, you are strictly prohibited from disclosing, 
distributing, copying, or in any way using this message. If you have 
received this communication in error, please notify the sender and 
destroy and delete any copies you may have received.


http://www.bsc.es/disclaimer
IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended 

Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

2020-01-27 Thread ABD ALRHMAN ABO ALKHEEL
Hi Giacomo and Dimitrios,

please have a look into the screenshots bellow. It's not able to run the rcS 
script. any help would be appreciated.

test.rcS is:
#!/bin/sh
echo "Starting sfw test..."

/sbin/m5 resetstats

echo "HI"

/sbin/m5 dumpstats

echo "finished sfw test, exiting..."

/sbin/m5 exit



[cid:1348dcfa-0f12-4abe-9eba-652e864ae723]

[cid:a1f00426-3c9e-4033-8e49-b5c1c2a68a54]


From: Giacomo Travaglini 
Sent: Tuesday, January 21, 2020 3:06 PM
To: ABD ALRHMAN ABO ALKHEEL ; Dimitrios Chasapis 
; gem5 users mailing list 
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

#!/bin/sh
cd /home/ubuntu
/sbin/m5 resetstats
echo "HI"
/sbin/m5 dumpstats
/sbin/m5 exit

I don't know what is going on. As I have already explained in previous message, 
it is better to run the commands interactively the first time instead of using 
a script. So that it possible to understand where you are failing.
My questions are anyway:

1) Why aren't you logging in as root? (just type root in the username)
2) If you really need to access with a non root user, you should sudo EVERY m5 
call. Are you still executing the script as it is?
I can see how by failing to execute m5 pseudo instructions you are neither 
dumping stats nor exiting simulation
(m5 exit won't be recognized and Linux will keep going waiting for another 
command from the terminal).

Kind Regards

Giacomo

From: gem5-users  on behalf of ABD ALRHMAN ABO 
ALKHEEL 
Sent: 21 January 2020 03:53
To: Dimitrios Chasapis ; gem5 users mailing list 

Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

Hi All,

I got this (ubuntu@ubuntu:~$) when i run ( cat m5out/system.pc.com_1.device). 
The problem is not able to load the script. That the reason why it is running 
forever. Any help please.

the command:
./build/X86/gem5.fast ./configs/example/fs.py -I 100 
--kernel=/home/abdkhail/linux_new/vmlinux 
--disk-image=/home/abdkhail/ubuntu16.img 
--script=/home/abdkhail/new_gem5/gem5/configs/boot/benchmark/test.rcS  
--checkpoint-restore=3 --mem-size=3GB --num-cpus=4 --cpu-clock=2GHz --caches 
--l2_size=2MB --l1i_size=32kB --l1d_size=32kB

The rcS:

#!/bin/sh
cd /home/ubuntu
/sbin/m5 resetstats
echo "HI"
/sbin/m5 dumpstats
/sbin/m5 exit

Best




From: Dimitrios Chasapis 
Sent: Monday, January 20, 2020 10:57 PM
To: ABD ALRHMAN ABO ALKHEEL ; gem5 users mailing list 

Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode


That's strange, I've never run into this problem, but my setup is quite 
different.  I don't get though why it didn't finish execution, since it failed 
at the first m5 command.  Didn't it return when it reached that point?


On 1/20/2020 10:42 PM, ABD ALRHMAN ABO ALKHEEL wrote:
Hi Dimitrios,

I have run the rcS script below and it is running forever because /sbin/m5 
command needs sudo to execute it. When the image is booted i accessed the image 
by user name (ubuntu and pass) and try to run /sbin/m5 exit I got permission 
denied and it worked when i used sudo /sbin/m5 exit. May this is the problem. 
Any help would be appreciated.




Best Regards




From: Dimitrios Chasapis <mailto:dchas...@bsc.es>
Sent: Monday, January 20, 2020 11:41 AM
To: ABD ALRHMAN ABO ALKHEEL 
<mailto:abdkeel...@hotmail.com>; gem5 users mailing 
list <mailto:gem5-users@gem5.org>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

Output seems fine, but if I understand correctly, it never finishes
execution?  It may take days to finish and personally I have never used
this --maxinsts so I don't really know if and how it works.  Have you
been able to run gcc with test input? Does it finish properly?



http://bsc.es/disclaimer


WARNING / LEGAL TEXT: This message is intended only for the use of the 
individual or entity to which it is addressed and may contain information which 
is privileged, confidential, proprietary, or exempt from disclosure under 
applicable law. If you are not the intended recipient or the person responsible 
for delivering the message to the intended recipient, you are strictly 
prohibited from disclosing, distributing, copying, or in any way using this 
message. If you have received this communication in error, please notify the 
sender and destroy and delete any copies you may have received.

http://www.bsc.es/disclaimer
IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium. Thank you. IMPORTANT NOTICE: The contents of this email and any 
attachments are confidential and may also be privileged. If you are not the 
intended recipient, please notify the send

Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

2020-01-25 Thread ABD ALRHMAN ABO ALKHEEL
Hi All,


I have run the command and I logged in root and i have run /sbin/m5 checkpoint 
to create a checkpoint but i didn't find any checkpoint in the m5out. Any help 
would be appreciated.

./configs/example/fs.py --kernel=/home/abdkhail/linux4.19/vmlinux 
--disk-image=/home/abdkhail/ubuntu-new.img --mem-size=3GB --num-cpus=4 
--cpu-clock=2GHz --caches --l2_size=2MB --l1i_size=32kB --l1d_size=32kB

[cid:b3389ca8-a183-499d-bd0b-51931766340f]



From: gem5-users  on behalf of ABD ALRHMAN ABO 
ALKHEEL 
Sent: Sunday, January 26, 2020 4:36 AM
To: Giacomo Travaglini ; Dimitrios Chasapis 
; gem5 users mailing list 
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

Hi All,

I have run the command and I logged in root and i have run /sbin/m5 checkpoint 
to create a checkpoint but i didn't find any checkpoint in the m5out. Any help 
would be appreciated.

./configs/example/fs.py --kernel=/home/abdkhail/linux4.19/vmlinux 
--disk-image=/home/abdkhail/ubuntu-new.img --mem-size=3GB --num-cpus=4 
--cpu-clock=2GHz --caches --l2_size=2MB --l1i_size=32kB --l1d_size=32kB



From: gem5-users  on behalf of ABD ALRHMAN ABO 
ALKHEEL 
Sent: Saturday, January 25, 2020 11:53 PM
To: Giacomo Travaglini ; Dimitrios Chasapis 
; gem5 users mailing list 
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

Hi All,

I have run the command and I logged in root and i have run /sbin/m5 checkpoint 
to create a checkpoint but i didn't find any checkpoint in the m5out. Any help 
would be appreciated.

./configs/example/fs.py --kernel=/home/abdkhail/linux4.19/vmlinux 
--disk-image=/home/abdkhail/ubuntu-new.img --mem-size=3GB --num-cpus=4 
--cpu-clock=2GHz --caches --l2_size=2MB --l1i_size=32kB --l1d_size=32kB


From: Giacomo Travaglini 
Sent: Tuesday, January 21, 2020 3:06 PM
To: ABD ALRHMAN ABO ALKHEEL ; Dimitrios Chasapis 
; gem5 users mailing list 
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

#!/bin/sh
cd /home/ubuntu
/sbin/m5 resetstats
echo "HI"
/sbin/m5 dumpstats
/sbin/m5 exit

I don't know what is going on. As I have already explained in previous message, 
it is better to run the commands interactively the first time instead of using 
a script. So that it possible to understand where you are failing.
My questions are anyway:

1) Why aren't you logging in as root? (just type root in the username)
2) If you really need to access with a non root user, you should sudo EVERY m5 
call. Are you still executing the script as it is?
I can see how by failing to execute m5 pseudo instructions you are neither 
dumping stats nor exiting simulation
(m5 exit won't be recognized and Linux will keep going waiting for another 
command from the terminal).

Kind Regards

Giacomo

From: gem5-users  on behalf of ABD ALRHMAN ABO 
ALKHEEL 
Sent: 21 January 2020 03:53
To: Dimitrios Chasapis ; gem5 users mailing list 

Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

Hi All,

I got this (ubuntu@ubuntu:~$) when i run ( cat m5out/system.pc.com_1.device). 
The problem is not able to load the script. That the reason why it is running 
forever. Any help please.

the command:
./build/X86/gem5.fast ./configs/example/fs.py -I 100 
--kernel=/home/abdkhail/linux_new/vmlinux 
--disk-image=/home/abdkhail/ubuntu16.img 
--script=/home/abdkhail/new_gem5/gem5/configs/boot/benchmark/test.rcS  
--checkpoint-restore=3 --mem-size=3GB --num-cpus=4 --cpu-clock=2GHz --caches 
--l2_size=2MB --l1i_size=32kB --l1d_size=32kB

The rcS:

#!/bin/sh
cd /home/ubuntu
/sbin/m5 resetstats
echo "HI"
/sbin/m5 dumpstats
/sbin/m5 exit

Best




From: Dimitrios Chasapis 
Sent: Monday, January 20, 2020 10:57 PM
To: ABD ALRHMAN ABO ALKHEEL ; gem5 users mailing list 

Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode


That's strange, I've never run into this problem, but my setup is quite 
different.  I don't get though why it didn't finish execution, since it failed 
at the first m5 command.  Didn't it return when it reached that point?


On 1/20/2020 10:42 PM, ABD ALRHMAN ABO ALKHEEL wrote:
Hi Dimitrios,

I have run the rcS script below and it is running forever because /sbin/m5 
command needs sudo to execute it. When the image is booted i accessed the image 
by user name (ubuntu and pass) and try to run /sbin/m5 exit I got permission 
denied and it worked when i used sudo /sbin/m5 exit. May this is the problem. 
Any help would be appreciated.




Best Regards




From: Dimitrios Chasapis <mailto:dchas...@bsc.es>
Sent: Monday, January 20, 2020 11:41 AM
To: ABD ALRHMAN ABO ALKHEEL 
<mailto:abdkeel...@hotmail.com>; gem5 users mailing 
list <mailto:gem5-users@gem5.org>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

Output seems fine, but if I understand correctly, it never

Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

2020-01-25 Thread ABD ALRHMAN ABO ALKHEEL
Hi All,

I have run the command and I logged in root and i have run /sbin/m5 checkpoint 
to create a checkpoint but i didn't find any checkpoint in the m5out. Any help 
would be appreciated.

./configs/example/fs.py --kernel=/home/abdkhail/linux4.19/vmlinux 
--disk-image=/home/abdkhail/ubuntu-new.img --mem-size=3GB --num-cpus=4 
--cpu-clock=2GHz --caches --l2_size=2MB --l1i_size=32kB --l1d_size=32kB



From: gem5-users  on behalf of ABD ALRHMAN ABO 
ALKHEEL 
Sent: Saturday, January 25, 2020 11:53 PM
To: Giacomo Travaglini ; Dimitrios Chasapis 
; gem5 users mailing list 
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

Hi All,

I have run the command and I logged in root and i have run /sbin/m5 checkpoint 
to create a checkpoint but i didn't find any checkpoint in the m5out. Any help 
would be appreciated.

./configs/example/fs.py --kernel=/home/abdkhail/linux4.19/vmlinux 
--disk-image=/home/abdkhail/ubuntu-new.img --mem-size=3GB --num-cpus=4 
--cpu-clock=2GHz --caches --l2_size=2MB --l1i_size=32kB --l1d_size=32kB


From: Giacomo Travaglini 
Sent: Tuesday, January 21, 2020 3:06 PM
To: ABD ALRHMAN ABO ALKHEEL ; Dimitrios Chasapis 
; gem5 users mailing list 
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

#!/bin/sh
cd /home/ubuntu
/sbin/m5 resetstats
echo "HI"
/sbin/m5 dumpstats
/sbin/m5 exit

I don't know what is going on. As I have already explained in previous message, 
it is better to run the commands interactively the first time instead of using 
a script. So that it possible to understand where you are failing.
My questions are anyway:

1) Why aren't you logging in as root? (just type root in the username)
2) If you really need to access with a non root user, you should sudo EVERY m5 
call. Are you still executing the script as it is?
I can see how by failing to execute m5 pseudo instructions you are neither 
dumping stats nor exiting simulation
(m5 exit won't be recognized and Linux will keep going waiting for another 
command from the terminal).

Kind Regards

Giacomo

From: gem5-users  on behalf of ABD ALRHMAN ABO 
ALKHEEL 
Sent: 21 January 2020 03:53
To: Dimitrios Chasapis ; gem5 users mailing list 

Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

Hi All,

I got this (ubuntu@ubuntu:~$) when i run ( cat m5out/system.pc.com_1.device). 
The problem is not able to load the script. That the reason why it is running 
forever. Any help please.

the command:
./build/X86/gem5.fast ./configs/example/fs.py -I 100 
--kernel=/home/abdkhail/linux_new/vmlinux 
--disk-image=/home/abdkhail/ubuntu16.img 
--script=/home/abdkhail/new_gem5/gem5/configs/boot/benchmark/test.rcS  
--checkpoint-restore=3 --mem-size=3GB --num-cpus=4 --cpu-clock=2GHz --caches 
--l2_size=2MB --l1i_size=32kB --l1d_size=32kB

The rcS:

#!/bin/sh
cd /home/ubuntu
/sbin/m5 resetstats
echo "HI"
/sbin/m5 dumpstats
/sbin/m5 exit

Best




From: Dimitrios Chasapis 
Sent: Monday, January 20, 2020 10:57 PM
To: ABD ALRHMAN ABO ALKHEEL ; gem5 users mailing list 

Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode


That's strange, I've never run into this problem, but my setup is quite 
different.  I don't get though why it didn't finish execution, since it failed 
at the first m5 command.  Didn't it return when it reached that point?


On 1/20/2020 10:42 PM, ABD ALRHMAN ABO ALKHEEL wrote:
Hi Dimitrios,

I have run the rcS script below and it is running forever because /sbin/m5 
command needs sudo to execute it. When the image is booted i accessed the image 
by user name (ubuntu and pass) and try to run /sbin/m5 exit I got permission 
denied and it worked when i used sudo /sbin/m5 exit. May this is the problem. 
Any help would be appreciated.




Best Regards




From: Dimitrios Chasapis <mailto:dchas...@bsc.es>
Sent: Monday, January 20, 2020 11:41 AM
To: ABD ALRHMAN ABO ALKHEEL 
<mailto:abdkeel...@hotmail.com>; gem5 users mailing 
list <mailto:gem5-users@gem5.org>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

Output seems fine, but if I understand correctly, it never finishes
execution?  It may take days to finish and personally I have never used
this --maxinsts so I don't really know if and how it works.  Have you
been able to run gcc with test input? Does it finish properly?



http://bsc.es/disclaimer


WARNING / LEGAL TEXT: This message is intended only for the use of the 
individual or entity to which it is addressed and may contain information which 
is privileged, confidential, proprietary, or exempt from disclosure under 
applicable law. If you are not the intended recipient or the person responsible 
for delivering the message to the intended recipient, you are strictly 
prohibited from disclosing, distributing, copying, or in any way using this 
message. If you hav

Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

2020-01-25 Thread ABD ALRHMAN ABO ALKHEEL
Hi All,

I have run the command and I logged in root and i have run /sbin/m5 checkpoint 
to create a checkpoint but i didn't find any checkpoint in the m5out. Any help 
would be appreciated.

./configs/example/fs.py --kernel=/home/abdkhail/linux4.19/vmlinux 
--disk-image=/home/abdkhail/ubuntu-new.img --mem-size=3GB --num-cpus=4 
--cpu-clock=2GHz --caches --l2_size=2MB --l1i_size=32kB --l1d_size=32kB


From: Giacomo Travaglini 
Sent: Tuesday, January 21, 2020 3:06 PM
To: ABD ALRHMAN ABO ALKHEEL ; Dimitrios Chasapis 
; gem5 users mailing list 
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

#!/bin/sh
cd /home/ubuntu
/sbin/m5 resetstats
echo "HI"
/sbin/m5 dumpstats
/sbin/m5 exit

I don't know what is going on. As I have already explained in previous message, 
it is better to run the commands interactively the first time instead of using 
a script. So that it possible to understand where you are failing.
My questions are anyway:

1) Why aren't you logging in as root? (just type root in the username)
2) If you really need to access with a non root user, you should sudo EVERY m5 
call. Are you still executing the script as it is?
I can see how by failing to execute m5 pseudo instructions you are neither 
dumping stats nor exiting simulation
(m5 exit won't be recognized and Linux will keep going waiting for another 
command from the terminal).

Kind Regards

Giacomo

From: gem5-users  on behalf of ABD ALRHMAN ABO 
ALKHEEL 
Sent: 21 January 2020 03:53
To: Dimitrios Chasapis ; gem5 users mailing list 

Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

Hi All,

I got this (ubuntu@ubuntu:~$) when i run ( cat m5out/system.pc.com_1.device). 
The problem is not able to load the script. That the reason why it is running 
forever. Any help please.

the command:
./build/X86/gem5.fast ./configs/example/fs.py -I 100 
--kernel=/home/abdkhail/linux_new/vmlinux 
--disk-image=/home/abdkhail/ubuntu16.img 
--script=/home/abdkhail/new_gem5/gem5/configs/boot/benchmark/test.rcS  
--checkpoint-restore=3 --mem-size=3GB --num-cpus=4 --cpu-clock=2GHz --caches 
--l2_size=2MB --l1i_size=32kB --l1d_size=32kB

The rcS:

#!/bin/sh
cd /home/ubuntu
/sbin/m5 resetstats
echo "HI"
/sbin/m5 dumpstats
/sbin/m5 exit

Best




From: Dimitrios Chasapis 
Sent: Monday, January 20, 2020 10:57 PM
To: ABD ALRHMAN ABO ALKHEEL ; gem5 users mailing list 

Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode


That's strange, I've never run into this problem, but my setup is quite 
different.  I don't get though why it didn't finish execution, since it failed 
at the first m5 command.  Didn't it return when it reached that point?


On 1/20/2020 10:42 PM, ABD ALRHMAN ABO ALKHEEL wrote:
Hi Dimitrios,

I have run the rcS script below and it is running forever because /sbin/m5 
command needs sudo to execute it. When the image is booted i accessed the image 
by user name (ubuntu and pass) and try to run /sbin/m5 exit I got permission 
denied and it worked when i used sudo /sbin/m5 exit. May this is the problem. 
Any help would be appreciated.




Best Regards




From: Dimitrios Chasapis <mailto:dchas...@bsc.es>
Sent: Monday, January 20, 2020 11:41 AM
To: ABD ALRHMAN ABO ALKHEEL 
<mailto:abdkeel...@hotmail.com>; gem5 users mailing 
list <mailto:gem5-users@gem5.org>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

Output seems fine, but if I understand correctly, it never finishes
execution?  It may take days to finish and personally I have never used
this --maxinsts so I don't really know if and how it works.  Have you
been able to run gcc with test input? Does it finish properly?



http://bsc.es/disclaimer


WARNING / LEGAL TEXT: This message is intended only for the use of the 
individual or entity to which it is addressed and may contain information which 
is privileged, confidential, proprietary, or exempt from disclosure under 
applicable law. If you are not the intended recipient or the person responsible 
for delivering the message to the intended recipient, you are strictly 
prohibited from disclosing, distributing, copying, or in any way using this 
message. If you have received this communication in error, please notify the 
sender and destroy and delete any copies you may have received.

http://www.bsc.es/disclaimer
IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium. Thank you. IMPORTANT NOTICE: The contents of this email and any 
attachments are confidential and may also be privileged. If you are not the 
intended recipient, please notify the sender immediately an

Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

2020-01-21 Thread Giacomo Travaglini
#!/bin/sh
cd /home/ubuntu
/sbin/m5 resetstats
echo "HI"
/sbin/m5 dumpstats
/sbin/m5 exit

I don't know what is going on. As I have already explained in previous message, 
it is better to run the commands interactively the first time instead of using 
a script. So that it possible to understand where you are failing.
My questions are anyway:

1) Why aren't you logging in as root? (just type root in the username)
2) If you really need to access with a non root user, you should sudo EVERY m5 
call. Are you still executing the script as it is?
I can see how by failing to execute m5 pseudo instructions you are neither 
dumping stats nor exiting simulation
(m5 exit won't be recognized and Linux will keep going waiting for another 
command from the terminal).

Kind Regards

Giacomo

From: gem5-users  on behalf of ABD ALRHMAN ABO 
ALKHEEL 
Sent: 21 January 2020 03:53
To: Dimitrios Chasapis ; gem5 users mailing list 

Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

Hi All,

I got this (ubuntu@ubuntu:~$) when i run ( cat m5out/system.pc.com_1.device). 
The problem is not able to load the script. That the reason why it is running 
forever. Any help please.

the command:
./build/X86/gem5.fast ./configs/example/fs.py -I 100 
--kernel=/home/abdkhail/linux_new/vmlinux 
--disk-image=/home/abdkhail/ubuntu16.img 
--script=/home/abdkhail/new_gem5/gem5/configs/boot/benchmark/test.rcS  
--checkpoint-restore=3 --mem-size=3GB --num-cpus=4 --cpu-clock=2GHz --caches 
--l2_size=2MB --l1i_size=32kB --l1d_size=32kB

The rcS:

#!/bin/sh
cd /home/ubuntu
/sbin/m5 resetstats
echo "HI"
/sbin/m5 dumpstats
/sbin/m5 exit

Best




From: Dimitrios Chasapis 
Sent: Monday, January 20, 2020 10:57 PM
To: ABD ALRHMAN ABO ALKHEEL ; gem5 users mailing list 

Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode


That's strange, I've never run into this problem, but my setup is quite 
different.  I don't get though why it didn't finish execution, since it failed 
at the first m5 command.  Didn't it return when it reached that point?


On 1/20/2020 10:42 PM, ABD ALRHMAN ABO ALKHEEL wrote:
Hi Dimitrios,

I have run the rcS script below and it is running forever because /sbin/m5 
command needs sudo to execute it. When the image is booted i accessed the image 
by user name (ubuntu and pass) and try to run /sbin/m5 exit I got permission 
denied and it worked when i used sudo /sbin/m5 exit. May this is the problem. 
Any help would be appreciated.




Best Regards




From: Dimitrios Chasapis <mailto:dchas...@bsc.es>
Sent: Monday, January 20, 2020 11:41 AM
To: ABD ALRHMAN ABO ALKHEEL 
<mailto:abdkeel...@hotmail.com>; gem5 users mailing 
list <mailto:gem5-users@gem5.org>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

Output seems fine, but if I understand correctly, it never finishes
execution?  It may take days to finish and personally I have never used
this --maxinsts so I don't really know if and how it works.  Have you
been able to run gcc with test input? Does it finish properly?



http://bsc.es/disclaimer


WARNING / LEGAL TEXT: This message is intended only for the use of the 
individual or entity to which it is addressed and may contain information which 
is privileged, confidential, proprietary, or exempt from disclosure under 
applicable law. If you are not the intended recipient or the person responsible 
for delivering the message to the intended recipient, you are strictly 
prohibited from disclosing, distributing, copying, or in any way using this 
message. If you have received this communication in error, please notify the 
sender and destroy and delete any copies you may have received.

http://www.bsc.es/disclaimer
IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium. Thank you. IMPORTANT NOTICE: The contents of this email and any 
attachments are confidential and may also be privileged. If you are not the 
intended recipient, please notify the sender immediately and do not disclose 
the contents to any other person, use it for any purpose, or store or copy the 
information in any medium. Thank you.
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

2020-01-21 Thread ABD ALRHMAN ABO ALKHEEL
Please help me.

From: gem5-users  on behalf of ABD ALRHMAN ABO 
ALKHEEL 
Sent: Tuesday, January 21, 2020 3:53:03 AM
To: Dimitrios Chasapis ; gem5 users mailing list 

Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

Hi All,

I got this (ubuntu@ubuntu:~$) when i run ( cat m5out/system.pc.com_1.device). 
The problem is not able to load the script. That the reason why it is running 
forever. Any help please.

the command:
./build/X86/gem5.fast ./configs/example/fs.py -I 100 
--kernel=/home/abdkhail/linux_new/vmlinux 
--disk-image=/home/abdkhail/ubuntu16.img 
--script=/home/abdkhail/new_gem5/gem5/configs/boot/benchmark/test.rcS  
--checkpoint-restore=3 --mem-size=3GB --num-cpus=4 --cpu-clock=2GHz --caches 
--l2_size=2MB --l1i_size=32kB --l1d_size=32kB

The rcS:

#!/bin/sh
cd /home/ubuntu
/sbin/m5 resetstats
echo "HI"
/sbin/m5 dumpstats
/sbin/m5 exit

Best




From: Dimitrios Chasapis 
Sent: Monday, January 20, 2020 10:57 PM
To: ABD ALRHMAN ABO ALKHEEL ; gem5 users mailing list 

Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode


That's strange, I've never run into this problem, but my setup is quite 
different.  I don't get though why it didn't finish execution, since it failed 
at the first m5 command.  Didn't it return when it reached that point?


On 1/20/2020 10:42 PM, ABD ALRHMAN ABO ALKHEEL wrote:
Hi Dimitrios,

I have run the rcS script below and it is running forever because /sbin/m5 
command needs sudo to execute it. When the image is booted i accessed the image 
by user name (ubuntu and pass) and try to run /sbin/m5 exit I got permission 
denied and it worked when i used sudo /sbin/m5 exit. May this is the problem. 
Any help would be appreciated.




Best Regards




From: Dimitrios Chasapis <mailto:dchas...@bsc.es>
Sent: Monday, January 20, 2020 11:41 AM
To: ABD ALRHMAN ABO ALKHEEL 
<mailto:abdkeel...@hotmail.com>; gem5 users mailing 
list <mailto:gem5-users@gem5.org>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

Output seems fine, but if I understand correctly, it never finishes
execution?  It may take days to finish and personally I have never used
this --maxinsts so I don't really know if and how it works.  Have you
been able to run gcc with test input? Does it finish properly?



http://bsc.es/disclaimer


WARNING / LEGAL TEXT: This message is intended only for the use of the 
individual or entity to which it is addressed and may contain information which 
is privileged, confidential, proprietary, or exempt from disclosure under 
applicable law. If you are not the intended recipient or the person responsible 
for delivering the message to the intended recipient, you are strictly 
prohibited from disclosing, distributing, copying, or in any way using this 
message. If you have received this communication in error, please notify the 
sender and destroy and delete any copies you may have received.

http://www.bsc.es/disclaimer
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

2020-01-20 Thread ABD ALRHMAN ABO ALKHEEL
Hi All,

I got this (ubuntu@ubuntu:~$) when i run ( cat m5out/system.pc.com_1.device). 
The problem is not able to load the script. That the reason why it is running 
forever. Any help please.

the command:
./build/X86/gem5.fast ./configs/example/fs.py -I 100 
--kernel=/home/abdkhail/linux_new/vmlinux 
--disk-image=/home/abdkhail/ubuntu16.img 
--script=/home/abdkhail/new_gem5/gem5/configs/boot/benchmark/test.rcS  
--checkpoint-restore=3 --mem-size=3GB --num-cpus=4 --cpu-clock=2GHz --caches 
--l2_size=2MB --l1i_size=32kB --l1d_size=32kB

The rcS:

#!/bin/sh
cd /home/ubuntu
/sbin/m5 resetstats
echo "HI"
/sbin/m5 dumpstats
/sbin/m5 exit

Best




From: Dimitrios Chasapis 
Sent: Monday, January 20, 2020 10:57 PM
To: ABD ALRHMAN ABO ALKHEEL ; gem5 users mailing list 

Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode


That's strange, I've never run into this problem, but my setup is quite 
different.  I don't get though why it didn't finish execution, since it failed 
at the first m5 command.  Didn't it return when it reached that point?


On 1/20/2020 10:42 PM, ABD ALRHMAN ABO ALKHEEL wrote:
Hi Dimitrios,

I have run the rcS script below and it is running forever because /sbin/m5 
command needs sudo to execute it. When the image is booted i accessed the image 
by user name (ubuntu and pass) and try to run /sbin/m5 exit I got permission 
denied and it worked when i used sudo /sbin/m5 exit. May this is the problem. 
Any help would be appreciated.




Best Regards




From: Dimitrios Chasapis <mailto:dchas...@bsc.es>
Sent: Monday, January 20, 2020 11:41 AM
To: ABD ALRHMAN ABO ALKHEEL 
<mailto:abdkeel...@hotmail.com>; gem5 users mailing 
list <mailto:gem5-users@gem5.org>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

Output seems fine, but if I understand correctly, it never finishes
execution?  It may take days to finish and personally I have never used
this --maxinsts so I don't really know if and how it works.  Have you
been able to run gcc with test input? Does it finish properly?



http://bsc.es/disclaimer


WARNING / LEGAL TEXT: This message is intended only for the use of the 
individual or entity to which it is addressed and may contain information which 
is privileged, confidential, proprietary, or exempt from disclosure under 
applicable law. If you are not the intended recipient or the person responsible 
for delivering the message to the intended recipient, you are strictly 
prohibited from disclosing, distributing, copying, or in any way using this 
message. If you have received this communication in error, please notify the 
sender and destroy and delete any copies you may have received.

http://www.bsc.es/disclaimer
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

2020-01-20 Thread ABD ALRHMAN ABO ALKHEEL
Hi All,

I have run the rcS script below and it is running forever because /sbin/m5 
command needs sudo to execute it. When the image is booted i accessed the image 
by user name (ubuntu and pass) and try to run /sbin/m5 exit I got permission 
denied and it worked when i used sudo /sbin/m5 exit. May this is the problem. 
Any help would be appreciated.

The command is:
./build/X86/gem5.fast ./configs/example/fs.py  
--kernel=/home/abdkhail/linux_new/vmlinux 
--disk-image=/home/abdkhail/ubuntu16.img 
--script=./home/abdkhail/new_gem5/gem5/configs/boot/benchmark/test.rcS  
--checkpoint-restore=3 --mem-size=3GB --num-cpus=4 --cpu-clock=2GHz --caches 
--l2_size=2MB --l1i_size=32kB --l1d_size=32kB




The test.rcS is :

#!/bin/sh
cd /home/ubuntu
/sbin/m5 resetstats
echo "HI"
/sbin/m5 dumpstats
/sbin/m5 exit

The screen output:

Global frequency set at 1 ticks per second
warn: DRAM device capacity (8192 Mbytes) does not match the address range 
assigned (4096 Mbytes)
info: kernel located at: /home/abdkhail/linux_new/vmlinux
system.pc.com_1.device: Listening for connections on port 3457
0: system.remote_gdb: listening for remote gdb on port 7004
0: system.remote_gdb: listening for remote gdb on port 7005
0: system.remote_gdb: listening for remote gdb on port 7006
0: system.remote_gdb: listening for remote gdb on port 7007
warn: Reading current count from inactive timer.
 REAL SIMULATION 
info: Entering event queue @ 37603790877000.  Starting simulation...
warn: instruction 'verw_Mw_or_Rv' unimplemented
warn: instruction 'fwait' unimplemented
hack: Assuming logical destinations are 1 << id.
warn: ClockedObject: Already in the requested power state, request ignored
warn: instruction 'verw_Mw_or_Rv' unimplemented
warn: Don't know what interrupt to clear for console.
warn: instruction 'verw_Mw_or_Rv' unimplemented


Best Regards



From: Dimitrios Chasapis 
Sent: Monday, January 20, 2020 10:57 PM
To: ABD ALRHMAN ABO ALKHEEL ; gem5 users mailing list 

Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode


That's strange, I've never run into this problem, but my setup is quite 
different.  I don't get though why it didn't finish execution, since it failed 
at the first m5 command.  Didn't it return when it reached that point?


On 1/20/2020 10:42 PM, ABD ALRHMAN ABO ALKHEEL wrote:
Hi Dimitrios,

I have run the rcS script below and it is running forever because /sbin/m5 
command needs sudo to execute it. When the image is booted i accessed the image 
by user name (ubuntu and pass) and try to run /sbin/m5 exit I got permission 
denied and it worked when i used sudo /sbin/m5 exit. May this is the problem. 
Any help would be appreciated.


The rcS:

#!/bin/sh
cd /home/ubuntu
/sbin/m5 resetstats
echo "HI"
/sbin/m5 dumpstats
/sbin/m5 exit

Best Regards




From: Dimitrios Chasapis <mailto:dchas...@bsc.es>
Sent: Monday, January 20, 2020 11:41 AM
To: ABD ALRHMAN ABO ALKHEEL 
<mailto:abdkeel...@hotmail.com>; gem5 users mailing 
list <mailto:gem5-users@gem5.org>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

Output seems fine, but if I understand correctly, it never finishes
execution?  It may take days to finish and personally I have never used
this --maxinsts so I don't really know if and how it works.  Have you
been able to run gcc with test input? Does it finish properly?



http://bsc.es/disclaimer


WARNING / LEGAL TEXT: This message is intended only for the use of the 
individual or entity to which it is addressed and may contain information which 
is privileged, confidential, proprietary, or exempt from disclosure under 
applicable law. If you are not the intended recipient or the person responsible 
for delivering the message to the intended recipient, you are strictly 
prohibited from disclosing, distributing, copying, or in any way using this 
message. If you have received this communication in error, please notify the 
sender and destroy and delete any copies you may have received.

http://www.bsc.es/disclaimer
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

2020-01-20 Thread Dimitrios Chasapis
That's strange, I've never run into this problem, but my setup is quite 
different.  I don't get though why it didn't finish execution, since it 
failed at the first m5 command.  Didn't it return when it reached that 
point?



On 1/20/2020 10:42 PM, ABD ALRHMAN ABO ALKHEEL wrote:

Hi Dimitrios,

I have run the rcS script below and it is running forever because 
/sbin/m5 command needs sudo to execute it. When the image is booted i 
accessed the image by user name (ubuntu and pass) and try to run 
/sbin/m5 exit I got permission denied and it worked when i used sudo 
/sbin/m5 exit. May this is the problem. Any help would be appreciated.



The rcS:

#!/bin/sh
cd /home/ubuntu
/sbin/m5 resetstats
echo "HI"
/sbin/m5 dumpstats
/sbin/m5 exit

Best Regards




*From:* Dimitrios Chasapis 
*Sent:* Monday, January 20, 2020 11:41 AM
*To:* ABD ALRHMAN ABO ALKHEEL ; gem5 users 
mailing list 

*Subject:* Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode
Output seems fine, but if I understand correctly, it never finishes
execution?  It may take days to finish and personally I have never used
this --maxinsts so I don't really know if and how it works.  Have you
been able to run gcc with test input? Does it finish properly?



http://bsc.es/disclaimer



http://bsc.es/disclaimer___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

2020-01-20 Thread ABD ALRHMAN ABO ALKHEEL
Hi Dimitrios,

I have run the rcS script below and it is running forever because /sbin/m5 
command needs sudo to execute it. When the image is booted i accessed the image 
by user name (ubuntu and pass) and try to run /sbin/m5 exit I got permission 
denied and it worked when i used sudo /sbin/m5 exit. May this is the problem. 
Any help would be appreciated.


The rcS:

#!/bin/sh
cd /home/ubuntu
/sbin/m5 resetstats
echo "HI"
/sbin/m5 dumpstats
/sbin/m5 exit

Best Regards




From: Dimitrios Chasapis 
Sent: Monday, January 20, 2020 11:41 AM
To: ABD ALRHMAN ABO ALKHEEL ; gem5 users mailing list 

Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

Output seems fine, but if I understand correctly, it never finishes
execution?  It may take days to finish and personally I have never used
this --maxinsts so I don't really know if and how it works.  Have you
been able to run gcc with test input? Does it finish properly?



http://bsc.es/disclaimer
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

2020-01-20 Thread Dimitrios Chasapis
Output seems fine, but if I understand correctly, it never finishes 
execution?  It may take days to finish and personally I have never used 
this --maxinsts so I don't really know if and how it works.  Have you 
been able to run gcc with test input? Does it finish properly?




http://bsc.es/disclaimer
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

2020-01-19 Thread ABD ALRHMAN ABO ALKHEEL

Hi Giacomo,

I have run the command and the gcc.rcS script below but the script doesn't stop 
at 1000 instructions. Any help would be appreciated.

The command is:
./build/X86/gem5.fast ./configs/example/fs.py --maxinsts=1000 
--kernel=/home/abdkhail/linux_new/vmlinux 
--disk-image=/home/abdkhail/ubuntu16.img 
--script=configs/boot/benchmark/gcc.rcS --mem-size=3GB --num-cpus=4 
--cpu-clock=2GHz --caches --l2_size=2MB --l1i_size=32kB --l1d_size=32kB 
--checkpoint-restore=3

The gcc.rcS is:

cd 
/home/ubuntu/cpu/benchspec/CPU2006/403.gcc/run/run_base_ref_amd64-m64-gcc42-nn.
/sbin/m5 resetstats
./gcc_base.amd64-m64-gcc42-nn 166.i -o 166.s
/sbin/m5 dumpstats
#echo "Done :D"
/sbin/m5 exit

This also what i got on the output screen:

Global frequency set at 1 ticks per second
warn: DRAM device capacity (8192 Mbytes) does not match the address range 
assigned (4096 Mbytes)
info: kernel located at: /home/abdkhail/linux_new/vmlinux
system.pc.com_1.device: Listening for connections on port 3456
0: system.remote_gdb: listening for remote gdb on port 7000
0: system.remote_gdb: listening for remote gdb on port 7001
0: system.remote_gdb: listening for remote gdb on port 7002
0: system.remote_gdb: listening for remote gdb on port 7003
warn: Reading current count from inactive timer.
 REAL SIMULATION 
info: Entering event queue @ 93465239037500.  Starting simulation...


Best Regards



From: Giacomo Travaglini 
Sent: Friday, January 17, 2020 7:32 PM
To: ABD ALRHMAN ABO ALKHEEL ; Dimitrios Chasapis 
; gem5 users mailing list 
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

If by chance simulation is stuck while generating a checkpoint, I suggest you 
to use GDB to understand where it is stuck.
Let us know your findings.

Giacomo

From: gem5-users  on behalf of Giacomo Travaglini 

Sent: 17 January 2020 19:29
To: ABD ALRHMAN ABO ALKHEEL ; Dimitrios Chasapis 
; gem5 users mailing list 
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

I don't know what is going on and what the boot script is doing.
For me the easy way to create a checkpoint is to

1) $cd util/term
2) $make

Now you have m5term compiled.
>From another terminal run your simulation (without bootscritpt) and see which 
>is the local port (usually 3456)
>From the other terminal do

$./m5term localhost 3456

Now you have a terminal attached to your guest system: once you boot Linux, 
just type on this terminal:

$/sbin/m5 checkpoint

This will create a checkpoint.
If you now want to exit simulation, type on the same terminal

$/sbin/m5 exit

Regards

Giacomo



From: gem5-users  on behalf of ABD ALRHMAN ABO 
ALKHEEL 
Sent: 17 January 2020 19:18
To: Dimitrios Chasapis ; gem5 users mailing list 

Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

PLEASE HELP ME.

I have run the hack_back_ckpt.rcS to create checkpoint and is still running 15 
hours ago. Could you please tell me how much time does it take to finish?

Best Regards



From: gem5-users  on behalf of ABD ALRHMAN ABO 
ALKHEEL 
Sent: Friday, January 17, 2020 6:33 PM
To: Dimitrios Chasapis ; gem5 users mailing list 

Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

Hi All,

I have run the hack_back_ckpt.rcS to create checkpoint and is still running 15 
hours ago. Could you please tell me how much time does it take to finish?

Best Regards


From: Dimitrios Chasapis 
Sent: Thursday, January 16, 2020 1:05 PM
To: ABD ALRHMAN ABO ALKHEEL ; gem5 users mailing list 

Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode


I guess using -l 10 is not enough to reach the benchmark itself and you 
finish before bootup, that's why you observe the same behavior.  To create the 
checkpoint after boot, you need to run the script found in

configs/boot/hack_back_ckpt.rcS.  Run it like this:

gem5.opt \

--outdir=a/directory/to/store/boot_ckpt \
configs/example/fs.py \
--kernel=...\
--disk-image=... \
--script=/configs/boot/hack_back_ckpt.rcS \
--cpu-type=AtomicSimpleCPU --num-cpus=1 --mem-size=...


You should have your checkpoint in the director you set with outdir.


To run from the checkpoint you need to use the following with your fs.py:

--checkpoint-dir=a/directory/to/store/boot_ckpt -r 1


On 1/16/20 4:21 AM, ABD ALRHMAN ABO ALKHEEL wrote:
Hi Dimitrios,

I run this command on Gem5 FS mode for different benchmarks and i got the same 
results for all benchmarks. So should i create checkpoint after the image is 
booted and if so how to create it?

./build/X86/gem5.fast ./configs/example/fs.py -I 1 
--kernel=/home/abdkhail/linux4.19/vmlinux 
--disk-image=/home/abdkhail/ubuntu16.img 
--script=configs/boot/benchmark/gcc.rcS --mem-size=3GB --num-cpus=

Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

2020-01-19 Thread ABD ALRHMAN ABO ALKHEEL
This also what i got on the output screen:

Global frequency set at 1 ticks per second
warn: DRAM device capacity (8192 Mbytes) does not match the address range 
assigned (4096 Mbytes)
info: kernel located at: /home/abdkhail/linux_new/vmlinux
system.pc.com_1.device: Listening for connections on port 3456
0: system.remote_gdb: listening for remote gdb on port 7000
0: system.remote_gdb: listening for remote gdb on port 7001
0: system.remote_gdb: listening for remote gdb on port 7002
0: system.remote_gdb: listening for remote gdb on port 7003
warn: Reading current count from inactive timer.
 REAL SIMULATION 
info: Entering event queue @ 93465239037500.  Starting simulation...




From: gem5-users  on behalf of ABD ALRHMAN ABO 
ALKHEEL 
Sent: Sunday, January 19, 2020 9:29 PM
To: Dimitrios Chasapis ; gem5 users mailing list 

Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

Hi Dimitrios,

I have run the command and the gcc.rcS script below but the script doesn't stop 
at 1000 instructions. Any help would be appreciated.

The command is:
./build/X86/gem5.fast ./configs/example/fs.py --maxinsts=1000 
--kernel=/home/abdkhail/linux_new/vmlinux 
--disk-image=/home/abdkhail/ubuntu16.img 
--script=configs/boot/benchmark/gcc.rcS --mem-size=3GB --num-cpus=4 
--cpu-clock=2GHz --caches --l2_size=2MB --l1i_size=32kB --l1d_size=32kB 
--checkpoint-restore=3

The gcc.rcS is:

cd 
/home/ubuntu/cpu/benchspec/CPU2006/403.gcc/run/run_base_ref_amd64-m64-gcc42-nn.
/sbin/m5 resetstats
./gcc_base.amd64-m64-gcc42-nn 166.i -o 166.s
/sbin/m5 dumpstats
#echo "Done :D"
/sbin/m5 exit

Best Regards



From: Dimitrios Chasapis 
Sent: Friday, January 17, 2020 8:57 PM
To: ABD ALRHMAN ABO ALKHEEL ; gem5 users mailing list 

Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode


No, it should take a couple of hours tops (for me it was like half an hour I 
think).  Try using gdb as Giacomo suggested and also maybe share the command 
you used to run gem5.  You can also run gem5 and attach a terminal (look at the 
wiki of how to do this).  This will give you interactive access to gem5, while 
running, and maybe you can see this way where it gets stuck, if that's the case.


On 1/17/2020 8:32 PM, Giacomo Travaglini wrote:
If by chance simulation is stuck while generating a checkpoint, I suggest you 
to use GDB to understand where it is stuck.
Let us know your findings.

Giacomo

From: gem5-users 
<mailto:gem5-users-boun...@gem5.org> on behalf of 
Giacomo Travaglini 
<mailto:giacomo.travagl...@arm.com>
Sent: 17 January 2020 19:29
To: ABD ALRHMAN ABO ALKHEEL 
<mailto:abdkeel...@hotmail.com>; Dimitrios Chasapis 
<mailto:dchas...@bsc.es>; gem5 users mailing list 
<mailto:gem5-users@gem5.ortNo,Ithinkitshouldbedoneinacoupleofhourstops.g>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

I don't know what is going on and what the boot script is doing.
For me the easy way to create a checkpoint is to

1) $cd util/term
2) $make

Now you have m5term compiled.
>From another terminal run your simulation (without bootscritpt) and see which 
>is the local port (usually 3456)
>From the other terminal do

$./m5term localhost 3456

Now you have a terminal attached to your guest system: once you boot Linux, 
just type on this terminal:

$/sbin/m5 checkpoint

This will create a checkpoint.
If you now want to exit simulation, type on the same terminal

$/sbin/m5 exit

Regards

Giacomo



From: gem5-users 
<mailto:gem5-users-boun...@gem5.org> on behalf of 
ABD ALRHMAN ABO ALKHEEL <mailto:abdkeel...@hotmail.com>
Sent: 17 January 2020 19:18
To: Dimitrios Chasapis <mailto:dchas...@bsc.es>; gem5 users 
mailing list <mailto:gem5-users@gem5.org>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

PLEASE HELP ME.

I have run the hack_back_ckpt.rcS to create checkpoint and is still running 15 
hours ago. Could you please tell me how much time does it take to finish?

Best Regards



From: gem5-users 
<mailto:gem5-users-boun...@gem5.org> on behalf of 
ABD ALRHMAN ABO ALKHEEL <mailto:abdkeel...@hotmail.com>
Sent: Friday, January 17, 2020 6:33 PM
To: Dimitrios Chasapis <mailto:dchas...@bsc.es>; gem5 users 
mailing list <mailto:gem5-users@gem5.org>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

Hi All,

I have run the hack_back_ckpt.rcS to create checkpoint and is still running 15 
hours ago. Could you please tell me how much time does it take to finish?

Best Regards


From: Dimitrios Chasapis <mailto:dchas...@bsc.es>
Sent: Thursday, January 16, 2020 1:05 PM
To: ABD ALRHMAN ABO ALKHEEL 
<mailto:abdkeel...@hotmail.com>; gem5 users mailing 
list <mailto:gem5-users@gem5.org>
Su

Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

2020-01-19 Thread ABD ALRHMAN ABO ALKHEEL
Hi Dimitrios,

I have run the command and the gcc.rcS script below but the script doesn't stop 
at 1000 instructions. Any help would be appreciated.

The command is:
./build/X86/gem5.fast ./configs/example/fs.py --maxinsts=1000 
--kernel=/home/abdkhail/linux_new/vmlinux 
--disk-image=/home/abdkhail/ubuntu16.img 
--script=configs/boot/benchmark/gcc.rcS --mem-size=3GB --num-cpus=4 
--cpu-clock=2GHz --caches --l2_size=2MB --l1i_size=32kB --l1d_size=32kB 
--checkpoint-restore=3

The gcc.rcS is:

cd 
/home/ubuntu/cpu/benchspec/CPU2006/403.gcc/run/run_base_ref_amd64-m64-gcc42-nn.
/sbin/m5 resetstats
./gcc_base.amd64-m64-gcc42-nn 166.i -o 166.s
/sbin/m5 dumpstats
#echo "Done :D"
/sbin/m5 exit

Best Regards



From: Dimitrios Chasapis 
Sent: Friday, January 17, 2020 8:57 PM
To: ABD ALRHMAN ABO ALKHEEL ; gem5 users mailing list 

Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode


No, it should take a couple of hours tops (for me it was like half an hour I 
think).  Try using gdb as Giacomo suggested and also maybe share the command 
you used to run gem5.  You can also run gem5 and attach a terminal (look at the 
wiki of how to do this).  This will give you interactive access to gem5, while 
running, and maybe you can see this way where it gets stuck, if that's the case.


On 1/17/2020 8:32 PM, Giacomo Travaglini wrote:
If by chance simulation is stuck while generating a checkpoint, I suggest you 
to use GDB to understand where it is stuck.
Let us know your findings.

Giacomo

From: gem5-users 
<mailto:gem5-users-boun...@gem5.org> on behalf of 
Giacomo Travaglini 
<mailto:giacomo.travagl...@arm.com>
Sent: 17 January 2020 19:29
To: ABD ALRHMAN ABO ALKHEEL 
<mailto:abdkeel...@hotmail.com>; Dimitrios Chasapis 
<mailto:dchas...@bsc.es>; gem5 users mailing list 
<mailto:gem5-users@gem5.ortNo,Ithinkitshouldbedoneinacoupleofhourstops.g>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

I don't know what is going on and what the boot script is doing.
For me the easy way to create a checkpoint is to

1) $cd util/term
2) $make

Now you have m5term compiled.
>From another terminal run your simulation (without bootscritpt) and see which 
>is the local port (usually 3456)
>From the other terminal do

$./m5term localhost 3456

Now you have a terminal attached to your guest system: once you boot Linux, 
just type on this terminal:

$/sbin/m5 checkpoint

This will create a checkpoint.
If you now want to exit simulation, type on the same terminal

$/sbin/m5 exit

Regards

Giacomo



From: gem5-users 
<mailto:gem5-users-boun...@gem5.org> on behalf of 
ABD ALRHMAN ABO ALKHEEL <mailto:abdkeel...@hotmail.com>
Sent: 17 January 2020 19:18
To: Dimitrios Chasapis <mailto:dchas...@bsc.es>; gem5 users 
mailing list <mailto:gem5-users@gem5.org>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

PLEASE HELP ME.

I have run the hack_back_ckpt.rcS to create checkpoint and is still running 15 
hours ago. Could you please tell me how much time does it take to finish?

Best Regards



From: gem5-users 
<mailto:gem5-users-boun...@gem5.org> on behalf of 
ABD ALRHMAN ABO ALKHEEL <mailto:abdkeel...@hotmail.com>
Sent: Friday, January 17, 2020 6:33 PM
To: Dimitrios Chasapis <mailto:dchas...@bsc.es>; gem5 users 
mailing list <mailto:gem5-users@gem5.org>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

Hi All,

I have run the hack_back_ckpt.rcS to create checkpoint and is still running 15 
hours ago. Could you please tell me how much time does it take to finish?

Best Regards


From: Dimitrios Chasapis <mailto:dchas...@bsc.es>
Sent: Thursday, January 16, 2020 1:05 PM
To: ABD ALRHMAN ABO ALKHEEL 
<mailto:abdkeel...@hotmail.com>; gem5 users mailing 
list <mailto:gem5-users@gem5.org>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode


I guess using -l 10 is not enough to reach the benchmark itself and you 
finish before bootup, that's why you observe the same behavior.  To create the 
checkpoint after boot, you need to run the script found in

configs/boot/hack_back_ckpt.rcS.  Run it like this:

gem5.opt \

--outdir=a/directory/to/store/boot_ckpt \
configs/example/fs.py \
--kernel=...\
--disk-image=... \
--script=/configs/boot/hack_back_ckpt.rcS \
--cpu-type=AtomicSimpleCPU --num-cpus=1 --mem-size=...


You should have your checkpoint in the director you set with outdir.


To run from the checkpoint you need to use the following with your fs.py:

--checkpoint-dir=a/directory/to/store/boot_ckpt -r 1


On 1/16/20 4:21 AM, ABD ALRHMAN ABO ALKHEEL wrote:
Hi Dimitrios,

I run this command on Gem5 FS mode for different 

Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

2020-01-17 Thread Dimitrios Chasapis
No, it should take a couple of hours tops (for me it was like half an 
hour I think).  Try using gdb as Giacomo suggested and also maybe share 
the command you used to run gem5.  You can also run gem5 and attach a 
terminal (look at the wiki of how to do this).  This will give you 
interactive access to gem5, while running, and maybe you can see this 
way where it gets stuck, if that's the case.



On 1/17/2020 8:32 PM, Giacomo Travaglini wrote:
If by chance simulation is stuck while generating a checkpoint, I 
suggest you to use GDB to understand where it is stuck.

Let us know your findings.

Giacomo

*From:* gem5-users  on behalf of Giacomo 
Travaglini 

*Sent:* 17 January 2020 19:29
*To:* ABD ALRHMAN ABO ALKHEEL ; Dimitrios 
Chasapis ; gem5 users mailing list 
tops.g>

*Subject:* Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode
I don't know what is going on and what the boot script is doing.
For me the easy way to create a checkpoint is to

1) $cd util/term
2) $make

Now you have m5term compiled.
From another terminal run your simulation (without bootscritpt) and 
see which is the local port (usually 3456)

From the other terminal do

$./m5term localhost 3456

Now you have a terminal attached to your guest system: once you boot 
Linux, just type on this terminal:


$/sbin/m5 checkpoint

This will create a checkpoint.
If you now want to exit simulation, type on the same terminal

$/sbin/m5 exit

Regards

Giacomo



*From:* gem5-users  on behalf of ABD 
ALRHMAN ABO ALKHEEL 

*Sent:* 17 January 2020 19:18
*To:* Dimitrios Chasapis ; gem5 users mailing list 


*Subject:* Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode
PLEASE HELP ME.

I have run the hack_back_ckpt.rcS to create checkpoint and is still 
running 15 hours ago. Could you please tell me how much time does it 
take to finish?


Best Regards



*From:* gem5-users  on behalf of ABD 
ALRHMAN ABO ALKHEEL 

*Sent:* Friday, January 17, 2020 6:33 PM
*To:* Dimitrios Chasapis ; gem5 users mailing list 


*Subject:* Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode
Hi All,

I have run the hack_back_ckpt.rcS to create checkpoint and is still 
running 15 hours ago. Could you please tell me how much time does it 
take to finish?


Best Regards


*From:* Dimitrios Chasapis 
*Sent:* Thursday, January 16, 2020 1:05 PM
*To:* ABD ALRHMAN ABO ALKHEEL ; gem5 users 
mailing list 

*Subject:* Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

I guess using -l 10 is not enough to reach the benchmark 
itself and you finish before bootup, that's why you observe the same 
behavior.  To create the checkpoint after boot, you need to run the 
script found in


configs/boot/hack_back_ckpt.rcS. Run it like this:

gem5.opt \

--outdir=a/directory/to/store/boot_ckpt \
    configs/example/fs.py \
    --kernel=...\
    --disk-image=... \
--script=/configs/boot/hack_back_ckpt.rcS \
    --cpu-type=AtomicSimpleCPU --num-cpus=1 --mem-size=...


You should have your checkpoint in the director you set with outdir.


To run from the checkpoint you need to use the following with your fs.py:

--checkpoint-dir=a/directory/to/store/boot_ckpt -r 1


On 1/16/20 4:21 AM, ABD ALRHMAN ABO ALKHEEL wrote:

Hi Dimitrios,

I run this command on Gem5 FS mode for different benchmarks and i got 
the same results for all benchmarks. So should i create checkpoint 
after the image is booted and if so how to create it?


./build/X86/gem5.fast ./configs/example/fs.py -I 1 
--kernel=/home/abdkhail/linux4.19/vmlinux 
--disk-image=/home/abdkhail/ubuntu16.img 
--script=configs/boot/benchmark/gcc.rcS --mem-size=3GB --num-cpus=4 
--cpu-clock=2GHz --caches --l2_size=2MB --l1i_size=32kB --l1d_size=32kB


Any help would be appreciated.

Best Regards


*From:* Dimitrios Chasapis  <mailto:dchas...@bsc.es>
*Sent:* Tuesday, January 14, 2020 3:22 PM
*To:* ABD ALRHMAN ABO ALKHEEL  
<mailto:abdkeel...@hotmail.com>; gem5 users mailing list 
 <mailto:gem5-users@gem5.org>

*Subject:* Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

Can you share the output from stdout and stderr?  Also have you 
checked system.terminal? There may be some clues of the error there 
as well if the commands in the rcs script are not correct or you have 
any missing dependencies in your disk image, for whatever reason.


You can also try to first generate simpoints etc for a simple 
program, something like a simple loop in C, so that we can figure out 
if the problem is in the SPEC or gem5.



On 1/14/20 3:20 PM, ABD ALRHMAN ABO ALKHEEL w

Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

2020-01-17 Thread Giacomo Travaglini
If by chance simulation is stuck while generating a checkpoint, I suggest you 
to use GDB to understand where it is stuck.
Let us know your findings.

Giacomo

From: gem5-users  on behalf of Giacomo Travaglini 

Sent: 17 January 2020 19:29
To: ABD ALRHMAN ABO ALKHEEL ; Dimitrios Chasapis 
; gem5 users mailing list 
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

I don't know what is going on and what the boot script is doing.
For me the easy way to create a checkpoint is to

1) $cd util/term
2) $make

Now you have m5term compiled.
From another terminal run your simulation (without bootscritpt) and see which 
is the local port (usually 3456)
From the other terminal do

$./m5term localhost 3456

Now you have a terminal attached to your guest system: once you boot Linux, 
just type on this terminal:

$/sbin/m5 checkpoint

This will create a checkpoint.
If you now want to exit simulation, type on the same terminal

$/sbin/m5 exit

Regards

Giacomo



From: gem5-users  on behalf of ABD ALRHMAN ABO 
ALKHEEL 
Sent: 17 January 2020 19:18
To: Dimitrios Chasapis ; gem5 users mailing list 

Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

PLEASE HELP ME.

I have run the hack_back_ckpt.rcS to create checkpoint and is still running 15 
hours ago. Could you please tell me how much time does it take to finish?

Best Regards



From: gem5-users  on behalf of ABD ALRHMAN ABO 
ALKHEEL 
Sent: Friday, January 17, 2020 6:33 PM
To: Dimitrios Chasapis ; gem5 users mailing list 

Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

Hi All,

I have run the hack_back_ckpt.rcS to create checkpoint and is still running 15 
hours ago. Could you please tell me how much time does it take to finish?

Best Regards


From: Dimitrios Chasapis 
Sent: Thursday, January 16, 2020 1:05 PM
To: ABD ALRHMAN ABO ALKHEEL ; gem5 users mailing list 

Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode


I guess using -l 10 is not enough to reach the benchmark itself and you 
finish before bootup, that's why you observe the same behavior.  To create the 
checkpoint after boot, you need to run the script found in

configs/boot/hack_back_ckpt.rcS.  Run it like this:

gem5.opt \

--outdir=a/directory/to/store/boot_ckpt \
configs/example/fs.py \
--kernel=...\
--disk-image=... \
--script=/configs/boot/hack_back_ckpt.rcS \
--cpu-type=AtomicSimpleCPU --num-cpus=1 --mem-size=...


You should have your checkpoint in the director you set with outdir.


To run from the checkpoint you need to use the following with your fs.py:

--checkpoint-dir=a/directory/to/store/boot_ckpt -r 1


On 1/16/20 4:21 AM, ABD ALRHMAN ABO ALKHEEL wrote:
Hi Dimitrios,

I run this command on Gem5 FS mode for different benchmarks and i got the same 
results for all benchmarks. So should i create checkpoint after the image is 
booted and if so how to create it?

./build/X86/gem5.fast ./configs/example/fs.py -I 1 
--kernel=/home/abdkhail/linux4.19/vmlinux 
--disk-image=/home/abdkhail/ubuntu16.img 
--script=configs/boot/benchmark/gcc.rcS --mem-size=3GB --num-cpus=4 
--cpu-clock=2GHz --caches --l2_size=2MB --l1i_size=32kB --l1d_size=32kB

Any help would be appreciated.

Best Regards


From: Dimitrios Chasapis <mailto:dchas...@bsc.es>
Sent: Tuesday, January 14, 2020 3:22 PM
To: ABD ALRHMAN ABO ALKHEEL 
<mailto:abdkeel...@hotmail.com>; gem5 users mailing 
list <mailto:gem5-users@gem5.org>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode


Can you share the output from stdout and stderr?  Also have you checked 
system.terminal? There may be some clues of the error there as well if the 
commands in the rcs script are not correct or you have any missing dependencies 
in your disk image, for whatever reason.

You can also try to first generate simpoints etc for a simple program, 
something like a simple loop in C, so that we can figure out if the problem is 
in the SPEC or gem5.


On 1/14/20 3:20 PM, ABD ALRHMAN ABO ALKHEEL wrote:
Please help me.

From: gem5-users 
<mailto:gem5-users-boun...@gem5.org> on behalf of 
ABD ALRHMAN ABO ALKHEEL <mailto:abdkeel...@hotmail.com>
Sent: Tuesday, January 14, 2020 2:13:26 AM
To: Dimitrios Chasapis <mailto:dchas...@bsc.es>; gem5 users 
mailing list <mailto:gem5-users@gem5.org>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

Hi All,

I run this command on GEM5 and got nothing in the stats.txt

./build/X86/gem5.fast ./configs/example/fs.py --simpoint-interval 1000 
--mem-size=3GB --kernel=/home/abdkhail/linux4.19/vmlinux 
--disk-image=/home/abdkhail/ubuntu16.img --script=configs/boot/benchmark.rcS

benchmark.rcS

#!/bin/sh

cd 
/home/

Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

2020-01-17 Thread Giacomo Travaglini
I don't know what is going on and what the boot script is doing.
For me the easy way to create a checkpoint is to

1) $cd util/term
2) $make

Now you have m5term compiled.
From another terminal run your simulation (without bootscritpt) and see which 
is the local port (usually 3456)
From the other terminal do

$./m5term localhost 3456

Now you have a terminal attached to your guest system: once you boot Linux, 
just type on this terminal:

$/sbin/m5 checkpoint

This will create a checkpoint.
If you now want to exit simulation, type on the same terminal

$/sbin/m5 exit

Regards

Giacomo



From: gem5-users  on behalf of ABD ALRHMAN ABO 
ALKHEEL 
Sent: 17 January 2020 19:18
To: Dimitrios Chasapis ; gem5 users mailing list 

Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

PLEASE HELP ME.

I have run the hack_back_ckpt.rcS to create checkpoint and is still running 15 
hours ago. Could you please tell me how much time does it take to finish?

Best Regards



From: gem5-users  on behalf of ABD ALRHMAN ABO 
ALKHEEL 
Sent: Friday, January 17, 2020 6:33 PM
To: Dimitrios Chasapis ; gem5 users mailing list 

Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

Hi All,

I have run the hack_back_ckpt.rcS to create checkpoint and is still running 15 
hours ago. Could you please tell me how much time does it take to finish?

Best Regards


From: Dimitrios Chasapis 
Sent: Thursday, January 16, 2020 1:05 PM
To: ABD ALRHMAN ABO ALKHEEL ; gem5 users mailing list 

Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode


I guess using -l 10 is not enough to reach the benchmark itself and you 
finish before bootup, that's why you observe the same behavior.  To create the 
checkpoint after boot, you need to run the script found in

configs/boot/hack_back_ckpt.rcS.  Run it like this:

gem5.opt \

--outdir=a/directory/to/store/boot_ckpt \
configs/example/fs.py \
--kernel=...\
--disk-image=... \
--script=/configs/boot/hack_back_ckpt.rcS \
--cpu-type=AtomicSimpleCPU --num-cpus=1 --mem-size=...


You should have your checkpoint in the director you set with outdir.


To run from the checkpoint you need to use the following with your fs.py:

--checkpoint-dir=a/directory/to/store/boot_ckpt -r 1


On 1/16/20 4:21 AM, ABD ALRHMAN ABO ALKHEEL wrote:
Hi Dimitrios,

I run this command on Gem5 FS mode for different benchmarks and i got the same 
results for all benchmarks. So should i create checkpoint after the image is 
booted and if so how to create it?

./build/X86/gem5.fast ./configs/example/fs.py -I 1 
--kernel=/home/abdkhail/linux4.19/vmlinux 
--disk-image=/home/abdkhail/ubuntu16.img 
--script=configs/boot/benchmark/gcc.rcS --mem-size=3GB --num-cpus=4 
--cpu-clock=2GHz --caches --l2_size=2MB --l1i_size=32kB --l1d_size=32kB

Any help would be appreciated.

Best Regards


From: Dimitrios Chasapis <mailto:dchas...@bsc.es>
Sent: Tuesday, January 14, 2020 3:22 PM
To: ABD ALRHMAN ABO ALKHEEL 
<mailto:abdkeel...@hotmail.com>; gem5 users mailing 
list <mailto:gem5-users@gem5.org>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode


Can you share the output from stdout and stderr?  Also have you checked 
system.terminal? There may be some clues of the error there as well if the 
commands in the rcs script are not correct or you have any missing dependencies 
in your disk image, for whatever reason.

You can also try to first generate simpoints etc for a simple program, 
something like a simple loop in C, so that we can figure out if the problem is 
in the SPEC or gem5.


On 1/14/20 3:20 PM, ABD ALRHMAN ABO ALKHEEL wrote:
Please help me.

From: gem5-users 
<mailto:gem5-users-boun...@gem5.org> on behalf of 
ABD ALRHMAN ABO ALKHEEL <mailto:abdkeel...@hotmail.com>
Sent: Tuesday, January 14, 2020 2:13:26 AM
To: Dimitrios Chasapis <mailto:dchas...@bsc.es>; gem5 users 
mailing list <mailto:gem5-users@gem5.org>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

Hi All,

I run this command on GEM5 and got nothing in the stats.txt

./build/X86/gem5.fast ./configs/example/fs.py --simpoint-interval 1000 
--mem-size=3GB --kernel=/home/abdkhail/linux4.19/vmlinux 
--disk-image=/home/abdkhail/ubuntu16.img --script=configs/boot/benchmark.rcS

benchmark.rcS

#!/bin/sh

cd 
/home/ubuntu/cpu/benchspec/CPU2006/473.astar/run/run_base_ref_amd64-m64-gcc42-nn./astar_base.amd64-m64-gcc42-nn
/sbin/m5 dumpresetstats
/home/ubuntu/cpu/benchspec/CPU2006/473.astar/exe/astar_base.amd64-m64-gcc42-nn
echo "Done :D"
/sbin/m5 exit

Any help would be appreciated.

Best Regards


From: ABD ALRHMAN ABO ALKHEEL 
<mailto:abdkeel...@hotmail.com>
Sent: Monday, January 13, 2

Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

2020-01-17 Thread ABD ALRHMAN ABO ALKHEEL
PLEASE HELP ME.

I have run the hack_back_ckpt.rcS to create checkpoint and is still running 15 
hours ago. Could you please tell me how much time does it take to finish?

Best Regards



From: gem5-users  on behalf of ABD ALRHMAN ABO 
ALKHEEL 
Sent: Friday, January 17, 2020 6:33 PM
To: Dimitrios Chasapis ; gem5 users mailing list 

Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

Hi All,

I have run the hack_back_ckpt.rcS to create checkpoint and is still running 15 
hours ago. Could you please tell me how much time does it take to finish?

Best Regards


From: Dimitrios Chasapis 
Sent: Thursday, January 16, 2020 1:05 PM
To: ABD ALRHMAN ABO ALKHEEL ; gem5 users mailing list 

Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode


I guess using -l 10 is not enough to reach the benchmark itself and you 
finish before bootup, that's why you observe the same behavior.  To create the 
checkpoint after boot, you need to run the script found in

configs/boot/hack_back_ckpt.rcS.  Run it like this:

gem5.opt \

--outdir=a/directory/to/store/boot_ckpt \
configs/example/fs.py \
--kernel=...\
--disk-image=... \
--script=/configs/boot/hack_back_ckpt.rcS \
--cpu-type=AtomicSimpleCPU --num-cpus=1 --mem-size=...


You should have your checkpoint in the director you set with outdir.


To run from the checkpoint you need to use the following with your fs.py:

--checkpoint-dir=a/directory/to/store/boot_ckpt -r 1


On 1/16/20 4:21 AM, ABD ALRHMAN ABO ALKHEEL wrote:
Hi Dimitrios,

I run this command on Gem5 FS mode for different benchmarks and i got the same 
results for all benchmarks. So should i create checkpoint after the image is 
booted and if so how to create it?

./build/X86/gem5.fast ./configs/example/fs.py -I 1 
--kernel=/home/abdkhail/linux4.19/vmlinux 
--disk-image=/home/abdkhail/ubuntu16.img 
--script=configs/boot/benchmark/gcc.rcS --mem-size=3GB --num-cpus=4 
--cpu-clock=2GHz --caches --l2_size=2MB --l1i_size=32kB --l1d_size=32kB

Any help would be appreciated.

Best Regards


From: Dimitrios Chasapis <mailto:dchas...@bsc.es>
Sent: Tuesday, January 14, 2020 3:22 PM
To: ABD ALRHMAN ABO ALKHEEL 
<mailto:abdkeel...@hotmail.com>; gem5 users mailing 
list <mailto:gem5-users@gem5.org>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode


Can you share the output from stdout and stderr?  Also have you checked 
system.terminal? There may be some clues of the error there as well if the 
commands in the rcs script are not correct or you have any missing dependencies 
in your disk image, for whatever reason.

You can also try to first generate simpoints etc for a simple program, 
something like a simple loop in C, so that we can figure out if the problem is 
in the SPEC or gem5.


On 1/14/20 3:20 PM, ABD ALRHMAN ABO ALKHEEL wrote:
Please help me.

From: gem5-users 
<mailto:gem5-users-boun...@gem5.org> on behalf of 
ABD ALRHMAN ABO ALKHEEL <mailto:abdkeel...@hotmail.com>
Sent: Tuesday, January 14, 2020 2:13:26 AM
To: Dimitrios Chasapis <mailto:dchas...@bsc.es>; gem5 users 
mailing list <mailto:gem5-users@gem5.org>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

Hi All,

I run this command on GEM5 and got nothing in the stats.txt

./build/X86/gem5.fast ./configs/example/fs.py --simpoint-interval 1000 
--mem-size=3GB --kernel=/home/abdkhail/linux4.19/vmlinux 
--disk-image=/home/abdkhail/ubuntu16.img --script=configs/boot/benchmark.rcS

benchmark.rcS

#!/bin/sh

cd 
/home/ubuntu/cpu/benchspec/CPU2006/473.astar/run/run_base_ref_amd64-m64-gcc42-nn./astar_base.amd64-m64-gcc42-nn
/sbin/m5 dumpresetstats
/home/ubuntu/cpu/benchspec/CPU2006/473.astar/exe/astar_base.amd64-m64-gcc42-nn
echo "Done :D"
/sbin/m5 exit

Any help would be appreciated.

Best Regards


From: ABD ALRHMAN ABO ALKHEEL 
<mailto:abdkeel...@hotmail.com>
Sent: Monday, January 13, 2020 8:40 PM
To: Dimitrios Chasapis <mailto:dchas...@bsc.es>; gem5 users 
mailing list <mailto:gem5-users@gem5.org>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

Hi All,

I run this command on GEM5 and got nothing in the stats.txt

./build/X86/gem5.fast ./configs/example/fs.py --simpoint-interval 1000 
--mem-size=3GB --kernel=/home/abdkhail/linux4.19/vmlinux 
--disk-image=/home/abdkhail/ubuntu16.img --script=configs/boot/benchmark.rcS

benchmark.rcS

#!/bin/sh

cd 
/home/ubuntu/cpu/benchspec/CPU2006/473.astar/run/run_base_ref_amd64-m64-gcc42-nn./astar_base.amd64-m64-gcc42-nn
/sbin/m5 dumpresetstats
/home/ubuntu/cpu/benchspec/CPU2006/473.astar/exe/astar_base.amd64-m64-gcc42-nn
echo "Done :D"
/sbin/m5 exit

Any help would be appreciated.

Best Regards


Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

2020-01-17 Thread ABD ALRHMAN ABO ALKHEEL
Hi All,

I have run the hack_back_ckpt.rcS to create checkpoint and is still running 15 
hours ago. Could you please tell me how much time does it take to finish?

Best Regards


From: Dimitrios Chasapis 
Sent: Thursday, January 16, 2020 1:05 PM
To: ABD ALRHMAN ABO ALKHEEL ; gem5 users mailing list 

Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode


I guess using -l 10 is not enough to reach the benchmark itself and you 
finish before bootup, that's why you observe the same behavior.  To create the 
checkpoint after boot, you need to run the script found in

configs/boot/hack_back_ckpt.rcS.  Run it like this:

gem5.opt \

--outdir=a/directory/to/store/boot_ckpt \
configs/example/fs.py \
--kernel=...\
--disk-image=... \
--script=/configs/boot/hack_back_ckpt.rcS \
--cpu-type=AtomicSimpleCPU --num-cpus=1 --mem-size=...


You should have your checkpoint in the director you set with outdir.


To run from the checkpoint you need to use the following with your fs.py:

--checkpoint-dir=a/directory/to/store/boot_ckpt -r 1


On 1/16/20 4:21 AM, ABD ALRHMAN ABO ALKHEEL wrote:
Hi Dimitrios,

I run this command on Gem5 FS mode for different benchmarks and i got the same 
results for all benchmarks. So should i create checkpoint after the image is 
booted and if so how to create it?

./build/X86/gem5.fast ./configs/example/fs.py -I 1 
--kernel=/home/abdkhail/linux4.19/vmlinux 
--disk-image=/home/abdkhail/ubuntu16.img 
--script=configs/boot/benchmark/gcc.rcS --mem-size=3GB --num-cpus=4 
--cpu-clock=2GHz --caches --l2_size=2MB --l1i_size=32kB --l1d_size=32kB

Any help would be appreciated.

Best Regards


From: Dimitrios Chasapis <mailto:dchas...@bsc.es>
Sent: Tuesday, January 14, 2020 3:22 PM
To: ABD ALRHMAN ABO ALKHEEL 
<mailto:abdkeel...@hotmail.com>; gem5 users mailing 
list <mailto:gem5-users@gem5.org>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode


Can you share the output from stdout and stderr?  Also have you checked 
system.terminal? There may be some clues of the error there as well if the 
commands in the rcs script are not correct or you have any missing dependencies 
in your disk image, for whatever reason.

You can also try to first generate simpoints etc for a simple program, 
something like a simple loop in C, so that we can figure out if the problem is 
in the SPEC or gem5.


On 1/14/20 3:20 PM, ABD ALRHMAN ABO ALKHEEL wrote:
Please help me.

From: gem5-users 
<mailto:gem5-users-boun...@gem5.org> on behalf of 
ABD ALRHMAN ABO ALKHEEL <mailto:abdkeel...@hotmail.com>
Sent: Tuesday, January 14, 2020 2:13:26 AM
To: Dimitrios Chasapis <mailto:dchas...@bsc.es>; gem5 users 
mailing list <mailto:gem5-users@gem5.org>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

Hi All,

I run this command on GEM5 and got nothing in the stats.txt

./build/X86/gem5.fast ./configs/example/fs.py --simpoint-interval 1000 
--mem-size=3GB --kernel=/home/abdkhail/linux4.19/vmlinux 
--disk-image=/home/abdkhail/ubuntu16.img --script=configs/boot/benchmark.rcS

benchmark.rcS

#!/bin/sh

cd 
/home/ubuntu/cpu/benchspec/CPU2006/473.astar/run/run_base_ref_amd64-m64-gcc42-nn./astar_base.amd64-m64-gcc42-nn
/sbin/m5 dumpresetstats
/home/ubuntu/cpu/benchspec/CPU2006/473.astar/exe/astar_base.amd64-m64-gcc42-nn
echo "Done :D"
/sbin/m5 exit

Any help would be appreciated.

Best Regards


From: ABD ALRHMAN ABO ALKHEEL 
<mailto:abdkeel...@hotmail.com>
Sent: Monday, January 13, 2020 8:40 PM
To: Dimitrios Chasapis <mailto:dchas...@bsc.es>; gem5 users 
mailing list <mailto:gem5-users@gem5.org>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

Hi All,

I run this command on GEM5 and got nothing in the stats.txt

./build/X86/gem5.fast ./configs/example/fs.py --simpoint-interval 1000 
--mem-size=3GB --kernel=/home/abdkhail/linux4.19/vmlinux 
--disk-image=/home/abdkhail/ubuntu16.img --script=configs/boot/benchmark.rcS

benchmark.rcS

#!/bin/sh

cd 
/home/ubuntu/cpu/benchspec/CPU2006/473.astar/run/run_base_ref_amd64-m64-gcc42-nn./astar_base.amd64-m64-gcc42-nn
/sbin/m5 dumpresetstats
/home/ubuntu/cpu/benchspec/CPU2006/473.astar/exe/astar_base.amd64-m64-gcc42-nn
echo "Done :D"
/sbin/m5 exit

Any help would be appreciated.

Best Regards


From: Dimitrios Chasapis <mailto:dchas...@bsc.es>
Sent: Monday, January 13, 2020 2:48 PM
To: ABD ALRHMAN ABO ALKHEEL 
<mailto:abdkeel...@hotmail.com>; gem5 users mailing 
list <mailto:gem5-users@gem5.org>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode


I think this should work fine to generate the *.bb.gz

On 1/13/20 4:49 AM, ABD ALRHMAN ABO ALKHEEL wrote:
Hi Dear Dimitri

Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

2020-01-16 Thread ABD ALRHMAN ABO ALKHEEL
Hi Dimitrios, thanks for your help. I really appreciate that. Could you please 
tell me how much time does it take to run hack_back.rcS?

From: Dimitrios Chasapis 
Sent: Thursday, January 16, 2020 1:05:38 PM
To: ABD ALRHMAN ABO ALKHEEL ; gem5 users mailing list 

Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode


I guess using -l 10 is not enough to reach the benchmark itself and you 
finish before bootup, that's why you observe the same behavior.  To create the 
checkpoint after boot, you need to run the script found in

configs/boot/hack_back_ckpt.rcS.  Run it like this:

gem5.opt \

--outdir=a/directory/to/store/boot_ckpt \
configs/example/fs.py \
--kernel=...\
--disk-image=... \
--script=/configs/boot/hack_back_ckpt.rcS \
--cpu-type=AtomicSimpleCPU --num-cpus=1 --mem-size=...


You should have your checkpoint in the director you set with outdir.


To run from the checkpoint you need to use the following with your fs.py:

--checkpoint-dir=a/directory/to/store/boot_ckpt -r 1


On 1/16/20 4:21 AM, ABD ALRHMAN ABO ALKHEEL wrote:
Hi Dimitrios,

I run this command on Gem5 FS mode for different benchmarks and i got the same 
results for all benchmarks. So should i create checkpoint after the image is 
booted and if so how to create it?

./build/X86/gem5.fast ./configs/example/fs.py -I 1 
--kernel=/home/abdkhail/linux4.19/vmlinux 
--disk-image=/home/abdkhail/ubuntu16.img 
--script=configs/boot/benchmark/gcc.rcS --mem-size=3GB --num-cpus=4 
--cpu-clock=2GHz --caches --l2_size=2MB --l1i_size=32kB --l1d_size=32kB

Any help would be appreciated.

Best Regards


From: Dimitrios Chasapis <mailto:dchas...@bsc.es>
Sent: Tuesday, January 14, 2020 3:22 PM
To: ABD ALRHMAN ABO ALKHEEL 
<mailto:abdkeel...@hotmail.com>; gem5 users mailing 
list <mailto:gem5-users@gem5.org>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode


Can you share the output from stdout and stderr?  Also have you checked 
system.terminal? There may be some clues of the error there as well if the 
commands in the rcs script are not correct or you have any missing dependencies 
in your disk image, for whatever reason.

You can also try to first generate simpoints etc for a simple program, 
something like a simple loop in C, so that we can figure out if the problem is 
in the SPEC or gem5.


On 1/14/20 3:20 PM, ABD ALRHMAN ABO ALKHEEL wrote:
Please help me.

From: gem5-users 
<mailto:gem5-users-boun...@gem5.org> on behalf of 
ABD ALRHMAN ABO ALKHEEL <mailto:abdkeel...@hotmail.com>
Sent: Tuesday, January 14, 2020 2:13:26 AM
To: Dimitrios Chasapis <mailto:dchas...@bsc.es>; gem5 users 
mailing list <mailto:gem5-users@gem5.org>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

Hi All,

I run this command on GEM5 and got nothing in the stats.txt

./build/X86/gem5.fast ./configs/example/fs.py --simpoint-interval 1000 
--mem-size=3GB --kernel=/home/abdkhail/linux4.19/vmlinux 
--disk-image=/home/abdkhail/ubuntu16.img --script=configs/boot/benchmark.rcS

benchmark.rcS

#!/bin/sh

cd 
/home/ubuntu/cpu/benchspec/CPU2006/473.astar/run/run_base_ref_amd64-m64-gcc42-nn./astar_base.amd64-m64-gcc42-nn
/sbin/m5 dumpresetstats
/home/ubuntu/cpu/benchspec/CPU2006/473.astar/exe/astar_base.amd64-m64-gcc42-nn
echo "Done :D"
/sbin/m5 exit

Any help would be appreciated.

Best Regards


From: ABD ALRHMAN ABO ALKHEEL 
<mailto:abdkeel...@hotmail.com>
Sent: Monday, January 13, 2020 8:40 PM
To: Dimitrios Chasapis <mailto:dchas...@bsc.es>; gem5 users 
mailing list <mailto:gem5-users@gem5.org>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

Hi All,

I run this command on GEM5 and got nothing in the stats.txt

./build/X86/gem5.fast ./configs/example/fs.py --simpoint-interval 1000 
--mem-size=3GB --kernel=/home/abdkhail/linux4.19/vmlinux 
--disk-image=/home/abdkhail/ubuntu16.img --script=configs/boot/benchmark.rcS

benchmark.rcS

#!/bin/sh

cd 
/home/ubuntu/cpu/benchspec/CPU2006/473.astar/run/run_base_ref_amd64-m64-gcc42-nn./astar_base.amd64-m64-gcc42-nn
/sbin/m5 dumpresetstats
/home/ubuntu/cpu/benchspec/CPU2006/473.astar/exe/astar_base.amd64-m64-gcc42-nn
echo "Done :D"
/sbin/m5 exit

Any help would be appreciated.

Best Regards


From: Dimitrios Chasapis <mailto:dchas...@bsc.es>
Sent: Monday, January 13, 2020 2:48 PM
To: ABD ALRHMAN ABO ALKHEEL 
<mailto:abdkeel...@hotmail.com>; gem5 users mailing 
list <mailto:gem5-users@gem5.org>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode


I think this should work fine to generate the *.bb.gz

On 1/13/20 4:49 AM, ABD ALRHMAN ABO ALKHEEL wrote:
Hi Dear Dimitrios,

I run the CPU2006 benchmark on gem5 in FS

Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

2020-01-16 Thread Dimitrios Chasapis
I guess using -l 10 is not enough to reach the benchmark itself 
and you finish before bootup, that's why you observe the same behavior.  
To create the checkpoint after boot, you need to run the script found in


configs/boot/hack_back_ckpt.rcS.  Run it like this:

gem5.opt \

    --outdir=a/directory/to/store/boot_ckpt \
    configs/example/fs.py \
    --kernel=...\
    --disk-image=... \
    --script=/configs/boot/hack_back_ckpt.rcS \
    --cpu-type=AtomicSimpleCPU --num-cpus=1 --mem-size=...


You should have your checkpoint in the director you set with outdir.


To run from the checkpoint you need to use the following with your fs.py:

--checkpoint-dir=a/directory/to/store/boot_ckpt -r 1


On 1/16/20 4:21 AM, ABD ALRHMAN ABO ALKHEEL wrote:

Hi Dimitrios,

I run this command on Gem5 FS mode for different benchmarks and i got 
the same results for all benchmarks. So should i create checkpoint 
after the image is booted and if so how to create it?


./build/X86/gem5.fast ./configs/example/fs.py -I 1 
--kernel=/home/abdkhail/linux4.19/vmlinux 
--disk-image=/home/abdkhail/ubuntu16.img 
--script=configs/boot/benchmark/gcc.rcS --mem-size=3GB --num-cpus=4 
--cpu-clock=2GHz --caches --l2_size=2MB --l1i_size=32kB --l1d_size=32kB


Any help would be appreciated.

Best Regards


*From:* Dimitrios Chasapis 
*Sent:* Tuesday, January 14, 2020 3:22 PM
*To:* ABD ALRHMAN ABO ALKHEEL ; gem5 users 
mailing list 

*Subject:* Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

Can you share the output from stdout and stderr?  Also have you 
checked system.terminal? There may be some clues of the error there as 
well if the commands in the rcs script are not correct or you have any 
missing dependencies in your disk image, for whatever reason.


You can also try to first generate simpoints etc for a simple program, 
something like a simple loop in C, so that we can figure out if the 
problem is in the SPEC or gem5.



On 1/14/20 3:20 PM, ABD ALRHMAN ABO ALKHEEL wrote:

Please help me.

*From:* gem5-users  
<mailto:gem5-users-boun...@gem5.org> on behalf of ABD ALRHMAN ABO 
ALKHEEL  <mailto:abdkeel...@hotmail.com>

*Sent:* Tuesday, January 14, 2020 2:13:26 AM
*To:* Dimitrios Chasapis  <mailto:dchas...@bsc.es>; 
gem5 users mailing list  
<mailto:gem5-users@gem5.org>

*Subject:* Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode
Hi All,

I run this command on GEM5 and got nothing in the stats.txt

./build/X86/gem5.fast ./configs/example/fs.py --simpoint-interval 
1000 --mem-size=3GB --kernel=/home/abdkhail/linux4.19/vmlinux 
--disk-image=/home/abdkhail/ubuntu16.img 
--script=configs/boot/benchmark.rcS


benchmark.rcS

#!/bin/sh

cd 
/home/ubuntu/cpu/benchspec/CPU2006/473.astar/run/run_base_ref_amd64-m64-gcc42-nn./astar_base.amd64-m64-gcc42-nn

/sbin/m5 dumpresetstats
/home/ubuntu/cpu/benchspec/CPU2006/473.astar/exe/astar_base.amd64-m64-gcc42-nn
echo "Done :D"
/sbin/m5 exit

Any help would be appreciated.

Best Regards


*From:* ABD ALRHMAN ABO ALKHEEL  
<mailto:abdkeel...@hotmail.com>

*Sent:* Monday, January 13, 2020 8:40 PM
*To:* Dimitrios Chasapis  <mailto:dchas...@bsc.es>; 
gem5 users mailing list  
<mailto:gem5-users@gem5.org>

*Subject:* Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode
Hi All,

I run this command on GEM5 and got nothing in the stats.txt

./build/X86/gem5.fast ./configs/example/fs.py --simpoint-interval 
1000 --mem-size=3GB --kernel=/home/abdkhail/linux4.19/vmlinux 
--disk-image=/home/abdkhail/ubuntu16.img 
--script=configs/boot/benchmark.rcS


benchmark.rcS

#!/bin/sh

cd 
/home/ubuntu/cpu/benchspec/CPU2006/473.astar/run/run_base_ref_amd64-m64-gcc42-nn./astar_base.amd64-m64-gcc42-nn

/sbin/m5 dumpresetstats
/home/ubuntu/cpu/benchspec/CPU2006/473.astar/exe/astar_base.amd64-m64-gcc42-nn
echo "Done :D"
/sbin/m5 exit

Any help would be appreciated.

Best Regards


*From:* Dimitrios Chasapis  <mailto:dchas...@bsc.es>
*Sent:* Monday, January 13, 2020 2:48 PM
*To:* ABD ALRHMAN ABO ALKHEEL  
<mailto:abdkeel...@hotmail.com>; gem5 users mailing list 
 <mailto:gem5-users@gem5.org>

*Subject:* Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

I think this should work fine to generate the *.bb.gz


On 1/13/20 4:49 AM, ABD ALRHMAN ABO ALKHEEL wrote:

Hi Dear Dimitrios,

I run the CPU2006 benchmark on gem5 in FS mode for 1000 instructions 
as follows:


The command is :

./build/X86/gem5.fast ./configs/example/fs.py --mem-size=3GB 
--kernel=/home/abdkhail/linux4.19/vmlinux 
--disk-image=/home/abdkhail/ubuntu16.img 
--script=configs/boot/benchmark.rc

Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

2020-01-16 Thread CS18M010 RICHA CHAUDHRY
how to find power in gem5

On Thu, Jan 16, 2020 at 8:51 AM ABD ALRHMAN ABO ALKHEEL <
abdkeel...@hotmail.com> wrote:

> Hi Dimitrios,
>
> I run this command on Gem5 FS mode for different benchmarks and i got the
> same results for all benchmarks. So should i create checkpoint after the
> image is booted and if so how to create it?
>
> ./build/X86/gem5.fast ./configs/example/fs.py -I 1
> --kernel=/home/abdkhail/linux4.19/vmlinux
> --disk-image=/home/abdkhail/ubuntu16.img
> --script=configs/boot/benchmark/gcc.rcS --mem-size=3GB --num-cpus=4
> --cpu-clock=2GHz --caches --l2_size=2MB --l1i_size=32kB --l1d_size=32kB
>
> Any help would be appreciated.
>
> Best Regards
>
> --
> *From:* Dimitrios Chasapis 
> *Sent:* Tuesday, January 14, 2020 3:22 PM
> *To:* ABD ALRHMAN ABO ALKHEEL ; gem5 users
> mailing list 
> *Subject:* Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode
>
>
> Can you share the output from stdout and stderr?  Also have you checked
> system.terminal? There may be some clues of the error there as well if the
> commands in the rcs script are not correct or you have any missing
> dependencies in your disk image, for whatever reason.
>
> You can also try to first generate simpoints etc for a simple program,
> something like a simple loop in C, so that we can figure out if the problem
> is in the SPEC or gem5.
>
>
> On 1/14/20 3:20 PM, ABD ALRHMAN ABO ALKHEEL wrote:
>
> Please help me.
> --
> *From:* gem5-users 
>  on behalf of ABD ALRHMAN ABO ALKHEEL
>  
> *Sent:* Tuesday, January 14, 2020 2:13:26 AM
> *To:* Dimitrios Chasapis  ; gem5 users
> mailing list  
> *Subject:* Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode
>
> Hi All,
>
> I run this command on GEM5 and got nothing in the stats.txt
>
> ./build/X86/gem5.fast ./configs/example/fs.py --simpoint-interval 1000
> --mem-size=3GB --kernel=/home/abdkhail/linux4.19/vmlinux
> --disk-image=/home/abdkhail/ubuntu16.img --script=configs/boot/benchmark.rcS
>
> benchmark.rcS
>
> #!/bin/sh
>
> cd
> /home/ubuntu/cpu/benchspec/CPU2006/473.astar/run/run_base_ref_amd64-m64-gcc42-nn./astar_base.amd64-m64-gcc42-nn
> /sbin/m5 dumpresetstats
>
> /home/ubuntu/cpu/benchspec/CPU2006/473.astar/exe/astar_base.amd64-m64-gcc42-nn
> echo "Done :D"
> /sbin/m5 exit
>
> Any help would be appreciated.
>
> Best Regards
>
> ------
> *From:* ABD ALRHMAN ABO ALKHEEL 
> 
> *Sent:* Monday, January 13, 2020 8:40 PM
> *To:* Dimitrios Chasapis  ; gem5 users
> mailing list  
> *Subject:* Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode
>
> Hi All,
>
> I run this command on GEM5 and got nothing in the stats.txt
>
> ./build/X86/gem5.fast ./configs/example/fs.py --simpoint-interval 1000
> --mem-size=3GB --kernel=/home/abdkhail/linux4.19/vmlinux
> --disk-image=/home/abdkhail/ubuntu16.img --script=configs/boot/benchmark.rcS
>
> benchmark.rcS
>
> #!/bin/sh
>
> cd
> /home/ubuntu/cpu/benchspec/CPU2006/473.astar/run/run_base_ref_amd64-m64-gcc42-nn./astar_base.amd64-m64-gcc42-nn
> /sbin/m5 dumpresetstats
>
> /home/ubuntu/cpu/benchspec/CPU2006/473.astar/exe/astar_base.amd64-m64-gcc42-nn
> echo "Done :D"
> /sbin/m5 exit
>
> Any help would be appreciated.
>
> Best Regards
>
> --
> *From:* Dimitrios Chasapis  
> *Sent:* Monday, January 13, 2020 2:48 PM
> *To:* ABD ALRHMAN ABO ALKHEEL 
> ; gem5 users mailing list 
> 
> *Subject:* Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode
>
>
> I think this should work fine to generate the *.bb.gz
>
> On 1/13/20 4:49 AM, ABD ALRHMAN ABO ALKHEEL wrote:
>
> Hi Dear Dimitrios,
>
> I run the CPU2006 benchmark on gem5 in FS mode for 1000 instructions as
> follows:
>
> The command is :
>
> ./build/X86/gem5.fast ./configs/example/fs.py --mem-size=3GB
> --kernel=/home/abdkhail/linux4.19/vmlinux
> --disk-image=/home/abdkhail/ubuntu16.img
> --script=configs/boot/benchmark.rcS --simpoint-interval 1000
>
>
> The benchmark.rcS
>
> #!/bin/sh
>
> cd
> /home/ubuntu/cpu/benchspec/CPU2006/473.astar/run/run_base_ref_amd64-m64-gcc42-nn./astar_base.amd64-m64-gcc42-nn
> /sbin/m5 dumpresetstats
> cd
> /home/ubuntu/cpu/benchspec/CPU2006/473.astar/exe/astar_base.amd64-m64-gcc42-nn
> /sbin/m5 exit
>
> I am wondering if that works well! any help or update would be appreciated.
>
> Best Regards
>
>
>
>
> --
> *From:* Dimitrios Chasapis  
> *Sent:* Friday, January 10, 2020 2:03 PM
> *To:* ABD ALRHMAN ABO ALKHEEL 
> ; gem5 users mailing li

Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

2020-01-15 Thread ABD ALRHMAN ABO ALKHEEL
Hi Dimitrios,

I run this command on Gem5 FS mode for different benchmarks and i got the same 
results for all benchmarks. So should i create checkpoint after the image is 
booted and if so how to create it?

./build/X86/gem5.fast ./configs/example/fs.py -I 1 
--kernel=/home/abdkhail/linux4.19/vmlinux 
--disk-image=/home/abdkhail/ubuntu16.img 
--script=configs/boot/benchmark/gcc.rcS --mem-size=3GB --num-cpus=4 
--cpu-clock=2GHz --caches --l2_size=2MB --l1i_size=32kB --l1d_size=32kB

Any help would be appreciated.

Best Regards


From: Dimitrios Chasapis 
Sent: Tuesday, January 14, 2020 3:22 PM
To: ABD ALRHMAN ABO ALKHEEL ; gem5 users mailing list 

Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode


Can you share the output from stdout and stderr?  Also have you checked 
system.terminal? There may be some clues of the error there as well if the 
commands in the rcs script are not correct or you have any missing dependencies 
in your disk image, for whatever reason.

You can also try to first generate simpoints etc for a simple program, 
something like a simple loop in C, so that we can figure out if the problem is 
in the SPEC or gem5.


On 1/14/20 3:20 PM, ABD ALRHMAN ABO ALKHEEL wrote:
Please help me.

From: gem5-users 
<mailto:gem5-users-boun...@gem5.org> on behalf of 
ABD ALRHMAN ABO ALKHEEL <mailto:abdkeel...@hotmail.com>
Sent: Tuesday, January 14, 2020 2:13:26 AM
To: Dimitrios Chasapis <mailto:dchas...@bsc.es>; gem5 users 
mailing list <mailto:gem5-users@gem5.org>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

Hi All,

I run this command on GEM5 and got nothing in the stats.txt

./build/X86/gem5.fast ./configs/example/fs.py --simpoint-interval 1000 
--mem-size=3GB --kernel=/home/abdkhail/linux4.19/vmlinux 
--disk-image=/home/abdkhail/ubuntu16.img --script=configs/boot/benchmark.rcS

benchmark.rcS

#!/bin/sh

cd 
/home/ubuntu/cpu/benchspec/CPU2006/473.astar/run/run_base_ref_amd64-m64-gcc42-nn./astar_base.amd64-m64-gcc42-nn
/sbin/m5 dumpresetstats
/home/ubuntu/cpu/benchspec/CPU2006/473.astar/exe/astar_base.amd64-m64-gcc42-nn
echo "Done :D"
/sbin/m5 exit

Any help would be appreciated.

Best Regards


From: ABD ALRHMAN ABO ALKHEEL 
<mailto:abdkeel...@hotmail.com>
Sent: Monday, January 13, 2020 8:40 PM
To: Dimitrios Chasapis <mailto:dchas...@bsc.es>; gem5 users 
mailing list <mailto:gem5-users@gem5.org>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

Hi All,

I run this command on GEM5 and got nothing in the stats.txt

./build/X86/gem5.fast ./configs/example/fs.py --simpoint-interval 1000 
--mem-size=3GB --kernel=/home/abdkhail/linux4.19/vmlinux 
--disk-image=/home/abdkhail/ubuntu16.img --script=configs/boot/benchmark.rcS

benchmark.rcS

#!/bin/sh

cd 
/home/ubuntu/cpu/benchspec/CPU2006/473.astar/run/run_base_ref_amd64-m64-gcc42-nn./astar_base.amd64-m64-gcc42-nn
/sbin/m5 dumpresetstats
/home/ubuntu/cpu/benchspec/CPU2006/473.astar/exe/astar_base.amd64-m64-gcc42-nn
echo "Done :D"
/sbin/m5 exit

Any help would be appreciated.

Best Regards


From: Dimitrios Chasapis <mailto:dchas...@bsc.es>
Sent: Monday, January 13, 2020 2:48 PM
To: ABD ALRHMAN ABO ALKHEEL 
<mailto:abdkeel...@hotmail.com>; gem5 users mailing 
list <mailto:gem5-users@gem5.org>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode


I think this should work fine to generate the *.bb.gz

On 1/13/20 4:49 AM, ABD ALRHMAN ABO ALKHEEL wrote:
Hi Dear Dimitrios,

I run the CPU2006 benchmark on gem5 in FS mode for 1000 instructions as follows:

The command is :

./build/X86/gem5.fast ./configs/example/fs.py --mem-size=3GB 
--kernel=/home/abdkhail/linux4.19/vmlinux 
--disk-image=/home/abdkhail/ubuntu16.img --script=configs/boot/benchmark.rcS 
--simpoint-interval 1000


The benchmark.rcS

#!/bin/sh

cd 
/home/ubuntu/cpu/benchspec/CPU2006/473.astar/run/run_base_ref_amd64-m64-gcc42-nn./astar_base.amd64-m64-gcc42-nn
/sbin/m5 dumpresetstats
cd 
/home/ubuntu/cpu/benchspec/CPU2006/473.astar/exe/astar_base.amd64-m64-gcc42-nn
/sbin/m5 exit

I am wondering if that works well! any help or update would be appreciated.

Best Regards





From: Dimitrios Chasapis <mailto:dchas...@bsc.es>
Sent: Friday, January 10, 2020 2:03 PM
To: ABD ALRHMAN ABO ALKHEEL 
<mailto:abdkeel...@hotmail.com>; gem5 users mailing 
list <mailto:gem5-users@gem5.org>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode


I am not sure if this is possible in FS, at least not the same way you do in 
SE.  You will need to use simpoints in order to create checkpoints for you 
code.  After that you basically segment your code into smaller, say 100 
instructions per segment, which you can run.  Check the link I sent in my 
previous message

Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

2020-01-14 Thread ABD ALRHMAN ABO ALKHEEL
Please help me.

From: gem5-users  on behalf of ABD ALRHMAN ABO 
ALKHEEL 
Sent: Tuesday, January 14, 2020 2:13:26 AM
To: Dimitrios Chasapis ; gem5 users mailing list 

Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

Hi All,

I run this command on GEM5 and got nothing in the stats.txt

./build/X86/gem5.fast ./configs/example/fs.py --simpoint-interval 1000 
--mem-size=3GB --kernel=/home/abdkhail/linux4.19/vmlinux 
--disk-image=/home/abdkhail/ubuntu16.img --script=configs/boot/benchmark.rcS

benchmark.rcS

#!/bin/sh

cd 
/home/ubuntu/cpu/benchspec/CPU2006/473.astar/run/run_base_ref_amd64-m64-gcc42-nn./astar_base.amd64-m64-gcc42-nn
/sbin/m5 dumpresetstats
/home/ubuntu/cpu/benchspec/CPU2006/473.astar/exe/astar_base.amd64-m64-gcc42-nn
echo "Done :D"
/sbin/m5 exit

Any help would be appreciated.

Best Regards


From: ABD ALRHMAN ABO ALKHEEL 
Sent: Monday, January 13, 2020 8:40 PM
To: Dimitrios Chasapis ; gem5 users mailing list 

Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

Hi All,

I run this command on GEM5 and got nothing in the stats.txt

./build/X86/gem5.fast ./configs/example/fs.py --simpoint-interval 1000 
--mem-size=3GB --kernel=/home/abdkhail/linux4.19/vmlinux 
--disk-image=/home/abdkhail/ubuntu16.img --script=configs/boot/benchmark.rcS

benchmark.rcS

#!/bin/sh

cd 
/home/ubuntu/cpu/benchspec/CPU2006/473.astar/run/run_base_ref_amd64-m64-gcc42-nn./astar_base.amd64-m64-gcc42-nn
/sbin/m5 dumpresetstats
/home/ubuntu/cpu/benchspec/CPU2006/473.astar/exe/astar_base.amd64-m64-gcc42-nn
echo "Done :D"
/sbin/m5 exit

Any help would be appreciated.

Best Regards


From: Dimitrios Chasapis 
Sent: Monday, January 13, 2020 2:48 PM
To: ABD ALRHMAN ABO ALKHEEL ; gem5 users mailing list 

Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode


I think this should work fine to generate the *.bb.gz

On 1/13/20 4:49 AM, ABD ALRHMAN ABO ALKHEEL wrote:
Hi Dear Dimitrios,

I run the CPU2006 benchmark on gem5 in FS mode for 1000 instructions as follows:

The command is :

./build/X86/gem5.fast ./configs/example/fs.py --mem-size=3GB 
--kernel=/home/abdkhail/linux4.19/vmlinux 
--disk-image=/home/abdkhail/ubuntu16.img --script=configs/boot/benchmark.rcS 
--simpoint-interval 1000


The benchmark.rcS

#!/bin/sh

cd 
/home/ubuntu/cpu/benchspec/CPU2006/473.astar/run/run_base_ref_amd64-m64-gcc42-nn./astar_base.amd64-m64-gcc42-nn
/sbin/m5 dumpresetstats
cd 
/home/ubuntu/cpu/benchspec/CPU2006/473.astar/exe/astar_base.amd64-m64-gcc42-nn
/sbin/m5 exit

I am wondering if that works well! any help or update would be appreciated.

Best Regards





From: Dimitrios Chasapis <mailto:dchas...@bsc.es>
Sent: Friday, January 10, 2020 2:03 PM
To: ABD ALRHMAN ABO ALKHEEL 
<mailto:abdkeel...@hotmail.com>; gem5 users mailing 
list <mailto:gem5-users@gem5.org>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode


I am not sure if this is possible in FS, at least not the same way you do in 
SE.  You will need to use simpoints in order to create checkpoints for you 
code.  After that you basically segment your code into smaller, say 100 
instructions per segment, which you can run.  Check the link I sent in my 
previous message.  However note that you will need to run the code for each 
benchmark  twice, once for generating the simpoint files and once to set the 
checkpoints.  For me this can take up to 4 week for the larger codes, and a few 
days for the smaller ones in SPEC CPU 2017.  Once you have the checkpoints 
though, it should take a couple of hours.  I don't know if there is a faster 
way to do this, maybe someone else has a better suggestion.

On 1/10/20 1:19 AM, ABD ALRHMAN ABO ALKHEEL wrote:
Hi Dimitrios, I appreciate your help. How I can run the benchmark for one 
million instruction in the FS mode. In SE mode I used -I 100 . Any help 
would be appreciated. Best Regards

From: Dimitrios Chasapis <mailto:dchas...@bsc.es>
Sent: Thursday, January 9, 2020 5:39:51 PM
To: gem5 users mailing list <mailto:gem5-users@gem5.org>; 
ABD ALRHMAN ABO ALKHEEL <mailto:abdkeel...@hotmail.com>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode


Hi,

Here is an example of an .rcs script.  As Ciro told you, first you need to have 
a bootable image, optionally create a checkpoint after boot and finally add the 
benchmarks to the cd image.

#/bin/bash
cd 
/your/path/SPEC_CPU_2017/benchspec/CPU/627.cam4_s/run/run_base_refspeed_aarch64-64.
/sbin/m5 dumpresetstats
/yourpath/SPEC_CPU_2017/benchspec/CPU/627.cam4_s/exe/cam4_s_base.aarch64-64
/sbin/m5 exit

In the example above you simply cd to the directory of the benchmark you want 
to use and then run it.  /sbin/m5 dumperesetstats resets your statistics 
counters and exit is used to finish the executi

Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

2020-01-13 Thread ABD ALRHMAN ABO ALKHEEL
Hi All,

I run this command on GEM5 and got nothing in the stats.txt

./build/X86/gem5.fast ./configs/example/fs.py --simpoint-interval 1000 
--mem-size=3GB --kernel=/home/abdkhail/linux4.19/vmlinux 
--disk-image=/home/abdkhail/ubuntu16.img --script=configs/boot/benchmark.rcS

benchmark.rcS

#!/bin/sh

cd 
/home/ubuntu/cpu/benchspec/CPU2006/473.astar/run/run_base_ref_amd64-m64-gcc42-nn./astar_base.amd64-m64-gcc42-nn
/sbin/m5 dumpresetstats
/home/ubuntu/cpu/benchspec/CPU2006/473.astar/exe/astar_base.amd64-m64-gcc42-nn
echo "Done :D"
/sbin/m5 exit

Any help would be appreciated.

Best Regards


From: ABD ALRHMAN ABO ALKHEEL 
Sent: Monday, January 13, 2020 8:40 PM
To: Dimitrios Chasapis ; gem5 users mailing list 

Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

Hi All,

I run this command on GEM5 and got nothing in the stats.txt

./build/X86/gem5.fast ./configs/example/fs.py --simpoint-interval 1000 
--mem-size=3GB --kernel=/home/abdkhail/linux4.19/vmlinux 
--disk-image=/home/abdkhail/ubuntu16.img --script=configs/boot/benchmark.rcS

benchmark.rcS

#!/bin/sh

cd 
/home/ubuntu/cpu/benchspec/CPU2006/473.astar/run/run_base_ref_amd64-m64-gcc42-nn./astar_base.amd64-m64-gcc42-nn
/sbin/m5 dumpresetstats
/home/ubuntu/cpu/benchspec/CPU2006/473.astar/exe/astar_base.amd64-m64-gcc42-nn
echo "Done :D"
/sbin/m5 exit

Any help would be appreciated.

Best Regards


From: Dimitrios Chasapis 
Sent: Monday, January 13, 2020 2:48 PM
To: ABD ALRHMAN ABO ALKHEEL ; gem5 users mailing list 

Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode


I think this should work fine to generate the *.bb.gz

On 1/13/20 4:49 AM, ABD ALRHMAN ABO ALKHEEL wrote:
Hi Dear Dimitrios,

I run the CPU2006 benchmark on gem5 in FS mode for 1000 instructions as follows:

The command is :

./build/X86/gem5.fast ./configs/example/fs.py --mem-size=3GB 
--kernel=/home/abdkhail/linux4.19/vmlinux 
--disk-image=/home/abdkhail/ubuntu16.img --script=configs/boot/benchmark.rcS 
--simpoint-interval 1000


The benchmark.rcS

#!/bin/sh

cd 
/home/ubuntu/cpu/benchspec/CPU2006/473.astar/run/run_base_ref_amd64-m64-gcc42-nn./astar_base.amd64-m64-gcc42-nn
/sbin/m5 dumpresetstats
cd 
/home/ubuntu/cpu/benchspec/CPU2006/473.astar/exe/astar_base.amd64-m64-gcc42-nn
/sbin/m5 exit

I am wondering if that works well! any help or update would be appreciated.

Best Regards





From: Dimitrios Chasapis <mailto:dchas...@bsc.es>
Sent: Friday, January 10, 2020 2:03 PM
To: ABD ALRHMAN ABO ALKHEEL 
<mailto:abdkeel...@hotmail.com>; gem5 users mailing 
list <mailto:gem5-users@gem5.org>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode


I am not sure if this is possible in FS, at least not the same way you do in 
SE.  You will need to use simpoints in order to create checkpoints for you 
code.  After that you basically segment your code into smaller, say 100 
instructions per segment, which you can run.  Check the link I sent in my 
previous message.  However note that you will need to run the code for each 
benchmark  twice, once for generating the simpoint files and once to set the 
checkpoints.  For me this can take up to 4 week for the larger codes, and a few 
days for the smaller ones in SPEC CPU 2017.  Once you have the checkpoints 
though, it should take a couple of hours.  I don't know if there is a faster 
way to do this, maybe someone else has a better suggestion.

On 1/10/20 1:19 AM, ABD ALRHMAN ABO ALKHEEL wrote:
Hi Dimitrios, I appreciate your help. How I can run the benchmark for one 
million instruction in the FS mode. In SE mode I used -I 100 . Any help 
would be appreciated. Best Regards

From: Dimitrios Chasapis <mailto:dchas...@bsc.es>
Sent: Thursday, January 9, 2020 5:39:51 PM
To: gem5 users mailing list <mailto:gem5-users@gem5.org>; 
ABD ALRHMAN ABO ALKHEEL <mailto:abdkeel...@hotmail.com>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode


Hi,

Here is an example of an .rcs script.  As Ciro told you, first you need to have 
a bootable image, optionally create a checkpoint after boot and finally add the 
benchmarks to the cd image.

#/bin/bash
cd 
/your/path/SPEC_CPU_2017/benchspec/CPU/627.cam4_s/run/run_base_refspeed_aarch64-64.
/sbin/m5 dumpresetstats
/yourpath/SPEC_CPU_2017/benchspec/CPU/627.cam4_s/exe/cam4_s_base.aarch64-64
/sbin/m5 exit

In the example above you simply cd to the directory of the benchmark you want 
to use and then run it.  /sbin/m5 dumperesetstats resets your statistics 
counters and exit is used to finish the execution.  Note I use spec 2017, which 
I found that it's best to run directly as I do above than use their 
infrastructure.  Problem is that FS is too slow and you waste a lot of time 
running their python scripts.  Also, I would encourage you to learn about 
simpoints<

Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

2020-01-13 Thread ABD ALRHMAN ABO ALKHEEL
Hi All,

I run this command on GEM5 and got nothing in the stats.txt

./build/X86/gem5.fast ./configs/example/fs.py --simpoint-interval 1000 
--mem-size=3GB --kernel=/home/abdkhail/linux4.19/vmlinux 
--disk-image=/home/abdkhail/ubuntu16.img --script=configs/boot/benchmark.rcS

benchmark.rcS

#!/bin/sh

cd 
/home/ubuntu/cpu/benchspec/CPU2006/473.astar/run/run_base_ref_amd64-m64-gcc42-nn./astar_base.amd64-m64-gcc42-nn
/sbin/m5 dumpresetstats
/home/ubuntu/cpu/benchspec/CPU2006/473.astar/exe/astar_base.amd64-m64-gcc42-nn
echo "Done :D"
/sbin/m5 exit

Any help would be appreciated.

Best Regards


From: Dimitrios Chasapis 
Sent: Monday, January 13, 2020 2:48 PM
To: ABD ALRHMAN ABO ALKHEEL ; gem5 users mailing list 

Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode


I think this should work fine to generate the *.bb.gz

On 1/13/20 4:49 AM, ABD ALRHMAN ABO ALKHEEL wrote:
Hi Dear Dimitrios,

I run the CPU2006 benchmark on gem5 in FS mode for 1000 instructions as follows:

The command is :

./build/X86/gem5.fast ./configs/example/fs.py --mem-size=3GB 
--kernel=/home/abdkhail/linux4.19/vmlinux 
--disk-image=/home/abdkhail/ubuntu16.img --script=configs/boot/benchmark.rcS 
--simpoint-interval 1000


The benchmark.rcS

#!/bin/sh

cd 
/home/ubuntu/cpu/benchspec/CPU2006/473.astar/run/run_base_ref_amd64-m64-gcc42-nn./astar_base.amd64-m64-gcc42-nn
/sbin/m5 dumpresetstats
cd 
/home/ubuntu/cpu/benchspec/CPU2006/473.astar/exe/astar_base.amd64-m64-gcc42-nn
/sbin/m5 exit

I am wondering if that works well! any help or update would be appreciated.

Best Regards





From: Dimitrios Chasapis <mailto:dchas...@bsc.es>
Sent: Friday, January 10, 2020 2:03 PM
To: ABD ALRHMAN ABO ALKHEEL 
<mailto:abdkeel...@hotmail.com>; gem5 users mailing 
list <mailto:gem5-users@gem5.org>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode


I am not sure if this is possible in FS, at least not the same way you do in 
SE.  You will need to use simpoints in order to create checkpoints for you 
code.  After that you basically segment your code into smaller, say 100 
instructions per segment, which you can run.  Check the link I sent in my 
previous message.  However note that you will need to run the code for each 
benchmark  twice, once for generating the simpoint files and once to set the 
checkpoints.  For me this can take up to 4 week for the larger codes, and a few 
days for the smaller ones in SPEC CPU 2017.  Once you have the checkpoints 
though, it should take a couple of hours.  I don't know if there is a faster 
way to do this, maybe someone else has a better suggestion.

On 1/10/20 1:19 AM, ABD ALRHMAN ABO ALKHEEL wrote:
Hi Dimitrios, I appreciate your help. How I can run the benchmark for one 
million instruction in the FS mode. In SE mode I used -I 100 . Any help 
would be appreciated. Best Regards

From: Dimitrios Chasapis <mailto:dchas...@bsc.es>
Sent: Thursday, January 9, 2020 5:39:51 PM
To: gem5 users mailing list <mailto:gem5-users@gem5.org>; 
ABD ALRHMAN ABO ALKHEEL <mailto:abdkeel...@hotmail.com>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode


Hi,

Here is an example of an .rcs script.  As Ciro told you, first you need to have 
a bootable image, optionally create a checkpoint after boot and finally add the 
benchmarks to the cd image.

#/bin/bash
cd 
/your/path/SPEC_CPU_2017/benchspec/CPU/627.cam4_s/run/run_base_refspeed_aarch64-64.
/sbin/m5 dumpresetstats
/yourpath/SPEC_CPU_2017/benchspec/CPU/627.cam4_s/exe/cam4_s_base.aarch64-64
/sbin/m5 exit

In the example above you simply cd to the directory of the benchmark you want 
to use and then run it.  /sbin/m5 dumperesetstats resets your statistics 
counters and exit is used to finish the execution.  Note I use spec 2017, which 
I found that it's best to run directly as I do above than use their 
infrastructure.  Problem is that FS is too slow and you waste a lot of time 
running their python scripts.  Also, I would encourage you to learn about 
simpoints<http://gem5.org/Simpoints> if you plan on running SPEC CPU 2006 with 
anything more than the test inputs.  Running with ref will take days/weeks.

Best,

Dimitrios Chasapis


On 1/9/20 6:03 PM, Ciro Santilli wrote:

The linked documentation runs an arbitrary benchmark of your choice.
You just have to add SPEC CPU to the image yourself as explained
there. I can't fully automate SPEC CPU build because it is closed source.


On Thu, Jan 9, 2020 at 3:10 PM ABD ALRHMAN ABO ALKHEEL
<mailto:abdkeel...@hotmail.com> wrote:


Thanks Ciro, I appreciate your help. Can you provide me an example on .rcs 
script to run the benchmark. Any help would be appreciated. Best Regards 

From: Ciro Santilli <mailto:ciro.santi...@gmail.com>
Sent: Thursday, January 9, 2020 9:52:28 AM
To: gem5 users ma

Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

2020-01-13 Thread Dimitrios Chasapis

I think this should work fine to generate the *.bb.gz


On 1/13/20 4:49 AM, ABD ALRHMAN ABO ALKHEEL wrote:

Hi Dear Dimitrios,

I run the CPU2006 benchmark on gem5 in FS mode for 1000 instructions 
as follows:


The command is :

./build/X86/gem5.fast ./configs/example/fs.py --mem-size=3GB 
--kernel=/home/abdkhail/linux4.19/vmlinux 
--disk-image=/home/abdkhail/ubuntu16.img 
--script=configs/boot/benchmark.rcS --simpoint-interval 1000



The benchmark.rcS

#!/bin/sh

cd 
/home/ubuntu/cpu/benchspec/CPU2006/473.astar/run/run_base_ref_amd64-m64-gcc42-nn./astar_base.amd64-m64-gcc42-nn

/sbin/m5 dumpresetstats
cd 
/home/ubuntu/cpu/benchspec/CPU2006/473.astar/exe/astar_base.amd64-m64-gcc42-nn

/sbin/m5 exit

I am wondering if that works well! any help or update would be 
appreciated.


Best Regards





*From:* Dimitrios Chasapis 
*Sent:* Friday, January 10, 2020 2:03 PM
*To:* ABD ALRHMAN ABO ALKHEEL ; gem5 users 
mailing list 

*Subject:* Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

I am not sure if this is possible in FS, at least not the same way you 
do in SE.  You will need to use simpoints in order to create 
checkpoints for you code.  After that you basically segment your code 
into smaller, say 100 instructions per segment, which you can 
run.  Check the link I sent in my previous message.  However note that 
you will need to run the code for each benchmark  twice, once for 
generating the simpoint files and once to set the checkpoints.  For me 
this can take up to 4 week for the larger codes, and a few days for 
the smaller ones in SPEC CPU 2017.  Once you have the checkpoints 
though, it should take a couple of hours.  I don't know if there is a 
faster way to do this, maybe someone else has a better suggestion.


On 1/10/20 1:19 AM, ABD ALRHMAN ABO ALKHEEL wrote:
Hi Dimitrios, I appreciate your help. How I can run the benchmark for 
one million instruction in the FS mode. In SE mode I used -I 100 
. Any help would be appreciated. Best Regards


*From:* Dimitrios Chasapis  <mailto:dchas...@bsc.es>
*Sent:* Thursday, January 9, 2020 5:39:51 PM
*To:* gem5 users mailing list  
<mailto:gem5-users@gem5.org>; ABD ALRHMAN ABO ALKHEEL 
 <mailto:abdkeel...@hotmail.com>

*Subject:* Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

Hi,

Here is an example of an .rcs script.  As Ciro told you, first you 
need to have a bootable image, optionally create a checkpoint after 
boot and finally add the benchmarks to the cd image.


#/bin/bash
cd 
/your/path/SPEC_CPU_2017/benchspec/CPU/627.cam4_s/run/run_base_refspeed_aarch64-64.

/sbin/m5 dumpresetstats
/yourpath/SPEC_CPU_2017/benchspec/CPU/627.cam4_s/exe/cam4_s_base.aarch64-64
/sbin/m5 exit

In the example above you simply cd to the directory of the benchmark 
you want to use and then run it.  /sbin/m5 dumperesetstats resets 
your statistics counters and exit is used to finish the execution.  
Note I use spec 2017, which I found that it's best to run directly as 
I do above than use their infrastructure.  Problem is that FS is too 
slow and you waste a lot of time running their python scripts.  Also, 
I would encourage you to learn about simpoints 
<http://gem5.org/Simpoints> if you plan on running SPEC CPU 2006 with 
anything more than the test inputs.  Running with ref will take 
days/weeks.


Best,

Dimitrios Chasapis


On 1/9/20 6:03 PM, Ciro Santilli wrote:

The linked documentation runs an arbitrary benchmark of your choice.
You just have to add SPEC CPU to the image yourself as explained
there. I can't fully automate SPEC CPU build because it is closed source.


On Thu, Jan 9, 2020 at 3:10 PM ABD ALRHMAN ABO ALKHEEL
  <mailto:abdkeel...@hotmail.com>  wrote:

Thanks Ciro, I appreciate your help. Can you provide me an example on .rcs 
script to run the benchmark. Any help would be appreciated. Best Regards 

From: Ciro Santilli  <mailto:ciro.santi...@gmail.com>
Sent: Thursday, January 9, 2020 9:52:28 AM
To: gem5 users mailing list  
<mailto:gem5-users@gem5.org>;abdkeel...@hotmail.com  <mailto:abdkeel...@hotmail.com>  
  <mailto:abdkeel...@hotmail.com>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

1. get Linux to boot, e.g.:
https://github.com/cirosantilli/linux-kernel-module-cheat/tree/657c59249e56d861bb0a437a1b1c757797281910#gem5-buildroot-setup
2. learn to checkpoint at the end of boot, restore, and run an
executable afterwards, e.g.:
https://github.com/cirosantilli/linux-kernel-module-cheat/tree/657c59249e56d861bb0a437a1b1c757797281910#gem5-run-benchmark
3. learn to add your own files to the image, e.g.:
https://github.com/cirosantilli/linux-kernel-module-cheat/tree/657c59249e56d861bb0a437a1b1c757797281910#add-new-files-to-the-buildroot-image

On Thu, Jan 9, 2020 at 1:43 AM AB

Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

2020-01-12 Thread ABD ALRHMAN ABO ALKHEEL
Hi Dear Dimitrios,

I run the CPU2006 benchmark on gem5 in FS mode for 1000 instructions as follows:

The command is :

./build/X86/gem5.fast ./configs/example/fs.py --mem-size=3GB 
--kernel=/home/abdkhail/linux4.19/vmlinux 
--disk-image=/home/abdkhail/ubuntu16.img --script=configs/boot/benchmark.rcS 
--simpoint-interval 1000


The benchmark.rcS

#!/bin/sh

cd 
/home/ubuntu/cpu/benchspec/CPU2006/473.astar/run/run_base_ref_amd64-m64-gcc42-nn./astar_base.amd64-m64-gcc42-nn
/sbin/m5 dumpresetstats
cd 
/home/ubuntu/cpu/benchspec/CPU2006/473.astar/exe/astar_base.amd64-m64-gcc42-nn
/sbin/m5 exit

I am wondering if that works well! any help or update would be appreciated.

Best Regards





From: Dimitrios Chasapis 
Sent: Friday, January 10, 2020 2:03 PM
To: ABD ALRHMAN ABO ALKHEEL ; gem5 users mailing list 

Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode


I am not sure if this is possible in FS, at least not the same way you do in 
SE.  You will need to use simpoints in order to create checkpoints for you 
code.  After that you basically segment your code into smaller, say 100 
instructions per segment, which you can run.  Check the link I sent in my 
previous message.  However note that you will need to run the code for each 
benchmark  twice, once for generating the simpoint files and once to set the 
checkpoints.  For me this can take up to 4 week for the larger codes, and a few 
days for the smaller ones in SPEC CPU 2017.  Once you have the checkpoints 
though, it should take a couple of hours.  I don't know if there is a faster 
way to do this, maybe someone else has a better suggestion.

On 1/10/20 1:19 AM, ABD ALRHMAN ABO ALKHEEL wrote:
Hi Dimitrios, I appreciate your help. How I can run the benchmark for one 
million instruction in the FS mode. In SE mode I used -I 100 . Any help 
would be appreciated. Best Regards

From: Dimitrios Chasapis <mailto:dchas...@bsc.es>
Sent: Thursday, January 9, 2020 5:39:51 PM
To: gem5 users mailing list <mailto:gem5-users@gem5.org>; 
ABD ALRHMAN ABO ALKHEEL <mailto:abdkeel...@hotmail.com>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode


Hi,

Here is an example of an .rcs script.  As Ciro told you, first you need to have 
a bootable image, optionally create a checkpoint after boot and finally add the 
benchmarks to the cd image.

#/bin/bash
cd 
/your/path/SPEC_CPU_2017/benchspec/CPU/627.cam4_s/run/run_base_refspeed_aarch64-64.
/sbin/m5 dumpresetstats
/yourpath/SPEC_CPU_2017/benchspec/CPU/627.cam4_s/exe/cam4_s_base.aarch64-64
/sbin/m5 exit

In the example above you simply cd to the directory of the benchmark you want 
to use and then run it.  /sbin/m5 dumperesetstats resets your statistics 
counters and exit is used to finish the execution.  Note I use spec 2017, which 
I found that it's best to run directly as I do above than use their 
infrastructure.  Problem is that FS is too slow and you waste a lot of time 
running their python scripts.  Also, I would encourage you to learn about 
simpoints<http://gem5.org/Simpoints> if you plan on running SPEC CPU 2006 with 
anything more than the test inputs.  Running with ref will take days/weeks.

Best,

Dimitrios Chasapis


On 1/9/20 6:03 PM, Ciro Santilli wrote:

The linked documentation runs an arbitrary benchmark of your choice.
You just have to add SPEC CPU to the image yourself as explained
there. I can't fully automate SPEC CPU build because it is closed source.


On Thu, Jan 9, 2020 at 3:10 PM ABD ALRHMAN ABO ALKHEEL
<mailto:abdkeel...@hotmail.com> wrote:


Thanks Ciro, I appreciate your help. Can you provide me an example on .rcs 
script to run the benchmark. Any help would be appreciated. Best Regards 

From: Ciro Santilli <mailto:ciro.santi...@gmail.com>
Sent: Thursday, January 9, 2020 9:52:28 AM
To: gem5 users mailing list <mailto:gem5-users@gem5.org>; 
abdkeel...@hotmail.com<mailto:abdkeel...@hotmail.com> 
<mailto:abdkeel...@hotmail.com>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

1. get Linux to boot, e.g.:
https://github.com/cirosantilli/linux-kernel-module-cheat/tree/657c59249e56d861bb0a437a1b1c757797281910#gem5-buildroot-setup
2. learn to checkpoint at the end of boot, restore, and run an
executable afterwards, e.g.:
https://github.com/cirosantilli/linux-kernel-module-cheat/tree/657c59249e56d861bb0a437a1b1c757797281910#gem5-run-benchmark
3. learn to add your own files to the image, e.g.:
https://github.com/cirosantilli/linux-kernel-module-cheat/tree/657c59249e56d861bb0a437a1b1c757797281910#add-new-files-to-the-buildroot-image

On Thu, Jan 9, 2020 at 1:43 AM ABD ALRHMAN ABO ALKHEEL
<mailto:abdkeel...@hotmail.com> wrote:


Hello all, I wanna run benchmark on the gem5 in FS mode. Any help would be 
appreciated. Best Regards
___
gem5-users maili

Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

2020-01-10 Thread Dimitrios Chasapis
I am not sure if this is possible in FS, at least not the same way you 
do in SE.  You will need to use simpoints in order to create checkpoints 
for you code.  After that you basically segment your code into smaller, 
say 100 instructions per segment, which you can run.  Check the link 
I sent in my previous message. However note that you will need to run 
the code for each benchmark  twice, once for generating the simpoint 
files and once to set the checkpoints.  For me this can take up to 4 
week for the larger codes, and a few days for the smaller ones in SPEC 
CPU 2017.  Once you have the checkpoints though, it should take a couple 
of hours.  I don't know if there is a faster way to do this, maybe 
someone else has a better suggestion.


On 1/10/20 1:19 AM, ABD ALRHMAN ABO ALKHEEL wrote:
Hi Dimitrios, I appreciate your help. How I can run the benchmark for 
one million instruction in the FS mode. In SE mode I used -I 100 . 
Any help would be appreciated. Best Regards


*From:* Dimitrios Chasapis 
*Sent:* Thursday, January 9, 2020 5:39:51 PM
*To:* gem5 users mailing list ; ABD ALRHMAN ABO 
ALKHEEL 

*Subject:* Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

Hi,

Here is an example of an .rcs script.  As Ciro told you, first you 
need to have a bootable image, optionally create a checkpoint after 
boot and finally add the benchmarks to the cd image.


#/bin/bash
cd 
/your/path/SPEC_CPU_2017/benchspec/CPU/627.cam4_s/run/run_base_refspeed_aarch64-64.

/sbin/m5 dumpresetstats
/yourpath/SPEC_CPU_2017/benchspec/CPU/627.cam4_s/exe/cam4_s_base.aarch64-64
/sbin/m5 exit

In the example above you simply cd to the directory of the benchmark 
you want to use and then run it.  /sbin/m5 dumperesetstats resets your 
statistics counters and exit is used to finish the execution.  Note I 
use spec 2017, which I found that it's best to run directly as I do 
above than use their infrastructure.  Problem is that FS is too slow 
and you waste a lot of time running their python scripts.  Also, I 
would encourage you to learn about simpoints 
<http://gem5.org/Simpoints> if you plan on running SPEC CPU 2006 with 
anything more than the test inputs.  Running with ref will take 
days/weeks.


Best,

Dimitrios Chasapis


On 1/9/20 6:03 PM, Ciro Santilli wrote:

The linked documentation runs an arbitrary benchmark of your choice.
You just have to add SPEC CPU to the image yourself as explained
there. I can't fully automate SPEC CPU build because it is closed source.


On Thu, Jan 9, 2020 at 3:10 PM ABD ALRHMAN ABO ALKHEEL
  <mailto:abdkeel...@hotmail.com>  wrote:

Thanks Ciro, I appreciate your help. Can you provide me an example on .rcs 
script to run the benchmark. Any help would be appreciated. Best Regards 

From: Ciro Santilli  <mailto:ciro.santi...@gmail.com>
Sent: Thursday, January 9, 2020 9:52:28 AM
To: gem5 users mailing list  
<mailto:gem5-users@gem5.org>;abdkeel...@hotmail.com  <mailto:abdkeel...@hotmail.com>  
  <mailto:abdkeel...@hotmail.com>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

1. get Linux to boot, e.g.:
https://github.com/cirosantilli/linux-kernel-module-cheat/tree/657c59249e56d861bb0a437a1b1c757797281910#gem5-buildroot-setup
2. learn to checkpoint at the end of boot, restore, and run an
executable afterwards, e.g.:
https://github.com/cirosantilli/linux-kernel-module-cheat/tree/657c59249e56d861bb0a437a1b1c757797281910#gem5-run-benchmark
3. learn to add your own files to the image, e.g.:
https://github.com/cirosantilli/linux-kernel-module-cheat/tree/657c59249e56d861bb0a437a1b1c757797281910#add-new-files-to-the-buildroot-image

On Thu, Jan 9, 2020 at 1:43 AM ABD ALRHMAN ABO ALKHEEL
  <mailto:abdkeel...@hotmail.com>  wrote:

Hello all, I wanna run benchmark on the gem5 in FS mode. Any help would be 
appreciated. Best Regards
___
gem5-users mailing list
gem5-users@gem5.org  <mailto:gem5-users@gem5.org>
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

___
gem5-users mailing list
gem5-users@gem5.org  <mailto:gem5-users@gem5.org>
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users



WARNING / LEGAL TEXT: This message is intended only for the use of the 
individual or entity to which it is addressed and may contain 
information which is privileged, confidential, proprietary, or exempt 
from disclosure under applicable law. If you are not the intended 
recipient or the person responsible for delivering the message to the 
intended recipient, you are strictly prohibited from disclosing, 
distributing, copying, or in any way using this message. If you have 
received this communication in error, please notify the sender and 
destroy and delete any copies you may have received.


http://www.bsc.es/disclaimer



http://bsc.es/dis

Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

2020-01-09 Thread ABD ALRHMAN ABO ALKHEEL
Hi Dimitrios, I appreciate your help. How I can run the benchmark for one 
million instruction in the FS mode. In SE mode I used -I 100 . Any help 
would be appreciated. Best Regards

From: Dimitrios Chasapis 
Sent: Thursday, January 9, 2020 5:39:51 PM
To: gem5 users mailing list ; ABD ALRHMAN ABO ALKHEEL 

Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode


Hi,

Here is an example of an .rcs script.  As Ciro told you, first you need to have 
a bootable image, optionally create a checkpoint after boot and finally add the 
benchmarks to the cd image.

#/bin/bash
cd 
/your/path/SPEC_CPU_2017/benchspec/CPU/627.cam4_s/run/run_base_refspeed_aarch64-64.
/sbin/m5 dumpresetstats
/yourpath/SPEC_CPU_2017/benchspec/CPU/627.cam4_s/exe/cam4_s_base.aarch64-64
/sbin/m5 exit

In the example above you simply cd to the directory of the benchmark you want 
to use and then run it.  /sbin/m5 dumperesetstats resets your statistics 
counters and exit is used to finish the execution.  Note I use spec 2017, which 
I found that it's best to run directly as I do above than use their 
infrastructure.  Problem is that FS is too slow and you waste a lot of time 
running their python scripts.  Also, I would encourage you to learn about 
simpoints<http://gem5.org/Simpoints> if you plan on running SPEC CPU 2006 with 
anything more than the test inputs.  Running with ref will take days/weeks.

Best,

Dimitrios Chasapis


On 1/9/20 6:03 PM, Ciro Santilli wrote:

The linked documentation runs an arbitrary benchmark of your choice.
You just have to add SPEC CPU to the image yourself as explained
there. I can't fully automate SPEC CPU build because it is closed source.


On Thu, Jan 9, 2020 at 3:10 PM ABD ALRHMAN ABO ALKHEEL
<mailto:abdkeel...@hotmail.com> wrote:



Thanks Ciro, I appreciate your help. Can you provide me an example on .rcs 
script to run the benchmark. Any help would be appreciated. Best Regards 

From: Ciro Santilli <mailto:ciro.santi...@gmail.com>
Sent: Thursday, January 9, 2020 9:52:28 AM
To: gem5 users mailing list <mailto:gem5-users@gem5.org>; 
abdkeel...@hotmail.com<mailto:abdkeel...@hotmail.com> 
<mailto:abdkeel...@hotmail.com>
Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

1. get Linux to boot, e.g.:
https://github.com/cirosantilli/linux-kernel-module-cheat/tree/657c59249e56d861bb0a437a1b1c757797281910#gem5-buildroot-setup
2. learn to checkpoint at the end of boot, restore, and run an
executable afterwards, e.g.:
https://github.com/cirosantilli/linux-kernel-module-cheat/tree/657c59249e56d861bb0a437a1b1c757797281910#gem5-run-benchmark
3. learn to add your own files to the image, e.g.:
https://github.com/cirosantilli/linux-kernel-module-cheat/tree/657c59249e56d861bb0a437a1b1c757797281910#add-new-files-to-the-buildroot-image

On Thu, Jan 9, 2020 at 1:43 AM ABD ALRHMAN ABO ALKHEEL
<mailto:abdkeel...@hotmail.com> wrote:



Hello all, I wanna run benchmark on the gem5 in FS mode. Any help would be 
appreciated. Best Regards
___
gem5-users mailing list
gem5-users@gem5.org<mailto:gem5-users@gem5.org>
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users


___
gem5-users mailing list
gem5-users@gem5.org<mailto:gem5-users@gem5.org>
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users


WARNING / LEGAL TEXT: This message is intended only for the use of the 
individual or entity to which it is addressed and may contain information which 
is privileged, confidential, proprietary, or exempt from disclosure under 
applicable law. If you are not the intended recipient or the person responsible 
for delivering the message to the intended recipient, you are strictly 
prohibited from disclosing, distributing, copying, or in any way using this 
message. If you have received this communication in error, please notify the 
sender and destroy and delete any copies you may have received.

http://www.bsc.es/disclaimer
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

2020-01-09 Thread Dimitrios Chasapis

Hi,

Here is an example of an .rcs script.  As Ciro told you, first you need 
to have a bootable image, optionally create a checkpoint after boot and 
finally add the benchmarks to the cd image.


#/bin/bash
cd 
/your/path/SPEC_CPU_2017/benchspec/CPU/627.cam4_s/run/run_base_refspeed_aarch64-64.

/sbin/m5 dumpresetstats
/yourpath/SPEC_CPU_2017/benchspec/CPU/627.cam4_s/exe/cam4_s_base.aarch64-64
/sbin/m5 exit

In the example above you simply cd to the directory of the benchmark you 
want to use and then run it.  /sbin/m5 dumperesetstats resets your 
statistics counters and exit is used to finish the execution.  Note I 
use spec 2017, which I found that it's best to run directly as I do 
above than use their infrastructure.  Problem is that FS is too slow and 
you waste a lot of time running their python scripts.  Also, I would 
encourage you to learn about simpoints <http://gem5.org/Simpoints> if 
you plan on running SPEC CPU 2006 with anything more than the test 
inputs. Running with ref will take days/weeks.


Best,

Dimitrios Chasapis


On 1/9/20 6:03 PM, Ciro Santilli wrote:

The linked documentation runs an arbitrary benchmark of your choice.
You just have to add SPEC CPU to the image yourself as explained
there. I can't fully automate SPEC CPU build because it is closed source.


On Thu, Jan 9, 2020 at 3:10 PM ABD ALRHMAN ABO ALKHEEL
 wrote:

Thanks Ciro, I appreciate your help. Can you provide me an example on .rcs 
script to run the benchmark. Any help would be appreciated. Best Regards 

From: Ciro Santilli 
Sent: Thursday, January 9, 2020 9:52:28 AM
To: gem5 users mailing list ; abdkeel...@hotmail.com 

Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

1. get Linux to boot, e.g.:
https://github.com/cirosantilli/linux-kernel-module-cheat/tree/657c59249e56d861bb0a437a1b1c757797281910#gem5-buildroot-setup
2. learn to checkpoint at the end of boot, restore, and run an
executable afterwards, e.g.:
https://github.com/cirosantilli/linux-kernel-module-cheat/tree/657c59249e56d861bb0a437a1b1c757797281910#gem5-run-benchmark
3. learn to add your own files to the image, e.g.:
https://github.com/cirosantilli/linux-kernel-module-cheat/tree/657c59249e56d861bb0a437a1b1c757797281910#add-new-files-to-the-buildroot-image

On Thu, Jan 9, 2020 at 1:43 AM ABD ALRHMAN ABO ALKHEEL
 wrote:

Hello all, I wanna run benchmark on the gem5 in FS mode. Any help would be 
appreciated. Best Regards
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users



http://bsc.es/disclaimer___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

2020-01-09 Thread Ciro Santilli
The linked documentation runs an arbitrary benchmark of your choice.
You just have to add SPEC CPU to the image yourself as explained
there. I can't fully automate SPEC CPU build because it is closed source.


On Thu, Jan 9, 2020 at 3:10 PM ABD ALRHMAN ABO ALKHEEL
 wrote:
>
> Thanks Ciro, I appreciate your help. Can you provide me an example on .rcs 
> script to run the benchmark. Any help would be appreciated. Best Regards 
> 
> From: Ciro Santilli 
> Sent: Thursday, January 9, 2020 9:52:28 AM
> To: gem5 users mailing list ; abdkeel...@hotmail.com 
> 
> Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode
>
> 1. get Linux to boot, e.g.:
> https://github.com/cirosantilli/linux-kernel-module-cheat/tree/657c59249e56d861bb0a437a1b1c757797281910#gem5-buildroot-setup
> 2. learn to checkpoint at the end of boot, restore, and run an
> executable afterwards, e.g.:
> https://github.com/cirosantilli/linux-kernel-module-cheat/tree/657c59249e56d861bb0a437a1b1c757797281910#gem5-run-benchmark
> 3. learn to add your own files to the image, e.g.:
> https://github.com/cirosantilli/linux-kernel-module-cheat/tree/657c59249e56d861bb0a437a1b1c757797281910#add-new-files-to-the-buildroot-image
>
> On Thu, Jan 9, 2020 at 1:43 AM ABD ALRHMAN ABO ALKHEEL
>  wrote:
> >
> > Hello all, I wanna run benchmark on the gem5 in FS mode. Any help would be 
> > appreciated. Best Regards
> > ___
> > gem5-users mailing list
> > gem5-users@gem5.org
> > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

2020-01-09 Thread ABD ALRHMAN ABO ALKHEEL
Thanks Ciro, I appreciate your help. Can you provide me an example on .rcs 
script to run the benchmark. Any help would be appreciated. Best Regards

From: Ciro Santilli 
Sent: Thursday, January 9, 2020 9:52:28 AM
To: gem5 users mailing list ; abdkeel...@hotmail.com 

Subject: Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

1. get Linux to boot, e.g.:
https://github.com/cirosantilli/linux-kernel-module-cheat/tree/657c59249e56d861bb0a437a1b1c757797281910#gem5-buildroot-setup
2. learn to checkpoint at the end of boot, restore, and run an
executable afterwards, e.g.:
https://github.com/cirosantilli/linux-kernel-module-cheat/tree/657c59249e56d861bb0a437a1b1c757797281910#gem5-run-benchmark
3. learn to add your own files to the image, e.g.:
https://github.com/cirosantilli/linux-kernel-module-cheat/tree/657c59249e56d861bb0a437a1b1c757797281910#add-new-files-to-the-buildroot-image

On Thu, Jan 9, 2020 at 1:43 AM ABD ALRHMAN ABO ALKHEEL
 wrote:
>
> Hello all, I wanna run benchmark on the gem5 in FS mode. Any help would be 
> appreciated. Best Regards
> ___
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] Run CPU 2006 benchmark on gem5 fs mode

2020-01-09 Thread Ciro Santilli
1. get Linux to boot, e.g.:
https://github.com/cirosantilli/linux-kernel-module-cheat/tree/657c59249e56d861bb0a437a1b1c757797281910#gem5-buildroot-setup
2. learn to checkpoint at the end of boot, restore, and run an
executable afterwards, e.g.:
https://github.com/cirosantilli/linux-kernel-module-cheat/tree/657c59249e56d861bb0a437a1b1c757797281910#gem5-run-benchmark
3. learn to add your own files to the image, e.g.:
https://github.com/cirosantilli/linux-kernel-module-cheat/tree/657c59249e56d861bb0a437a1b1c757797281910#add-new-files-to-the-buildroot-image

On Thu, Jan 9, 2020 at 1:43 AM ABD ALRHMAN ABO ALKHEEL
 wrote:
>
> Hello all, I wanna run benchmark on the gem5 in FS mode. Any help would be 
> appreciated. Best Regards
> ___
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

[gem5-users] Run CPU 2006 benchmark on gem5 fs mode

2020-01-08 Thread ABD ALRHMAN ABO ALKHEEL
Hello all, I wanna run benchmark on the gem5 in FS mode. Any help would be 
appreciated. Best Regards
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users