[gem5-users] gem5 fs mode error

2021-04-01 Thread ABD ALRHMAN ABO ALKHEEL via gem5-users
Hello Everyone,

I got the following error when i run spec2006 benchmark on gem5 fs mode.
Any help would be appreciated.

Error

Aborting: command not found
abdkhail@proton:~/fs_gem5/gem5$ EXT4-fs (hda1): Remounting filesystem read-only
-bash: syntax error near unexpected token `hda1'

___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] run a binary file for 3 times on gem5

2021-01-31 Thread ABD ALRHMAN ABO ALKHEEL via gem5-users
Hi All,

How to run a binary file three times on gem5? I want to find the execution time 
for a binary file for 1M instructions. However, the gem5 is completed on 400K 
instructions because the binary file is completed. So how I can run it three 
times in order to reach 1M instructions?

For example, If I want to run the hello world on gem5 using the following 
command, the gem5 will end before reach 10k insts since hello needs only 5k 
insts to finish. So ho i can run it for 3 times?

build/X86/gem5.opt configs/example/se.py -I 1 -c 
tests/test-progs/hello/bin/x86/linux/hello --cpu-type=DerivO3CPU --caches

Any help would be appreciated.

Thanks
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] run binary file 3 times on gem5

2021-01-31 Thread ABD ALRHMAN ABO ALKHEEL via gem5-users
Hi All,

How to run a binary file three times on gem5? I want to find the execution time 
for a binary file for 1M instructions. However, the gem5 is completed on 400K 
instructions because the binary file is completed. So how I can run it three 
times in order to reach 1M instructions?

Any help would be appreciated.

Thanks
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Re: PTE Flags

2020-12-21 Thread ABD ALRHMAN ABO ALKHEEL via gem5-users
Hi Ayaz,

Thanks for your help.

Can I do it through the page cache by getting the page (page descriptor 
structure) corresponding to the file in vfs_write call? If so do you know where 
should I make the changes?

Thanks


From: Ayaz Akram 
Sent: Sunday, December 20, 2020 8:28 AM
To: gem5 users mailing list 
Cc: gem5-users ; ABD ALRHMAN ABO ALKHEEL 

Subject: Re: [gem5-users] PTE Flags

Hi,

Based on my understanding of what you are trying to do, I would suggest looking 
into src/arch/x86/tlb.cc (assuming you want to use x86) around line 400, to see 
how to access page table entries from a process pointer. syscall_emul.hh 
already includes sim/process.hh, so you can follow what is done in tlb.cc and 
play with the flags that you want to change.

-Ayaz

On Fri, Dec 11, 2020 at 5:08 PM ABD ALRHMAN ABO ALKHEEL via gem5-users 
mailto:gem5-users@gem5.org>> wrote:
Hello Everyone,

I am currently working on write_func system call in syscall_hh and i want to 
prevent writing to the file by changing the page table entry (PTE) flag. Where 
should i change?

Any help would be appreciated.

Thanks
___
gem5-users mailing list -- gem5-users@gem5.org<mailto:gem5-users@gem5.org>
To unsubscribe send an email to 
gem5-users-le...@gem5.org<mailto:gem5-users-le...@gem5.org>
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Changing PTE flags from write_func

2020-12-19 Thread ABD ALRHMAN ABO ALKHEEL via gem5-users
Hi All, is there anyway to modify the page table entry PTE flags from the 
write_func function or is there anyway to prevent writing to a file from the 
from the write_func? Any help would be appreciated. Thanks
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] PTE Flags

2020-12-11 Thread ABD ALRHMAN ABO ALKHEEL via gem5-users
Hello Everyone,

I am currently working on write_func system call in syscall_hh and i want to 
prevent writing to the file by changing the page table entry (PTE) flag. Where 
should i change?

Any help would be appreciated.

Thanks
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] fatal: syscall creat (#85) unimplemented. Memory Usage: 733824 KBytes

2020-12-03 Thread ABD ALRHMAN ABO ALKHEEL via gem5-users
Hi ALL,

I am trying to run the binary tar on gem5 in se mode and i got the following 
error.

fatal: syscall creat (#85) unimplemented.Memory Usage: 733824 KBytes

I used this command:
build/X86/gem5.opt configs/example/se.py -c /bin/tar -o "-cvfz arc.tar.gz o1" 
--cpu-type=DerivO3CPU --caches

Any help would be appreciated.

Thanks

___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] track the write syscall in the kernel

2020-10-24 Thread ABD ALRHMAN ABO ALKHEEL via gem5-users
Hi All;

I want to track the write syscall in order to do some calculations on the 
written bytes. I just want to know what is the function that does write syscall 
function and how I can the written bytes from it.

Any help would be appreciated.

Thanks

https://github.com/torvalds/linux/blob/master/fs/read_write.c
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Re: Tracking read()/write() system calls in gem5

2020-10-02 Thread ABD ALRHMAN ABO ALKHEEL via gem5-users
Thanks for your email. If I want to print the data of read system call and 
write system call. Can I get those data from readfunc and writefunc here
In sycall_emul.hh: 
https://gem5.googlesource.com/public/gem5/+/refs/heads/stable/src/sim/syscall_emul.hh#2454

From: Ciro Santilli via gem5-users 
Sent: Wednesday, September 23, 2020 10:38 AM
To: gem5 users mailing list 
Cc: Ciro Santilli 
Subject: [gem5-users] Re: Tracking read()/write() system calls in gem5

Also have a look at --debug-flags SyscallBase,SyscallVerbose


On Tue, Sep 22, 2020 at 8:26 PM ABD ALRHMAN ABO ALKHEEL via gem5-users
 wrote:
>
> Hi All, can I track the read()/write() system calls in GEM5 in SE mode? If 
> so, how I can do that? Any help would be appreciated. Thanks
> ___
> gem5-users mailing list -- gem5-users@gem5.org
> To unsubscribe send an email to gem5-users-le...@gem5.org
> %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Tracking read()/write() system calls in gem5

2020-09-22 Thread ABD ALRHMAN ABO ALKHEEL via gem5-users
Hi All, can I track the read()/write() system calls in GEM5 in SE mode? If so, 
how I can do that? Any help would be appreciated. Thanks
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Re: Cannot read from main memory with a new cpu port similar to dcacheport

2020-09-02 Thread ABD ALRHMAN ABO ALKHEEL via gem5-users
Hi Muhammad,
I would like to access memory to read data from it for debugging purpose? 
Kindly can you tell how did you create a cpu port to access memory and read the 
256 bytes from a specific address? Thanks

From: Muhammad Aamir via gem5-users 
Sent: Wednesday, September 2, 2020 7:29 PM
To: gem5 users mailing list 
Cc: Muhammad Aamir 
Subject: [gem5-users] Cannot read from main memory with a new cpu port similar 
to dcacheport

Hi everyone,

I have created a new cpu port which accesses the main memory and bypassing the 
caches when reading from memory. When I try to read from the main memory via 
this port, I sometimes fail to read it and it is read as a 0. This only happens 
when I try to read a value almost after updating it. i.e. it does not update 
that value in the main memory.

What I think is that the value is still stored in the cache, and the cache has 
not yet updated that value in the memory.
How can I make sure that the cache has also written it to the main memory? i.e. 
enforce writethrough.

If my observation is wrong, would someone correct me as to why this is 
happening and what I might be doing wrong?


Thanks,
Aamir
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Re: Sending more than one memory request to the memory through sendTimingReq

2020-08-18 Thread ABD ALRHMAN ABO ALKHEEL via gem5-users
Hi Muhammad,
I want to read the data (256) from an memory address in Gem5. I did the 
following but I have two issues which are how to specify the data size (256 
bytes) and get the memory port. Any help would be appreciated.

RequestPtr req1;
PacketPtr newPkt = new Packet(req1, MemCmd::ReadReq);
newPkt->setAddr(pkt->getAddr());
cpu->getPort().sendFunctional(newPkt)

From: Muhammad Aamir via gem5-users 
Sent: Tuesday, August 18, 2020 1:04 PM
To: Jason Lowe-Power ; gem5 users mailing list 

Cc: Muhammad Aamir 
Subject: [gem5-users] Re: Sending more than one memory request to the memory 
through sendTimingReq

Hi Jason,
I was able to solve the problem, i had set my MSHR's to 1 thus making it a 
blocking cache. Needed to change this parameter. Thank you for pointing out to 
look at my memory system.

Thanks,
Aamir

On Tue, 18 Aug 2020 at 12:43, Muhammad Aamir 
mailto:aamir.sa...@bilkent.edu.tr>> wrote:
Hi Jason,

Is there a parameter that I can see where my caches are accepting more than one 
request per cycle or not. Also assuming that I am not sending requests in the 
same cycle but in different cycles, they still wait for one response to come 
back before another one is issued. Also after changing my bars and not using 
the non-coherent ones, i get the same results.

My system is configured as follows: 
https://drive.google.com/drive/folders/18OtZhS8nEAtlg-BJ7GtoDe_kR_DtxLdd?usp=sharing.
  Would you be kind enough to check what I am doing wrong?.

Your help is much appreciated

Thanks,
Aamir

On Mon, 17 Aug 2020 at 18:38, Jason Lowe-Power 
mailto:ja...@lowepower.com>> wrote:
Hello,

This depends on your memory system. If your cache can accept more than one 
request per cycle, then the CPU can send more than one request. The 
`sendTimingReq` returns false when the receiver cannot receive another request.

It's hard to know exactly what your memory system looks like, but if you're 
using non-coherent crossbars between different levels of caches, you're 
probably going to be seeing some errors in your memory. The non-coherent 
crossbar was designed to be put below (closer to memory) a "point-of-coherence" 
crossbar. Also, I believe that by default that crossbar is on 16 bytes wide, so 
a single cache line request could take 4 cycles, which might be why the CPU is 
blocking?

Cheers,
Jason

On Sun, Aug 16, 2020 at 12:01 PM Muhammad Aamir via gem5-users 
mailto:gem5-users@gem5.org>> wrote:
Hi everyone,

Is it possible to send more than one memory request from the dcacheport to the 
memory system without stalling the pipeline. What i have seen so far is that 
when one memory instruction is send to the memory, then another memory request 
cannot be send to the memory as sendTimingReq  returns boolean type false. And 
it has to wait until the previous memory response is back then  issue the next 
one .

My goal is to allow the MinorCPU to have overlapping memory requests to the 
memory, therefore is it possible to achieve this by sending more than one 
memory request to the memory? as I cannot figure this out.
I am currently using noncoherent Xbars to connect my caches and the memory 
system, would I need to change it or is there something else that i have to do?

Any help would be appreciated.

Thanks.
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to 
gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Re: Memory Addresses in Gem5

2020-08-16 Thread ABD ALRHMAN ABO ALKHEEL via gem5-users
I forgot to mention that I want to do that on O3CPU.
Thanks


From: ABD ALRHMAN ABO ALKHEEL via gem5-users 
Sent: Sunday, August 16, 2020 7:02 PM
To: Ciro Santilli 
Cc: gem5 users mailing list ; Ahmed, Md Rubel 
; ABD ALRHMAN ABO ALKHEEL 
Subject: [gem5-users] Re: Memory Addresses in Gem5

Hi Ciro,

Thanks for your email.

I added the following after CompleteDataAccess in LSQ_unit_impl to access the 
memory and read data from an address.
I have two issues which are how to specify the data size (256 bytes) and get 
the memory port. Any help would be appreciated.

RequestPtr req1;
PacketPtr newPkt = new Packet(req1, MemCmd::ReadReq);
newPkt->setAddr(pkt->getAddr());
cpu->getPort().sendFunctional(newPkt)


From: Ciro Santilli 
Sent: Sunday, August 16, 2020 5:46 AM
To: ABD ALRHMAN ABO ALKHEEL 
Cc: gem5 users mailing list ; Ahmed, Md Rubel 

Subject: Re: [gem5-users] Re: Memory Addresses in Gem5

On Sat, Aug 15, 2020 at 9:54 PM ABD ALRHMAN ABO ALKHEEL
 wrote:
>
> Hi Ciro,
>
> Could you tell me where can i find the file that does an ifetch for 
> AtomicsimpleCPU in gem5?
>

https://github.com/gem5/gem5/blob/fa70478413e4650d0058cbfe81fd5ce362101994/src/cpu/simple/atomic.cc#L673
up to sendFetch below (find Atomic file source and grep :-) ) Some
notes also under:
https://cirosantilli.com/linux-kernel-module-cheat/#gem5-packet-vs-request


> Also, How to print the data from the packet (I assumed the loaded data is 
> stored in the pkt).
> should I use
> pkt->getRaw()
> or
> pkt->getLE()
> or
> pkt->getBE()
> or
> pkt->setData()
> or
> pkt->writeData()
>

Have a look at the source under Eclipse :-) all of those get the
packet data with small variations, but it is raw binary.

To see it as hex you need to convert binary to ASCII hex first. I want
to push a simple patch for this in the near future, but you can do it
manually easily too for now:
https://stackoverflow.com/a/27173017/895245

> Thanks
>



> 
> From: Ciro Santilli 
> Sent: Wednesday, August 12, 2020 7:18 AM
> To: gem5 users mailing list 
> Cc: Ahmed, Md Rubel ; ABD ALRHMAN ABO ALKHEEL 
> 
> Subject: Re: [gem5-users] Re: Memory Addresses in Gem5
>
> I recommend that you have a look at the source of how AtomicSimpleCPU
> does an ifetch under Eclipse. It should be easy to understand
> everything quickly from there.
>
> The Packet address is physical (which notably what caches and DRAM
> work on), just have a look at the constructor of packet:
>
> Packet(const RequestPtr &_req, MemCmd _cmd)
> :  cmd(_cmd), id((PacketId)_req.get()), req(_req),
>data(nullptr), addr(0), _isSecure(false), size(0),
>_qosValue(0), headerDelay(0), snoopDelay(0),
>payloadDelay(0), senderState(NULL)
> {
> if (req->hasPaddr()) {
> addr = req->getPaddr();
>
> So you have to do translation before. Translation sets the physical
> address on the Request, which contains both _paddr and _vaddr fields.
>
> Another option is to have a look at how some of the memory tests are doing it.
>
> On Wed, Aug 12, 2020 at 1:55 AM ABD ALRHMAN ABO ALKHEEL via gem5-users
>  wrote:
> >
> > Hi,
> >
> > Thank you for your email.
> >
> > Do you have any idea how to construct a packet with a request to read from 
> > the memory address? For instance, let us assume that the address that I 
> > want to read the data from it is (0x2345),  I want to read the 256 bytes of 
> > this address (0x2300-0x23ff)? I want to do that for debugging like this 
> > https://www.gem5.org/_pages/static/scripts/part2/memoryobject/simple_memobj.cc.
> >
> > Any help would be appreciated.
> >
> > Thanks
> >
> > 
> > From: Ahmed, Md Rubel via gem5-users 
> > Sent: Wednesday, August 12, 2020 12:44 AM
> > To: gem5 users mailing list 
> > Cc: Ahmed, Md Rubel 
> > Subject: [gem5-users] Re: Memory Addresses in Gem5
> >
> > Hi,
> >
> > pkt->getAddr()  returns memory address. pkt->print() also returns block 
> > address and offset.
> >
> > Thanks
> > 
> > From: ABD ALRHMAN ABO ALKHEEL via gem5-users 
> > Sent: Tuesday, August 11, 2020 6:32 PM
> > To: gem5 users mailing list ; gem5-users 
> > 
> > Cc: ABD ALRHMAN ABO ALKHEEL 
> > Subject: [gem5-users] Memory Addresses in Gem5
> >
> > Hi All,
> >
> > Does the packet in gem5 have the memory address? for example, does this 
> > pkt->getAddr() return the 

[gem5-users] Re: Memory Addresses in Gem5

2020-08-16 Thread ABD ALRHMAN ABO ALKHEEL via gem5-users
Hi Ciro,

Thanks for your email.

I added the following after CompleteDataAccess in LSQ_unit_impl to access the 
memory and read data from an address.
I have two issues which are how to specify the data size (256 bytes) and get 
the memory port. Any help would be appreciated.

RequestPtr req1;
PacketPtr newPkt = new Packet(req1, MemCmd::ReadReq);
newPkt->setAddr(pkt->getAddr());
cpu->getPort().sendFunctional(newPkt)


From: Ciro Santilli 
Sent: Sunday, August 16, 2020 5:46 AM
To: ABD ALRHMAN ABO ALKHEEL 
Cc: gem5 users mailing list ; Ahmed, Md Rubel 

Subject: Re: [gem5-users] Re: Memory Addresses in Gem5

On Sat, Aug 15, 2020 at 9:54 PM ABD ALRHMAN ABO ALKHEEL
 wrote:
>
> Hi Ciro,
>
> Could you tell me where can i find the file that does an ifetch for 
> AtomicsimpleCPU in gem5?
>

https://github.com/gem5/gem5/blob/fa70478413e4650d0058cbfe81fd5ce362101994/src/cpu/simple/atomic.cc#L673
up to sendFetch below (find Atomic file source and grep :-) ) Some
notes also under:
https://cirosantilli.com/linux-kernel-module-cheat/#gem5-packet-vs-request


> Also, How to print the data from the packet (I assumed the loaded data is 
> stored in the pkt).
> should I use
> pkt->getRaw()
> or
> pkt->getLE()
> or
> pkt->getBE()
> or
> pkt->setData()
> or
> pkt->writeData()
>

Have a look at the source under Eclipse :-) all of those get the
packet data with small variations, but it is raw binary.

To see it as hex you need to convert binary to ASCII hex first. I want
to push a simple patch for this in the near future, but you can do it
manually easily too for now:
https://stackoverflow.com/a/27173017/895245

> Thanks
>



> 
> From: Ciro Santilli 
> Sent: Wednesday, August 12, 2020 7:18 AM
> To: gem5 users mailing list 
> Cc: Ahmed, Md Rubel ; ABD ALRHMAN ABO ALKHEEL 
> 
> Subject: Re: [gem5-users] Re: Memory Addresses in Gem5
>
> I recommend that you have a look at the source of how AtomicSimpleCPU
> does an ifetch under Eclipse. It should be easy to understand
> everything quickly from there.
>
> The Packet address is physical (which notably what caches and DRAM
> work on), just have a look at the constructor of packet:
>
> Packet(const RequestPtr &_req, MemCmd _cmd)
> :  cmd(_cmd), id((PacketId)_req.get()), req(_req),
>data(nullptr), addr(0), _isSecure(false), size(0),
>_qosValue(0), headerDelay(0), snoopDelay(0),
>payloadDelay(0), senderState(NULL)
> {
> if (req->hasPaddr()) {
> addr = req->getPaddr();
>
> So you have to do translation before. Translation sets the physical
> address on the Request, which contains both _paddr and _vaddr fields.
>
> Another option is to have a look at how some of the memory tests are doing it.
>
> On Wed, Aug 12, 2020 at 1:55 AM ABD ALRHMAN ABO ALKHEEL via gem5-users
>  wrote:
> >
> > Hi,
> >
> > Thank you for your email.
> >
> > Do you have any idea how to construct a packet with a request to read from 
> > the memory address? For instance, let us assume that the address that I 
> > want to read the data from it is (0x2345),  I want to read the 256 bytes of 
> > this address (0x2300-0x23ff)? I want to do that for debugging like this 
> > https://www.gem5.org/_pages/static/scripts/part2/memoryobject/simple_memobj.cc.
> >
> > Any help would be appreciated.
> >
> > Thanks
> >
> > 
> > From: Ahmed, Md Rubel via gem5-users 
> > Sent: Wednesday, August 12, 2020 12:44 AM
> > To: gem5 users mailing list 
> > Cc: Ahmed, Md Rubel 
> > Subject: [gem5-users] Re: Memory Addresses in Gem5
> >
> > Hi,
> >
> > pkt->getAddr()  returns memory address. pkt->print() also returns block 
> > address and offset.
> >
> > Thanks
> > 
> > From: ABD ALRHMAN ABO ALKHEEL via gem5-users 
> > Sent: Tuesday, August 11, 2020 6:32 PM
> > To: gem5 users mailing list ; gem5-users 
> > 
> > Cc: ABD ALRHMAN ABO ALKHEEL 
> > Subject: [gem5-users] Memory Addresses in Gem5
> >
> > Hi All,
> >
> > Does the packet in gem5 have the memory address? for example, does this 
> > pkt->getAddr() return the memory address or not? If so, is that address 
> > physical or virtual?
> >
> > Thanks
> >
> > [EXTERNAL EMAIL] DO NOT CLICK links or attachments unless you recognize the 
> > sender and know the content is safe.
> >
> > ___
> > gem5-users mailing list -- gem5-users@gem5.org
> > To unsubscribe send an email to gem5-users-le...@gem5.org
> > %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Re: Memory Addresses in Gem5

2020-08-15 Thread ABD ALRHMAN ABO ALKHEEL via gem5-users
Hi Ciro,

Could you tell me where can i find the file that does an ifetch for 
AtomicsimpleCPU in gem5?

Also, How to print the data from the packet (I assumed the loaded data is 
stored in the pkt).
should I use
pkt->getRaw()
or
pkt->getLE()
or
pkt->getBE()
or
pkt->setData()
or
pkt->writeData()

Thanks


From: Ciro Santilli 
Sent: Wednesday, August 12, 2020 7:18 AM
To: gem5 users mailing list 
Cc: Ahmed, Md Rubel ; ABD ALRHMAN ABO ALKHEEL 

Subject: Re: [gem5-users] Re: Memory Addresses in Gem5

I recommend that you have a look at the source of how AtomicSimpleCPU
does an ifetch under Eclipse. It should be easy to understand
everything quickly from there.

The Packet address is physical (which notably what caches and DRAM
work on), just have a look at the constructor of packet:

Packet(const RequestPtr &_req, MemCmd _cmd)
:  cmd(_cmd), id((PacketId)_req.get()), req(_req),
   data(nullptr), addr(0), _isSecure(false), size(0),
   _qosValue(0), headerDelay(0), snoopDelay(0),
   payloadDelay(0), senderState(NULL)
{
if (req->hasPaddr()) {
addr = req->getPaddr();

So you have to do translation before. Translation sets the physical
address on the Request, which contains both _paddr and _vaddr fields.

Another option is to have a look at how some of the memory tests are doing it.

On Wed, Aug 12, 2020 at 1:55 AM ABD ALRHMAN ABO ALKHEEL via gem5-users
 wrote:
>
> Hi,
>
> Thank you for your email.
>
> Do you have any idea how to construct a packet with a request to read from 
> the memory address? For instance, let us assume that the address that I want 
> to read the data from it is (0x2345),  I want to read the 256 bytes of this 
> address (0x2300-0x23ff)? I want to do that for debugging like this 
> https://www.gem5.org/_pages/static/scripts/part2/memoryobject/simple_memobj.cc.
>
> Any help would be appreciated.
>
> Thanks
>
> 
> From: Ahmed, Md Rubel via gem5-users 
> Sent: Wednesday, August 12, 2020 12:44 AM
> To: gem5 users mailing list 
> Cc: Ahmed, Md Rubel 
> Subject: [gem5-users] Re: Memory Addresses in Gem5
>
> Hi,
>
> pkt->getAddr()  returns memory address. pkt->print() also returns block 
> address and offset.
>
> Thanks
> 
> From: ABD ALRHMAN ABO ALKHEEL via gem5-users 
> Sent: Tuesday, August 11, 2020 6:32 PM
> To: gem5 users mailing list ; gem5-users 
> 
> Cc: ABD ALRHMAN ABO ALKHEEL 
> Subject: [gem5-users] Memory Addresses in Gem5
>
> Hi All,
>
> Does the packet in gem5 have the memory address? for example, does this 
> pkt->getAddr() return the memory address or not? If so, is that address 
> physical or virtual?
>
> Thanks
>
> [EXTERNAL EMAIL] DO NOT CLICK links or attachments unless you recognize the 
> sender and know the content is safe.
>
> ___
> gem5-users mailing list -- gem5-users@gem5.org
> To unsubscribe send an email to gem5-users-le...@gem5.org
> %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Re: Memory Addresses in Gem5

2020-08-12 Thread ABD ALRHMAN ABO ALKHEEL via gem5-users
Thank you very much for your email. Thanks


From: Ciro Santilli 
Sent: Wednesday, August 12, 2020 7:18 AM
To: gem5 users mailing list 
Cc: Ahmed, Md Rubel ; ABD ALRHMAN ABO ALKHEEL 

Subject: Re: [gem5-users] Re: Memory Addresses in Gem5

I recommend that you have a look at the source of how AtomicSimpleCPU
does an ifetch under Eclipse. It should be easy to understand
everything quickly from there.

The Packet address is physical (which notably what caches and DRAM
work on), just have a look at the constructor of packet:

Packet(const RequestPtr &_req, MemCmd _cmd)
:  cmd(_cmd), id((PacketId)_req.get()), req(_req),
   data(nullptr), addr(0), _isSecure(false), size(0),
   _qosValue(0), headerDelay(0), snoopDelay(0),
   payloadDelay(0), senderState(NULL)
{
if (req->hasPaddr()) {
addr = req->getPaddr();

So you have to do translation before. Translation sets the physical
address on the Request, which contains both _paddr and _vaddr fields.

Another option is to have a look at how some of the memory tests are doing it.

On Wed, Aug 12, 2020 at 1:55 AM ABD ALRHMAN ABO ALKHEEL via gem5-users
 wrote:
>
> Hi,
>
> Thank you for your email.
>
> Do you have any idea how to construct a packet with a request to read from 
> the memory address? For instance, let us assume that the address that I want 
> to read the data from it is (0x2345),  I want to read the 256 bytes of this 
> address (0x2300-0x23ff)? I want to do that for debugging like this 
> https://www.gem5.org/_pages/static/scripts/part2/memoryobject/simple_memobj.cc.
>
> Any help would be appreciated.
>
> Thanks
>
> 
> From: Ahmed, Md Rubel via gem5-users 
> Sent: Wednesday, August 12, 2020 12:44 AM
> To: gem5 users mailing list 
> Cc: Ahmed, Md Rubel 
> Subject: [gem5-users] Re: Memory Addresses in Gem5
>
> Hi,
>
> pkt->getAddr()  returns memory address. pkt->print() also returns block 
> address and offset.
>
> Thanks
> 
> From: ABD ALRHMAN ABO ALKHEEL via gem5-users 
> Sent: Tuesday, August 11, 2020 6:32 PM
> To: gem5 users mailing list ; gem5-users 
> 
> Cc: ABD ALRHMAN ABO ALKHEEL 
> Subject: [gem5-users] Memory Addresses in Gem5
>
> Hi All,
>
> Does the packet in gem5 have the memory address? for example, does this 
> pkt->getAddr() return the memory address or not? If so, is that address 
> physical or virtual?
>
> Thanks
>
> [EXTERNAL EMAIL] DO NOT CLICK links or attachments unless you recognize the 
> sender and know the content is safe.
>
> ___
> gem5-users mailing list -- gem5-users@gem5.org
> To unsubscribe send an email to gem5-users-le...@gem5.org
> %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Re: Memory Addresses in Gem5

2020-08-11 Thread ABD ALRHMAN ABO ALKHEEL via gem5-users
Hi,

Thank you for your email.

Do you have any idea how to construct a packet with a request to read from the 
memory address? For instance, let us assume that the address that I want to 
read the data from it is (0x2345),  I want to read the 256 bytes of this 
address (0x2300-0x23ff)? I want to do that for debugging like this 
https://www.gem5.org/_pages/static/scripts/part2/memoryobject/simple_memobj.cc.

Any help would be appreciated.

Thanks


From: Ahmed, Md Rubel via gem5-users 
Sent: Wednesday, August 12, 2020 12:44 AM
To: gem5 users mailing list 
Cc: Ahmed, Md Rubel 
Subject: [gem5-users] Re: Memory Addresses in Gem5

Hi,

pkt->getAddr()  returns memory address. pkt->print() also returns block address 
and offset.

Thanks

From: ABD ALRHMAN ABO ALKHEEL via gem5-users 
Sent: Tuesday, August 11, 2020 6:32 PM
To: gem5 users mailing list ; gem5-users 

Cc: ABD ALRHMAN ABO ALKHEEL 
Subject: [gem5-users] Memory Addresses in Gem5

Hi All,

Does the packet in gem5 have the memory address? for example, does this 
pkt->getAddr() return the memory address or not? If so, is that address 
physical or virtual?

Thanks

[EXTERNAL EMAIL] DO NOT CLICK links or attachments unless you recognize the 
sender and know the content is safe.
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Memory Addresses in Gem5

2020-08-11 Thread ABD ALRHMAN ABO ALKHEEL via gem5-users
Hi All,

Does the packet in gem5 have the memory address? for example, does this 
pkt->getAddr() return the memory address or not? If so, is that address 
physical or virtual?

Thanks
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Re: Reading from memory in Gem5

2020-08-07 Thread ABD ALRHMAN ABO ALKHEEL via gem5-users
Hello Jason,

It is for a debug-only read and I want to see what is in the main memory only 
not in the cache.

Thanks for your email, I really appreciate that.


From: Jason Lowe-Power 
Sent: Friday, August 7, 2020 5:52 PM
To: ABD ALRHMAN ABO ALKHEEL 
Cc: gem5 users mailing list 
Subject: Re: [gem5-users] Re: Reading from memory in Gem5

Hello,

Is this a debug-only read or are you trying to simulate the timing for the 
read? Do you want to see what's in the main memory or do you want to see the 
up-to-date values in the caches? The answers to these questions will drive what 
type of access you want to make and what object you want to use to make the 
access.

Generally, you can simply construct a packet and send a request of any size to 
any object. See 
http://www.gem5.org/documentation/learning_gem5/part2/simplecache/ for details 
on how to send/receive memory requests.

Cheers,
Jason

PS: There is no need to send multiple emails. People will either respond or 
they won't. Spamming the list (and individuals) will *decrease* the chance of a 
response due to causing people to get frustrated. Please don't stop asking 
questions! But it's important to be polite when asking them :).

On Thu, Aug 6, 2020 at 12:44 PM ABD ALRHMAN ABO ALKHEEL 
mailto:abdkeel...@hotmail.com>> wrote:
Hi Jason,

I want to clarify what I want to do; I want to run a program on gem5 (in SE 
mode) for 1M instructions and I want to save the memory addresses that every LD 
instruction loads data from ( I can get those addresses from the pushRequest 
method in the lsq) http://doxygen.gem5.org/release/current/classLSQ.html and 
saving those addresses in a table (map). After a specific time for example 
(every100k instructions), I want to access the memory to read the data from 
those addresses. For instance, let us assume that the address that load 
instruction loads data from it is (0x78226e68), can I read the content of 
this memory address? Also can I read the 256 bytes of this address 
(0x78226e00-0x78226eff)? If so, how?

Thanks



From: Jason Lowe-Power mailto:ja...@lowepower.com>>
Sent: Tuesday, August 4, 2020 4:41 PM
To: ABD ALRHMAN ABO ALKHEEL 
mailto:abdkeel...@hotmail.com>>; gem5 users mailing 
list mailto:gem5-users@gem5.org>>
Subject: Re: [gem5-users] Re: Reading from memory in Gem5

Hello,

First of all, please reply to the users list, not directly to the person who 
responded. This allows everyone to see answers and/or chime in and help.

Second, the page you linked is out of date. Please use the main gem5 website 
for all of the up to date documentation (e.g., 
http://doxygen.gem5.org/release/current/classLSQUnit.html)

Third, I still don't fully understand what your goals are. However, you can use 
the system port (actually, I think I was wrong before, you should use the 
"getPort" function, not "getSystemPort") to make functional (or debug) accesses 
to the memory. You can create a `Packet` with a `Request` and send a functional 
request across the port (i.e., call sendFunctional(pkt)). You can use either 
virtual (in SE mode) or physical address (in both modes). I am sure there are 
some caveats to using virtual addresses, but I don't know exactly what they are.

If you're trying to make new timing accesses, then you should use the main 
"dcache_port" and "icache_port" that are connected to the CPU. Again, you can 
construct a Packet object with a Request and send it across the port (e.g., 
sendTimingReq(pkt)).

You may want to read up on the details of how gem5's memory objects work: 
http://www.gem5.org/documentation/learning_gem5/part2/memoryobject/

Cheers,
Jason



On Mon, Aug 3, 2020 at 1:15 PM ABD ALRHMAN ABO ALKHEEL 
mailto:abdkeel...@hotmail.com>> wrote:
Hi Jason,

Thanks for your email.

What I want to do is finding the memory address that the LD instruction loads 
data from ( I can get the physical and virtual address from the Read method in 
the lsqunit)http://pages.cs.wisc.edu/~swilson/gem5-docs/classLSQUnit.html and 
saving those addresses. After a specific time, I want to access the memory to 
read the data from those addresses. Can I use getSystemPort function to access 
the memory and read the data from those addresses? If so, should I use the 
virtual address or the physical address?

Thanks



From: Jason Lowe-Power mailto:ja...@lowepower.com>>
Sent: Monday, August 3, 2020 3:26 PM
To: gem5 users mailing list mailto:gem5-users@gem5.org>>
Cc: gem5-users 
mailto:gem5-users-boun...@gem5.org>>; ABD ALRHMAN 
ABO ALKHEEL mailto:abdkeel...@hotmail.com>>
Subject: Re: [gem5-users] Re: Reading from memory in Gem5

Hello,

This sounds like you probably want to use "functional" accesses. These are 
built for introspection and debugging, which is what it sounds like you want to 
do. Using the System ob

[gem5-users] Re: Reading from memory in Gem5

2020-08-07 Thread ABD ALRHMAN ABO ALKHEEL via gem5-users
Hi Jason,

Thanks for your email.

I am sorry about that, I sent the second email in order to update the first one 
about reading the memory with 256 bytes size of the data not to make any 
spamming.

Thanks


From: Jason Lowe-Power 
Sent: Friday, August 7, 2020 5:52 PM
To: ABD ALRHMAN ABO ALKHEEL 
Cc: gem5 users mailing list 
Subject: Re: [gem5-users] Re: Reading from memory in Gem5

Hello,

Is this a debug-only read or are you trying to simulate the timing for the 
read? Do you want to see what's in the main memory or do you want to see the 
up-to-date values in the caches? The answers to these questions will drive what 
type of access you want to make and what object you want to use to make the 
access.

Generally, you can simply construct a packet and send a request of any size to 
any object. See 
http://www.gem5.org/documentation/learning_gem5/part2/simplecache/ for details 
on how to send/receive memory requests.

Cheers,
Jason

PS: There is no need to send multiple emails. People will either respond or 
they won't. Spamming the list (and individuals) will *decrease* the chance of a 
response due to causing people to get frustrated. Please don't stop asking 
questions! But it's important to be polite when asking them :).

On Thu, Aug 6, 2020 at 12:44 PM ABD ALRHMAN ABO ALKHEEL 
mailto:abdkeel...@hotmail.com>> wrote:
Hi Jason,

I want to clarify what I want to do; I want to run a program on gem5 (in SE 
mode) for 1M instructions and I want to save the memory addresses that every LD 
instruction loads data from ( I can get those addresses from the pushRequest 
method in the lsq) http://doxygen.gem5.org/release/current/classLSQ.html and 
saving those addresses in a table (map). After a specific time for example 
(every100k instructions), I want to access the memory to read the data from 
those addresses. For instance, let us assume that the address that load 
instruction loads data from it is (0x78226e68), can I read the content of 
this memory address? Also can I read the 256 bytes of this address 
(0x78226e00-0x78226eff)? If so, how?

Thanks



From: Jason Lowe-Power mailto:ja...@lowepower.com>>
Sent: Tuesday, August 4, 2020 4:41 PM
To: ABD ALRHMAN ABO ALKHEEL 
mailto:abdkeel...@hotmail.com>>; gem5 users mailing 
list mailto:gem5-users@gem5.org>>
Subject: Re: [gem5-users] Re: Reading from memory in Gem5

Hello,

First of all, please reply to the users list, not directly to the person who 
responded. This allows everyone to see answers and/or chime in and help.

Second, the page you linked is out of date. Please use the main gem5 website 
for all of the up to date documentation (e.g., 
http://doxygen.gem5.org/release/current/classLSQUnit.html)

Third, I still don't fully understand what your goals are. However, you can use 
the system port (actually, I think I was wrong before, you should use the 
"getPort" function, not "getSystemPort") to make functional (or debug) accesses 
to the memory. You can create a `Packet` with a `Request` and send a functional 
request across the port (i.e., call sendFunctional(pkt)). You can use either 
virtual (in SE mode) or physical address (in both modes). I am sure there are 
some caveats to using virtual addresses, but I don't know exactly what they are.

If you're trying to make new timing accesses, then you should use the main 
"dcache_port" and "icache_port" that are connected to the CPU. Again, you can 
construct a Packet object with a Request and send it across the port (e.g., 
sendTimingReq(pkt)).

You may want to read up on the details of how gem5's memory objects work: 
http://www.gem5.org/documentation/learning_gem5/part2/memoryobject/

Cheers,
Jason



On Mon, Aug 3, 2020 at 1:15 PM ABD ALRHMAN ABO ALKHEEL 
mailto:abdkeel...@hotmail.com>> wrote:
Hi Jason,

Thanks for your email.

What I want to do is finding the memory address that the LD instruction loads 
data from ( I can get the physical and virtual address from the Read method in 
the lsqunit)http://pages.cs.wisc.edu/~swilson/gem5-docs/classLSQUnit.html and 
saving those addresses. After a specific time, I want to access the memory to 
read the data from those addresses. Can I use getSystemPort function to access 
the memory and read the data from those addresses? If so, should I use the 
virtual address or the physical address?

Thanks



From: Jason Lowe-Power mailto:ja...@lowepower.com>>
Sent: Monday, August 3, 2020 3:26 PM
To: gem5 users mailing list mailto:gem5-users@gem5.org>>
Cc: gem5-users 
mailto:gem5-users-boun...@gem5.org>>; ABD ALRHMAN 
ABO ALKHEEL mailto:abdkeel...@hotmail.com>>
Subject: Re: [gem5-users] Re: Reading from memory in Gem5

Hello,

This sounds like you probably want to use "functional" accesses. These are 
built for introspection and debugging, which is what it sou

[gem5-users] Re: Reading from memory in Gem5

2020-08-06 Thread ABD ALRHMAN ABO ALKHEEL via gem5-users
Hi Jason,

I want to clarify what I want to do; I want to run a program on gem5 (in SE 
mode) for 1M instructions and I want to save the memory addresses that every LD 
instruction loads data from ( I can get those addresses from the pushRequest 
method in the lsq) http://doxygen.gem5.org/release/current/classLSQ.html and 
saving those addresses in a table (map). After a specific time for example 
(every100k instructions), I want to access the memory to read the data from 
those addresses. For instance, let us assume that the address that load 
instruction loads data from it is (0x78226e68), can I read the content of 
this memory address? Also can I read the 256 bytes of this address 
(0x78226e00-0x78226eff)? If so, how?

Thanks



From: Jason Lowe-Power 
Sent: Tuesday, August 4, 2020 4:41 PM
To: ABD ALRHMAN ABO ALKHEEL ; gem5 users mailing list 

Subject: Re: [gem5-users] Re: Reading from memory in Gem5

Hello,

First of all, please reply to the users list, not directly to the person who 
responded. This allows everyone to see answers and/or chime in and help.

Second, the page you linked is out of date. Please use the main gem5 website 
for all of the up to date documentation (e.g., 
http://doxygen.gem5.org/release/current/classLSQUnit.html)

Third, I still don't fully understand what your goals are. However, you can use 
the system port (actually, I think I was wrong before, you should use the 
"getPort" function, not "getSystemPort") to make functional (or debug) accesses 
to the memory. You can create a `Packet` with a `Request` and send a functional 
request across the port (i.e., call sendFunctional(pkt)). You can use either 
virtual (in SE mode) or physical address (in both modes). I am sure there are 
some caveats to using virtual addresses, but I don't know exactly what they are.

If you're trying to make new timing accesses, then you should use the main 
"dcache_port" and "icache_port" that are connected to the CPU. Again, you can 
construct a Packet object with a Request and send it across the port (e.g., 
sendTimingReq(pkt)).

You may want to read up on the details of how gem5's memory objects work: 
http://www.gem5.org/documentation/learning_gem5/part2/memoryobject/

Cheers,
Jason



On Mon, Aug 3, 2020 at 1:15 PM ABD ALRHMAN ABO ALKHEEL 
mailto:abdkeel...@hotmail.com>> wrote:
Hi Jason,

Thanks for your email.

What I want to do is finding the memory address that the LD instruction loads 
data from ( I can get the physical and virtual address from the Read method in 
the lsqunit)http://pages.cs.wisc.edu/~swilson/gem5-docs/classLSQUnit.html and 
saving those addresses. After a specific time, I want to access the memory to 
read the data from those addresses. Can I use getSystemPort function to access 
the memory and read the data from those addresses? If so, should I use the 
virtual address or the physical address?

Thanks



From: Jason Lowe-Power mailto:ja...@lowepower.com>>
Sent: Monday, August 3, 2020 3:26 PM
To: gem5 users mailing list mailto:gem5-users@gem5.org>>
Cc: gem5-users 
mailto:gem5-users-boun...@gem5.org>>; ABD ALRHMAN 
ABO ALKHEEL mailto:abdkeel...@hotmail.com>>
Subject: Re: [gem5-users] Re: Reading from memory in Gem5

Hello,

This sounds like you probably want to use "functional" accesses. These are 
built for introspection and debugging, which is what it sounds like you want to 
do. Using the System object, there is a `getSystemPort` function that will 
return a gem5 port that you can use with functional accesses to "backdoor" into 
the memory. See 
http://doxygen.gem5.org/release/current/classSystem.html#a5ecbd1eaa3e0d19f4640bb71a0b59d64.

Cheers,
Jason

On Sun, Aug 2, 2020 at 7:01 AM ABD ALRHMAN ABO ALKHEEL via gem5-users 
mailto:gem5-users@gem5.org>> wrote:
Hi All, how to read data from memory in Gem5 ? Can I read data from memory in 
Gem5  for a specific addresses? If so, should I use the virtual address or 
physical address? For example, how load instructions read the data from memory? 
Any help would be appreciated. Thanks


From: ABD ALRHMAN ABO ALKHEEL
Sent: Saturday, August 1, 2020 3:19 PM
To: gem5 users mailing list mailto:gem5-users@gem5.org>>; 
gem5-users mailto:gem5-users-boun...@gem5.org>>
Subject: Reading from memory in Gem5

Hi All, how to read data from memory in Gem5 ? Can I read data from memory in 
Gem5  for a specific addresses? If so, should I use the virtual address or 
physical address? For example, how load instructions read the data from memory? 
Any help would be appreciated. Thanks
___
gem5-users mailing list -- gem5-users@gem5.org<mailto:gem5-users@gem5.org>
To unsubscribe send an email to 
gem5-users-le...@gem5.org<mailto:gem5-users-le...@gem5.org>
%(web_page_url)slistinfo%(cg

[gem5-users] Re: Reading from memory in Gem5

2020-08-05 Thread ABD ALRHMAN ABO ALKHEEL via gem5-users
Hi Jason,

I want to clarify what I want to do; I want to run a program on gem5 (in SE 
mode) for 1M instructions and I want to save the memory addresses that every LD 
instruction loads data from ( I can get those addresses from the pushRequest 
method in the lsq) http://doxygen.gem5.org/release/current/classLSQ.html and 
saving those addresses in table (map). After a specific time for example 
(every100k instructions), I want to access the memory to read the data from 
those addresses. For instance, let us assume that the address that load 
instruction loads data from it is (0x78226e68), can I read the content of 
this memory address? If so, how?

Thanks
gem5: Out of order CPU 
model<https://www.gem5.org/documentation/general_docs/cpu_models/O3CPU>
Memory Order Misspeculation. The InstructionQueue has a MemDepUnit to track 
memory order dependence. The IQ will not schedule an instruction if MemDepUnit 
states there is dependency. In LSQUnit::read(), the LSQ will search for 
possible aliasing store and forward if possible.Otherwise, the load is blocked 
and rescheduled for when the blocking store completes by notifying the 
MemDepUnit.
www.gem5.org


Thanks



From: Jason Lowe-Power 
Sent: Tuesday, August 4, 2020 4:41 PM
To: ABD ALRHMAN ABO ALKHEEL ; gem5 users mailing list 

Subject: Re: [gem5-users] Re: Reading from memory in Gem5

Hello,

First of all, please reply to the users list, not directly to the person who 
responded. This allows everyone to see answers and/or chime in and help.

Second, the page you linked is out of date. Please use the main gem5 website 
for all of the up to date documentation (e.g., 
http://doxygen.gem5.org/release/current/classLSQUnit.html)

Third, I still don't fully understand what your goals are. However, you can use 
the system port (actually, I think I was wrong before, you should use the 
"getPort" function, not "getSystemPort") to make functional (or debug) accesses 
to the memory. You can create a `Packet` with a `Request` and send a functional 
request across the port (i.e., call sendFunctional(pkt)). You can use either 
virtual (in SE mode) or physical address (in both modes). I am sure there are 
some caveats to using virtual addresses, but I don't know exactly what they are.

If you're trying to make new timing accesses, then you should use the main 
"dcache_port" and "icache_port" that are connected to the CPU. Again, you can 
construct a Packet object with a Request and send it across the port (e.g., 
sendTimingReq(pkt)).

You may want to read up on the details of how gem5's memory objects work: 
http://www.gem5.org/documentation/learning_gem5/part2/memoryobject/

Cheers,
Jason



On Mon, Aug 3, 2020 at 1:15 PM ABD ALRHMAN ABO ALKHEEL 
mailto:abdkeel...@hotmail.com>> wrote:
Hi Jason,

Thanks for your email.

What I want to do is finding the memory address that the LD instruction loads 
data from ( I can get the physical and virtual address from the Read method in 
the lsqunit)http://pages.cs.wisc.edu/~swilson/gem5-docs/classLSQUnit.html and 
saving those addresses. After a specific time, I want to access the memory to 
read the data from those addresses. Can I use getSystemPort function to access 
the memory and read the data from those addresses? If so, should I use the 
virtual address or the physical address?

Thanks



From: Jason Lowe-Power mailto:ja...@lowepower.com>>
Sent: Monday, August 3, 2020 3:26 PM
To: gem5 users mailing list mailto:gem5-users@gem5.org>>
Cc: gem5-users 
mailto:gem5-users-boun...@gem5.org>>; ABD ALRHMAN 
ABO ALKHEEL mailto:abdkeel...@hotmail.com>>
Subject: Re: [gem5-users] Re: Reading from memory in Gem5

Hello,

This sounds like you probably want to use "functional" accesses. These are 
built for introspection and debugging, which is what it sounds like you want to 
do. Using the System object, there is a `getSystemPort` function that will 
return a gem5 port that you can use with functional accesses to "backdoor" into 
the memory. See 
http://doxygen.gem5.org/release/current/classSystem.html#a5ecbd1eaa3e0d19f4640bb71a0b59d64.

Cheers,
Jason

On Sun, Aug 2, 2020 at 7:01 AM ABD ALRHMAN ABO ALKHEEL via gem5-users 
mailto:gem5-users@gem5.org>> wrote:
Hi All, how to read data from memory in Gem5 ? Can I read data from memory in 
Gem5  for a specific addresses? If so, should I use the virtual address or 
physical address? For example, how load instructions read the data from memory? 
Any help would be appreciated. Thanks


From: ABD ALRHMAN ABO ALKHEEL
Sent: Saturday, August 1, 2020 3:19 PM
To: gem5 users mailing list mailto:gem5-users@gem5.org>>; 
gem5-users mailto:gem5-users-boun...@gem5.org>>
Subject: Reading from memory in Gem5

Hi All, how to read data from memory in Gem5 ? Can I read data from memory in 
Gem5  for a sp

[gem5-users] Re: Reading from memory in Gem5

2020-08-04 Thread ABD ALRHMAN ABO ALKHEEL via gem5-users
Ok. Thank you very much for your email.


From: Jason Lowe-Power 
Sent: Tuesday, August 4, 2020 4:41 PM
To: ABD ALRHMAN ABO ALKHEEL ; gem5 users mailing list 

Subject: Re: [gem5-users] Re: Reading from memory in Gem5

Hello,

First of all, please reply to the users list, not directly to the person who 
responded. This allows everyone to see answers and/or chime in and help.

Second, the page you linked is out of date. Please use the main gem5 website 
for all of the up to date documentation (e.g., 
http://doxygen.gem5.org/release/current/classLSQUnit.html)

Third, I still don't fully understand what your goals are. However, you can use 
the system port (actually, I think I was wrong before, you should use the 
"getPort" function, not "getSystemPort") to make functional (or debug) accesses 
to the memory. You can create a `Packet` with a `Request` and send a functional 
request across the port (i.e., call sendFunctional(pkt)). You can use either 
virtual (in SE mode) or physical address (in both modes). I am sure there are 
some caveats to using virtual addresses, but I don't know exactly what they are.

If you're trying to make new timing accesses, then you should use the main 
"dcache_port" and "icache_port" that are connected to the CPU. Again, you can 
construct a Packet object with a Request and send it across the port (e.g., 
sendTimingReq(pkt)).

You may want to read up on the details of how gem5's memory objects work: 
http://www.gem5.org/documentation/learning_gem5/part2/memoryobject/

Cheers,
Jason



On Mon, Aug 3, 2020 at 1:15 PM ABD ALRHMAN ABO ALKHEEL 
mailto:abdkeel...@hotmail.com>> wrote:
Hi Jason,

Thanks for your email.

What I want to do is finding the memory address that the LD instruction loads 
data from ( I can get the physical and virtual address from the Read method in 
the lsqunit)http://pages.cs.wisc.edu/~swilson/gem5-docs/classLSQUnit.html and 
saving those addresses. After a specific time, I want to access the memory to 
read the data from those addresses. Can I use getSystemPort function to access 
the memory and read the data from those addresses? If so, should I use the 
virtual address or the physical address?

Thanks



From: Jason Lowe-Power mailto:ja...@lowepower.com>>
Sent: Monday, August 3, 2020 3:26 PM
To: gem5 users mailing list mailto:gem5-users@gem5.org>>
Cc: gem5-users 
mailto:gem5-users-boun...@gem5.org>>; ABD ALRHMAN 
ABO ALKHEEL mailto:abdkeel...@hotmail.com>>
Subject: Re: [gem5-users] Re: Reading from memory in Gem5

Hello,

This sounds like you probably want to use "functional" accesses. These are 
built for introspection and debugging, which is what it sounds like you want to 
do. Using the System object, there is a `getSystemPort` function that will 
return a gem5 port that you can use with functional accesses to "backdoor" into 
the memory. See 
http://doxygen.gem5.org/release/current/classSystem.html#a5ecbd1eaa3e0d19f4640bb71a0b59d64.

Cheers,
Jason

On Sun, Aug 2, 2020 at 7:01 AM ABD ALRHMAN ABO ALKHEEL via gem5-users 
mailto:gem5-users@gem5.org>> wrote:
Hi All, how to read data from memory in Gem5 ? Can I read data from memory in 
Gem5  for a specific addresses? If so, should I use the virtual address or 
physical address? For example, how load instructions read the data from memory? 
Any help would be appreciated. Thanks


From: ABD ALRHMAN ABO ALKHEEL
Sent: Saturday, August 1, 2020 3:19 PM
To: gem5 users mailing list mailto:gem5-users@gem5.org>>; 
gem5-users mailto:gem5-users-boun...@gem5.org>>
Subject: Reading from memory in Gem5

Hi All, how to read data from memory in Gem5 ? Can I read data from memory in 
Gem5  for a specific addresses? If so, should I use the virtual address or 
physical address? For example, how load instructions read the data from memory? 
Any help would be appreciated. Thanks
___
gem5-users mailing list -- gem5-users@gem5.org<mailto:gem5-users@gem5.org>
To unsubscribe send an email to 
gem5-users-le...@gem5.org<mailto:gem5-users-le...@gem5.org>
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Re: Reading from memory in Gem5

2020-08-02 Thread ABD ALRHMAN ABO ALKHEEL via gem5-users
Hi All, how to read data from memory in Gem5 ? Can I read data from memory in 
Gem5  for a specific addresses? If so, should I use the virtual address or 
physical address? For example, how load instructions read the data from memory? 
Any help would be appreciated. Thanks


From: ABD ALRHMAN ABO ALKHEEL
Sent: Saturday, August 1, 2020 3:19 PM
To: gem5 users mailing list ; gem5-users 

Subject: Reading from memory in Gem5

Hi All, how to read data from memory in Gem5 ? Can I read data from memory in 
Gem5  for a specific addresses? If so, should I use the virtual address or 
physical address? For example, how load instructions read the data from memory? 
Any help would be appreciated. Thanks
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Reading from memory in Gem5

2020-08-01 Thread ABD ALRHMAN ABO ALKHEEL via gem5-users
Hi All, how to read data from memory in Gem5 ? Can I read data from memory in 
Gem5  for a specific addresses? If so, should I use the virtual address or 
physical address? For example, how load instructions read the data from memory? 
Any help would be appreciated. Thanks
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Re: Reading data from memory in Gem5

2020-07-27 Thread ABD ALRHMAN ABO ALKHEEL via gem5-users
Any suggestions would be appreciated. Thanks


From: ABD ALRHMAN ABO ALKHEEL via gem5-users 
Sent: Monday, July 27, 2020 12:43 AM
To: gem5 users mailing list ; gem5-users 

Cc: ABD ALRHMAN ABO ALKHEEL 
Subject: [gem5-users] Reading data from memory in Gem5

Hi All, how to read data from memory in Gem5 using virtual address? Can I read 
data from memory in Gem5  for a specific addresses? If so, should I use the 
virtual address or physical address? Any help would be appreciated. Thanks
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Reading data from memory in Gem5

2020-07-26 Thread ABD ALRHMAN ABO ALKHEEL via gem5-users
Hi All, how to read data from memory in Gem5 using virtual address? Can I read 
data from memory in Gem5  for a specific addresses? If so, should I use the 
virtual address or physical address? Any help would be appreciated. Thanks
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] CDB in GEM5

2020-07-23 Thread ABD ALRHMAN ABO ALKHEEL via gem5-users
Hi All,

Where can I find the instructions that are waiting on the CDB (common data bus) 
in gem5??

Thanks
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Instructions on memory bus-O3CPU

2020-07-22 Thread ABD ALRHMAN ABO ALKHEEL via gem5-users
Hi All,

I want to find the memory address that the LD instruction loads data from and 
track the instruction that consumes the data obtained by the load.(i.e. the 
load loads data from a given address into a register X, then the AND 
instruction consumes the data from the memory bus before that data is committed 
to the X register ).  Where can I find the place that the instructions are 
waiting on the memory bus? is it in IEW_impl.hh?

Any help would be appreciated.

Thanks



___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Load and store instructions in gem5

2020-07-18 Thread ABD ALRHMAN ABO ALKHEEL via gem5-users
Hi All, I want to ask about the memory instructions (LD & ST), do these 
instructions execute in LSQ or in the instruction queue IQ? Thanks
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Re: Load forwarding to other instructions-O3CPU

2020-07-16 Thread ABD ALRHMAN ABO ALKHEEL via gem5-users
Any help would be appreciated.


From: ABD ALRHMAN ABO ALKHEEL via gem5-users 
Sent: Wednesday, July 15, 2020 10:15 PM
To: gem5 users mailing list ; gem5-users 

Cc: ABD ALRHMAN ABO ALKHEEL 
Subject: [gem5-users] Load forwarding to other instructions-O3CPU

Hi All,

I want to find the memory address that the LD instruction loads data from and 
track the instruction that consumes the data obtained by the load.(i.e. the 
load loads data from a given address into a register X, then the AND 
instruction consumes that X register).  The load forwarding may be in the LSQ 
but I am not sure. Any help or suggestion on where can I find the load 
forwarding to other instructions would be appreciated.

Thanks



___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Load forwarding to other instructions-O3CPU

2020-07-15 Thread ABD ALRHMAN ABO ALKHEEL via gem5-users
Hi All,

I want to find the memory address that the LD instruction loads data from and 
track the instruction that consumes the data obtained by the load.(i.e. the 
load loads data from a given address into a register X, then the AND 
instruction consumes that X register).  The load forwarding may be in the LSQ 
but I am not sure. Any help or suggestion on where can I find the load 
forwarding to other instructions would be appreciated.

Thanks



___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Load forwarding to other instructions-O3CPU

2020-07-15 Thread ABD ALRHMAN ABO ALKHEEL via gem5-users
Hi All,

I want to find the memory address that the LD instruction loads data from and 
track the instruction that consumes the data obtained by the load.(i.e. the 
load loads data from a given address into a register X, then the AND 
instruction consumes that X register).  The load forwarding may be in the LSQ 
but I am not sure. Any help or suggestion on where can I find the load 
forwarding to other instructions would be appreciated.

Thanks
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Re: Memory -Address -Gem5-O3

2020-07-13 Thread ABD ALRHMAN ABO ALKHEEL via gem5-users
Thanks Patel for your email.

But I want to change in the source code because I want to find the address for 
the load instruction followed by specific instruction. Do you know where in 
gem5 should I make the changes? For instance, I want to know the memory 
addresses of every LD instruction followed by MOV and save those addresses in 
text file.

Thanks



From: VIPIN PATEL via gem5-users 
Sent: Monday, July 13, 2020 5:56 PM
To: gem5 users mailing list 
Cc: VIPIN PATEL 
Subject: [gem5-users] Re: Memory -Address -Gem5-O3

Hi Alrhman,

Look into the protocol state machine, say L1cache state machine. More 
specifically you can modify the mandatory_queue_in code for your requirement. 
The sequencer puts the CPU request into mandatory queue.

Revert incase of any query.

Regards,
Vipin

On Mon, 13 Jul, 2020, 01:18 ABD ALRHMAN ABO ALKHEEL via gem5-users, 
mailto:gem5-users@gem5.org>> wrote:
Hi All, I am currently working on Gem5 with CPU O3 and I want to collect each 
instruction and it’s memory address , I can do that by using - 
-debug-file=Exec. But I want to know where can I find those address and print 
them on txt file. Which file does do that in Gem5? Any help would be 
appreciated. Thanks
___
gem5-users mailing list -- gem5-users@gem5.org<mailto:gem5-users@gem5.org>
To unsubscribe send an email to 
gem5-users-le...@gem5.org<mailto:gem5-users-le...@gem5.org>
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Re: Memory -Address -Gem5-O3

2020-07-13 Thread ABD ALRHMAN ABO ALKHEEL via gem5-users
Thanks Carlos for your help.

But I want to change in the source code because I want to find the address for 
the load instruction followed by specific instruction. Do you know where in 
gem5 should i make the changes ?

Thanks


From: Francisco Carlos via gem5-users 
Sent: Monday, July 13, 2020 4:59 PM
To: gem5 users mailing list 
Cc: Francisco Carlos 
Subject: [gem5-users] Re: Memory -Address -Gem5-O3

hello Abd,

You can see a similar output by enabling the Exec debug-flag. I would suggest 
you look at the gem5 documentation to further details in the debug-flags 
available and how to use them. 
(http://learning.gem5.org/book/part2/debugging.html#:~:text=gem5%20provides%20support%20for%20printf,enable%20from%20the%20command%20line.)

A quick answer for you question is the following command :

./build/x86/gem.opt  --debug-flag=Exec configs/se.py -c 

With this command, the output will be printed in the console. You can also 
redirect the output to a file by adding --debug-file=file.txt.

Tip: You can use grep to filter only memory access.

Best regards.

--
Francisco Carlos Silva Junior
Phd Student at University of Brasilia


De: ABD ALRHMAN ABO ALKHEEL via gem5-users 
Enviado: segunda-feira, 13 de julho de 2020 13:02
Para: gem5-users ; gem5 users mailing list 

Cc: ABD ALRHMAN ABO ALKHEEL 
Assunto: [gem5-users] Re: Memory -Address -Gem5-O3

Hi All,

Which file in gem5 prints the following output? I want to find the memory 
address for each instruction. Any help would be appreciated.

[cid:98ceb09f-11ce-44d2-9afd-a7a6af430c10]


From: ABD ALRHMAN ABO ALKHEEL
Sent: Sunday, July 12, 2020 7:46 PM
To: gem5-users ; gem5 users mailing list 

Subject: Memory -Address -Gem5-O3

Hi All, I am currently working on Gem5 with CPU O3 and I want to collect each 
instruction and it’s memory address , I can do that by using - 
-debug-file=Exec. But I want to know where can I find those address and print 
them on txt file. Which file does do that in Gem5? Any help would be 
appreciated. Thanks
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Re: Memory -Address -Gem5-O3

2020-07-13 Thread ABD ALRHMAN ABO ALKHEEL via gem5-users
Hi All,

Which file in gem5 prints the following output? I want to find the memory 
address for each instruction. Any help would be appreciated.

[cid:eb12e102-62a0-40c1-90a3-38629a58b9fc]


From: ABD ALRHMAN ABO ALKHEEL
Sent: Sunday, July 12, 2020 7:46 PM
To: gem5-users ; gem5 users mailing list 

Subject: Memory -Address -Gem5-O3

Hi All, I am currently working on Gem5 with CPU O3 and I want to collect each 
instruction and it’s memory address , I can do that by using - 
-debug-file=Exec. But I want to know where can I find those address and print 
them on txt file. Which file does do that in Gem5? Any help would be 
appreciated. Thanks
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Memory -Address -Gem5-O3

2020-07-12 Thread ABD ALRHMAN ABO ALKHEEL via gem5-users
Hi All, I am currently working on Gem5 with CPU O3 and I want to collect each 
instruction and it’s memory address , I can do that by using - 
-debug-file=Exec. But I want to know where can I find those address and print 
them on txt file. Which file does do that in Gem5? Any help would be 
appreciated. Thanks
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Running a program on GEM5 for specific number of instructions

2020-07-08 Thread ABD ALRHMAN ABO ALKHEEL via gem5-users
Hi All,

I want to run a program for 100k instructions but I want to skip the first 50k 
instructions? How can i do this? Any help would be appreciated.

Thanks
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] dump the data in text file in gem5

2020-06-26 Thread ABD ALRHMAN ABO ALKHEEL via gem5-users
Hi All,

I made some changes on gem5 source code to collect the performance counters on 
a text file and I built the gem5 without any error. but I am not able to see 
the text file in the gem5 directory?

Does anyone know how to dump the text file in gem5? any help would be 
appreciated.

Thanks
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] how to run program on gem5 across different number of cycles

2020-06-22 Thread ABD ALRHMAN ABO ALKHEEL via gem5-users
Hi All,

I want to run a program on GEM5 se mode across a different number of cycles, 
for example, 1K cycles, 10K, 100K...etc.

How I can do that?

Thanks


___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Busybox on ARM SE mode

2020-04-08 Thread ABD ALRHMAN ABO ALKHEEL
Hi All,

I want to run sha256sum using busybox as in the command below but i git the 
following error. Any help would be appreciated.

The error:
Global frequency set at 1 ticks per second
warn: DRAM device capacity (8192 Mbytes) does not match the address range 
assigned (512 Mbytes)
0: system.remote_gdb: listening for remote gdb on port 7000
 REAL SIMULATION 
info: Entering event queue @ 0.  Starting simulation...
generateDisassembly
warn: CP14 unimplemented crn[14], opc1[7], crm[15], opc2[7]
fatal: syscall setgid (#214) unimplemented.
Memory Usage: 721244 KBytes



The command:

build/ARM/gem5.opt configs/example/se.py -I 10 -c 
/home/abdkhail/Downloads/busybox-android/busybox-android -o 'sha256sum 
test.txt' --cpu-type=DerivO3CPU --caches


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

Re: [gem5-users] Fw: Gem5 crash when i use --cpu-type=DerivO3CPU

2020-03-27 Thread ABD ALRHMAN ABO ALKHEEL
>From where I can download those?

From: Gabe Black 
Sent: Friday, March 27, 2020 9:42:17 PM
To: gem5 users mailing list 
Cc: ABD ALRHMAN ABO ALKHEEL 
Subject: Re: [gem5-users] Fw: Gem5 crash when i use --cpu-type=DerivO3CPU

I've also set up a script util/build_cross_gcc/build_cross_gcc.py which will 
build a cross compiler given various sources (gcc, glibc, linux, binutils, 
gdb). To use it, download each of those and extract them in a directory, and 
then from there run build_cross_gcc.py --settings-file=settings.${compiler you 
want}

Gabe

On Fri, Mar 27, 2020 at 9:19 AM Ciro Santilli 
mailto:ciro.santi...@gmail.com>> wrote:
See also: 
https://stackoverflow.com/questions/53085048/how-to-compile-and-run-an-executable-in-gem5-syscall-emulation-mode-with-se-py/53085049#53085049

On Fri, Mar 27, 2020 at 2:20 PM ABD ALRHMAN ABO ALKHEEL 
mailto:abdkeel...@hotmail.com>> wrote:
Hi Ciro,

I have compiled the following repository using make command to work on x86. How 
i can compile it in order to work on ARM?

Best

https://github.com/maandree/sha3sum

From: gem5-users 
mailto:gem5-users-boun...@gem5.org>> on behalf of 
ABD ALRHMAN ABO ALKHEEL mailto:abdkeel...@hotmail.com>>
Sent: Friday, March 27, 2020 3:46:07 AM
To: gem5 users mailing list mailto:gem5-users@gem5.org>>; 
Ciro Santilli mailto:ciro.santi...@arm.com>>; Ciro 
Santilli mailto:ciro.santi...@gmail.com>>
Subject: Re: [gem5-users] Gem5 crash when i use --cpu-type=DerivO3CPU

Hi Ciro,

I have compiled the following repository using make command to work on x86. How 
i can compile it in order to work on ARM?

Best

https://github.com/maandree/sha3sum
[https://avatars2.githubusercontent.com/u/1611742?s=400=4]<https://github.com/maandree/sha3sum>
GitHub - maandree/sha3sum: SHA-3 and Keccak checksum 
utility<https://github.com/maandree/sha3sum>
SHA-3 and Keccak checksum utility. Contribute to maandree/sha3sum development 
by creating an account on GitHub.
github.com<http://github.com>



From: gem5-users 
mailto:gem5-users-boun...@gem5.org>> on behalf of 
Ciro Santilli mailto:ciro.santi...@gmail.com>>
Sent: Thursday, March 26, 2020 4:59 PM
To: gem5 users mailing list mailto:gem5-users@gem5.org>>
Subject: Re: [gem5-users] Gem5 crash when i use --cpu-type=DerivO3CPU

BTW, ARM checkpointing seemed completely broken on latest develop when
I tried it, opened a bug at:
https://gem5.atlassian.net/browse/GEM5-426

On Thu, Mar 26, 2020 at 8:39 AM Ciro Santilli 
mailto:ciro.santi...@gmail.com>> wrote:
>
> What's the error message?
>
> On Thu, Mar 26, 2020 at 6:31 AM ABD ALRHMAN ABO ALKHEEL
> mailto:abdkeel...@hotmail.com>> wrote:
> >
> > Hi All,
> >
> > I run the following command to take checkpoint and it works well. But when 
> > i use --cpu-type=DerivO3CPU  instead of AtomicSimpleCPU  the system crash. 
> > I want DerivO3CPU   as cpu type. Any help would be appreciated.
> >
> > build/ARM/gem5.opt configs/example/fs.py --os-type=android-ics 
> > --machine-type=VExpress_EMM 
> > --kernel=/home/abdkhail/gem5/full_system_images/binaries/vmlinux.vexpress_emm.20170616
> >  
> > --disk-image=/home/abdkhail/gem5/full_system_images/disks/ARMv7a-ICS-Android.SMP.Asimbench-v3.img
> >  
> > --dtb-filename=/home/abdkhail/gem5/full_system_images/binaries/vexpress-v2p-ca15-tc1-gem5_dvfs_4cpus.20170616.dtb
> >  --mem-size=2047MB --num-cpus=4 --cpu-clock=2GHz --caches --l2cache 
> > --l2_size=2MB --l2_assoc=4 --l1i_size=32kB --l1i_assoc=4 --l1d_size=32kB 
> > --l1d_assoc=4 --cpu-type=AtomicSimpleCPU 
> > --script=/home/abdkhail/gem5/configs/boot/asimbench_boot_scripts/arm_ckpt_asim.rcS
> >
> > 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
___
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
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

[gem5-users] Fw: Gem5 crash when i use --cpu-type=DerivO3CPU

2020-03-27 Thread ABD ALRHMAN ABO ALKHEEL
Hi Ciro,

I have compiled the following repository using make command to work on x86. How 
i can compile it in order to work on ARM?

Best

https://github.com/maandree/sha3sum

From: gem5-users  on behalf of ABD ALRHMAN ABO 
ALKHEEL 
Sent: Friday, March 27, 2020 3:46:07 AM
To: gem5 users mailing list ; Ciro Santilli 
; Ciro Santilli 
Subject: Re: [gem5-users] Gem5 crash when i use --cpu-type=DerivO3CPU

Hi Ciro,

I have compiled the following repository using make command to work on x86. How 
i can compile it in order to work on ARM?

Best

https://github.com/maandree/sha3sum
[https://avatars2.githubusercontent.com/u/1611742?s=400=4]<https://github.com/maandree/sha3sum>
GitHub - maandree/sha3sum: SHA-3 and Keccak checksum 
utility<https://github.com/maandree/sha3sum>
SHA-3 and Keccak checksum utility. Contribute to maandree/sha3sum development 
by creating an account on GitHub.
github.com



From: gem5-users  on behalf of Ciro Santilli 

Sent: Thursday, March 26, 2020 4:59 PM
To: gem5 users mailing list 
Subject: Re: [gem5-users] Gem5 crash when i use --cpu-type=DerivO3CPU

BTW, ARM checkpointing seemed completely broken on latest develop when
I tried it, opened a bug at:
https://gem5.atlassian.net/browse/GEM5-426

On Thu, Mar 26, 2020 at 8:39 AM Ciro Santilli  wrote:
>
> What's the error message?
>
> On Thu, Mar 26, 2020 at 6:31 AM ABD ALRHMAN ABO ALKHEEL
>  wrote:
> >
> > Hi All,
> >
> > I run the following command to take checkpoint and it works well. But when 
> > i use --cpu-type=DerivO3CPU  instead of AtomicSimpleCPU  the system crash. 
> > I want DerivO3CPU   as cpu type. Any help would be appreciated.
> >
> > build/ARM/gem5.opt configs/example/fs.py --os-type=android-ics 
> > --machine-type=VExpress_EMM 
> > --kernel=/home/abdkhail/gem5/full_system_images/binaries/vmlinux.vexpress_emm.20170616
> >  
> > --disk-image=/home/abdkhail/gem5/full_system_images/disks/ARMv7a-ICS-Android.SMP.Asimbench-v3.img
> >  
> > --dtb-filename=/home/abdkhail/gem5/full_system_images/binaries/vexpress-v2p-ca15-tc1-gem5_dvfs_4cpus.20170616.dtb
> >  --mem-size=2047MB --num-cpus=4 --cpu-clock=2GHz --caches --l2cache 
> > --l2_size=2MB --l2_assoc=4 --l1i_size=32kB --l1i_assoc=4 --l1d_size=32kB 
> > --l1d_assoc=4 --cpu-type=AtomicSimpleCPU 
> > --script=/home/abdkhail/gem5/configs/boot/asimbench_boot_scripts/arm_ckpt_asim.rcS
> >
> > 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 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] Gem5 crash when i use --cpu-type=DerivO3CPU

2020-03-26 Thread ABD ALRHMAN ABO ALKHEEL
Hi Ciro,

I have compiled the following repository using make command to work on x86. How 
i can compile it in order to work on ARM?

Best

https://github.com/maandree/sha3sum
[https://avatars2.githubusercontent.com/u/1611742?s=400=4]<https://github.com/maandree/sha3sum>
GitHub - maandree/sha3sum: SHA-3 and Keccak checksum 
utility<https://github.com/maandree/sha3sum>
SHA-3 and Keccak checksum utility. Contribute to maandree/sha3sum development 
by creating an account on GitHub.
github.com



From: gem5-users  on behalf of Ciro Santilli 

Sent: Thursday, March 26, 2020 4:59 PM
To: gem5 users mailing list 
Subject: Re: [gem5-users] Gem5 crash when i use --cpu-type=DerivO3CPU

BTW, ARM checkpointing seemed completely broken on latest develop when
I tried it, opened a bug at:
https://gem5.atlassian.net/browse/GEM5-426

On Thu, Mar 26, 2020 at 8:39 AM Ciro Santilli  wrote:
>
> What's the error message?
>
> On Thu, Mar 26, 2020 at 6:31 AM ABD ALRHMAN ABO ALKHEEL
>  wrote:
> >
> > Hi All,
> >
> > I run the following command to take checkpoint and it works well. But when 
> > i use --cpu-type=DerivO3CPU  instead of AtomicSimpleCPU  the system crash. 
> > I want DerivO3CPU   as cpu type. Any help would be appreciated.
> >
> > build/ARM/gem5.opt configs/example/fs.py --os-type=android-ics 
> > --machine-type=VExpress_EMM 
> > --kernel=/home/abdkhail/gem5/full_system_images/binaries/vmlinux.vexpress_emm.20170616
> >  
> > --disk-image=/home/abdkhail/gem5/full_system_images/disks/ARMv7a-ICS-Android.SMP.Asimbench-v3.img
> >  
> > --dtb-filename=/home/abdkhail/gem5/full_system_images/binaries/vexpress-v2p-ca15-tc1-gem5_dvfs_4cpus.20170616.dtb
> >  --mem-size=2047MB --num-cpus=4 --cpu-clock=2GHz --caches --l2cache 
> > --l2_size=2MB --l2_assoc=4 --l1i_size=32kB --l1i_assoc=4 --l1d_size=32kB 
> > --l1d_assoc=4 --cpu-type=AtomicSimpleCPU 
> > --script=/home/abdkhail/gem5/configs/boot/asimbench_boot_scripts/arm_ckpt_asim.rcS
> >
> > 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 mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

[gem5-users] Gem5 crash when i use --cpu-type=DerivO3CPU

2020-03-26 Thread ABD ALRHMAN ABO ALKHEEL
Hi All,

I run the following command to take checkpoint and it works well. But when i 
use --cpu-type=DerivO3CPU  instead of AtomicSimpleCPU  the system crash. I want 
DerivO3CPU   as cpu type. Any help would be appreciated.

build/ARM/gem5.opt configs/example/fs.py --os-type=android-ics 
--machine-type=VExpress_EMM 
--kernel=/home/abdkhail/gem5/full_system_images/binaries/vmlinux.vexpress_emm.20170616
 
--disk-image=/home/abdkhail/gem5/full_system_images/disks/ARMv7a-ICS-Android.SMP.Asimbench-v3.img
 
--dtb-filename=/home/abdkhail/gem5/full_system_images/binaries/vexpress-v2p-ca15-tc1-gem5_dvfs_4cpus.20170616.dtb
 --mem-size=2047MB --num-cpus=4 --cpu-clock=2GHz --caches --l2cache 
--l2_size=2MB --l2_assoc=4 --l1i_size=32kB --l1i_assoc=4 --l1d_size=32kB 
--l1d_assoc=4 --cpu-type=AtomicSimpleCPU 
--script=/home/abdkhail/gem5/configs/boot/asimbench_boot_scripts/arm_ckpt_asim.rcS

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

[gem5-users] Run APK on Gem5

2020-03-24 Thread ABD ALRHMAN ABO ALKHEEL
Hi All,

I wanna run the apk binary files on ARM gem5 in se 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] Run java code on Gem5

2020-03-21 Thread ABD ALRHMAN ABO ALKHEEL
Hi All, I wanna run the java source code on Gem5. 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] Run Java source code on Gem5

2020-03-21 Thread ABD ALRHMAN ABO ALKHEEL
Hi All, I wanna run the java source code on Gem5. 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] run .apk file on gem5

2020-03-19 Thread ABD ALRHMAN ABO ALKHEEL
Hi All,

How i can run an android application on Gem5?

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] Run Apk files on Gem5

2020-03-01 Thread ABD ALRHMAN ABO ALKHEEL
Hello Everyone, I wanna run apk files on gem5 with arm. I don’t have any idea 
about that. 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] Fw: Fw: Asim benchmarks on gem5

2020-02-28 Thread ABD ALRHMAN ABO ALKHEEL
Hi All,

I have run the following command but the rcS script is not working. Any help 
would be appreciated.


The output on system.terminal

ALSA device list:
  No soundcards found.
input: AT Raw Set 2 keyboard as 
/devices/smb.14/motherboard.15/iofpga.17/1c06.kmi/serio0/input/input0
input: touchkitPS/2 eGalax Touchscreen as 
/devices/smb.14/motherboard.15/iofpga.17/1c07.kmi/serio1/input/input2
EXT2-fs (sda1): warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem) on device 8:1.
Freeing unused kernel memory: 292K (806d1000 - 8071a000)
init: cannot open '/initlogo.rle'
init: cannot find '/system/etc/install-recovery.sh', disabling 'flash_recovery'
init: using deprecated syntax for specifying property 'persist.sys.usb.config', 
use ${name} instead
init: using deprecated syntax for specifying property 'sys.usb.config', use 
${name} instead
init: using deprecated syntax for specifying property 'sys.usb.config', use 
${name} instead
random: servicemanager urandom read with 19 bits of entropy available
/system/bin/sh: No controlling tty: open /dev/tty: No such device or address
/system/bin/sh: warning: won't have full job control
root@android:/ # init: untracked pid 979 exited




I used this command:

./build/ARM/gem5.opt configs/example/fs.py --cpu-type=AtomicSimpleCPU 
--mem-type=SimpleMemory --machine-type=VExpress_EMM --os-type=android-ics 
--kernel=/home/abdkhail/gem5/full_system_images/binaries/vmlinux.vexpress_emm.20170616
 
--disk-image=/home/abdkhail/gem5/full_system_images/disks/ARMv7a-ICS-Android.SMP.Asimbench-v3.img
 
--dtb-filename=/home/abdkhail/gem5/full_system_images/binaries/vexpress-v2p-ca15-tc1-gem5_1cpus.20170616.dtb
 --mem-size=1800MB -n 1 
--script=/home/abdkhail/gem5/full_system_images/asimbench_boot_scripts/test.rcS

The test.rcS
#!/bin/sh


echo "Starting sfw test..."

/sbin/m5 resetstats

echo "HI"

/sbin/m5 dumpstats

echo "finished sfw test, exiting..."

/sbin/m5 exit
/sbin/m5 exit

From: gem5-users  on behalf of ABD ALRHMAN ABO 
ALKHEEL 
Sent: Tuesday, February 25, 2020 4:24:53 PM
To: Ciro Santilli ; gem5 users mailing list 
; gem5-users 
Subject: Re: [gem5-users] Fw: Asim benchmarks on gem5

Hi All,

I have run the following command but the rcS script is not working. Any help 
would be appreciated.


The output on system.terminal

ALSA device list:
  No soundcards found.
input: AT Raw Set 2 keyboard as 
/devices/smb.14/motherboard.15/iofpga.17/1c06.kmi/serio0/input/input0
input: touchkitPS/2 eGalax Touchscreen as 
/devices/smb.14/motherboard.15/iofpga.17/1c07.kmi/serio1/input/input2
EXT2-fs (sda1): warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem) on device 8:1.
Freeing unused kernel memory: 292K (806d1000 - 8071a000)
init: cannot open '/initlogo.rle'
init: cannot find '/system/etc/install-recovery.sh', disabling 'flash_recovery'
init: using deprecated syntax for specifying property 'persist.sys.usb.config', 
use ${name} instead
init: using deprecated syntax for specifying property 'sys.usb.config', use 
${name} instead
init: using deprecated syntax for specifying property 'sys.usb.config', use 
${name} instead
random: servicemanager urandom read with 19 bits of entropy available
/system/bin/sh: No controlling tty: open /dev/tty: No such device or address
/system/bin/sh: warning: won't have full job control
root@android:/ # init: untracked pid 979 exited




I used this command:

./build/ARM/gem5.opt configs/example/fs.py --cpu-type=AtomicSimpleCPU 
--mem-type=SimpleMemory --machine-type=VExpress_EMM --os-type=android-ics 
--kernel=/home/abdkhail/gem5/full_system_images/binaries/vmlinux.vexpress_emm.20170616
 
--disk-image=/home/abdkhail/gem5/full_system_images/disks/ARMv7a-ICS-Android.SMP.Asimbench-v3.img
 
--dtb-filename=/home/abdkhail/gem5/full_system_images/binaries/vexpress-v2p-ca15-tc1-gem5_1cpus.20170616.dtb
 --mem-size=1800MB -n 1 
--script=/home/abdkhail/gem5/full_system_images/asimbench_boot_scripts/test.rcS

The test.rcS
#!/bin/sh


echo "Starting sfw test..."

/sbin/m5 resetstats

echo "HI"

/sbin/m5 dumpstats

echo "finished sfw test, exiting..."

/sbin/m5 exit
/sbin/m5 exit
________________
From: gem5-users  on behalf of ABD ALRHMAN ABO 
ALKHEEL 
Sent: Tuesday, February 25, 2020 5:32:56 AM
To: Ciro Santilli ; gem5 users mailing list 
; gem5-users 
Subject: Re: [gem5-users] Fw: Asim benchmarks on gem5

Hi All,

I have run the following command but the rcS script is not working. Any help 
would be appreciated.


The output on system.terminal

ALSA device list:
  No soundcards found.
input: AT Raw Set 2 keyboard as 
/devices/smb.14/motherboard.15/iofpga.17/1c06.kmi/serio0/input/input0
input: touchkitPS/2 eGalax Touchscreen as 
/devices/smb.14/motherboard.15/iofpga.17/1c07.kmi/serio1/input/input2
EXT2-fs (sda1): warning: mounting unchecked fs, runn

Re: [gem5-users] Fw: Asim benchmarks on gem5

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

I have run the following command but the rcS script is not working. Any help 
would be appreciated.


The output on system.terminal

ALSA device list:
  No soundcards found.
input: AT Raw Set 2 keyboard as 
/devices/smb.14/motherboard.15/iofpga.17/1c06.kmi/serio0/input/input0
input: touchkitPS/2 eGalax Touchscreen as 
/devices/smb.14/motherboard.15/iofpga.17/1c07.kmi/serio1/input/input2
EXT2-fs (sda1): warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem) on device 8:1.
Freeing unused kernel memory: 292K (806d1000 - 8071a000)
init: cannot open '/initlogo.rle'
init: cannot find '/system/etc/install-recovery.sh', disabling 'flash_recovery'
init: using deprecated syntax for specifying property 'persist.sys.usb.config', 
use ${name} instead
init: using deprecated syntax for specifying property 'sys.usb.config', use 
${name} instead
init: using deprecated syntax for specifying property 'sys.usb.config', use 
${name} instead
random: servicemanager urandom read with 19 bits of entropy available
/system/bin/sh: No controlling tty: open /dev/tty: No such device or address
/system/bin/sh: warning: won't have full job control
root@android:/ # init: untracked pid 979 exited




I used this command:

./build/ARM/gem5.opt configs/example/fs.py --cpu-type=AtomicSimpleCPU 
--mem-type=SimpleMemory --machine-type=VExpress_EMM --os-type=android-ics 
--kernel=/home/abdkhail/gem5/full_system_images/binaries/vmlinux.vexpress_emm.20170616
 
--disk-image=/home/abdkhail/gem5/full_system_images/disks/ARMv7a-ICS-Android.SMP.Asimbench-v3.img
 
--dtb-filename=/home/abdkhail/gem5/full_system_images/binaries/vexpress-v2p-ca15-tc1-gem5_1cpus.20170616.dtb
 --mem-size=1800MB -n 1 
--script=/home/abdkhail/gem5/full_system_images/asimbench_boot_scripts/test.rcS

The test.rcS
#!/bin/sh


echo "Starting sfw test..."

/sbin/m5 resetstats

echo "HI"

/sbin/m5 dumpstats

echo "finished sfw test, exiting..."

/sbin/m5 exit
/sbin/m5 exit

From: gem5-users  on behalf of ABD ALRHMAN ABO 
ALKHEEL 
Sent: Tuesday, February 25, 2020 5:32:56 AM
To: Ciro Santilli ; gem5 users mailing list 
; gem5-users 
Subject: Re: [gem5-users] Fw: Asim benchmarks on gem5

Hi All,

I have run the following command but the rcS script is not working. Any help 
would be appreciated.


The output on system.terminal

ALSA device list:
  No soundcards found.
input: AT Raw Set 2 keyboard as 
/devices/smb.14/motherboard.15/iofpga.17/1c06.kmi/serio0/input/input0
input: touchkitPS/2 eGalax Touchscreen as 
/devices/smb.14/motherboard.15/iofpga.17/1c07.kmi/serio1/input/input2
EXT2-fs (sda1): warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem) on device 8:1.
Freeing unused kernel memory: 292K (806d1000 - 8071a000)
init: cannot open '/initlogo.rle'
init: cannot find '/system/etc/install-recovery.sh', disabling 'flash_recovery'
init: using deprecated syntax for specifying property 'persist.sys.usb.config', 
use ${name} instead
init: using deprecated syntax for specifying property 'sys.usb.config', use 
${name} instead
init: using deprecated syntax for specifying property 'sys.usb.config', use 
${name} instead
random: servicemanager urandom read with 19 bits of entropy available
/system/bin/sh: No controlling tty: open /dev/tty: No such device or address
/system/bin/sh: warning: won't have full job control
root@android:/ # init: untracked pid 979 exited




I used this command:

./build/ARM/gem5.opt configs/example/fs.py --cpu-type=AtomicSimpleCPU 
--mem-type=SimpleMemory --machine-type=VExpress_EMM --os-type=android-ics 
--kernel=/home/abdkhail/gem5/full_system_images/binaries/vmlinux.vexpress_emm.20170616
 
--disk-image=/home/abdkhail/gem5/full_system_images/disks/ARMv7a-ICS-Android.SMP.Asimbench-v3.img
 
--dtb-filename=/home/abdkhail/gem5/full_system_images/binaries/vexpress-v2p-ca15-tc1-gem5_1cpus.20170616.dtb
 --mem-size=1800MB -n 1 
--script=/home/abdkhail/gem5/full_system_images/asimbench_boot_scripts/test.rcS

The test.rcS
#!/bin/sh


echo "Starting sfw test..."

/sbin/m5 resetstats

echo "HI"

/sbin/m5 dumpstats

echo "finished sfw test, exiting..."

/sbin/m5 exit
/sbin/m5 exit



From: Ciro Santilli 
Sent: Friday, February 21, 2020 2:10 PM
To: gem5 users mailing list ; ABD ALRHMAN ABO ALKHEEL 
; gem5-users 
Subject: Re: [gem5-users] Fw: Asim benchmarks on gem5

I'm afraid I don't have a super automated setup that just works for
Android, and haven't done this myself specifically, but here are some
thoughts:

- those instructions are like large part of the wiki old and may have
stopped working --machine-type=VExpress_EMM is not recommended anymore,
the default and recommended and often tested platform is VExpress_GEM5_V1
- try one of the newer kernels
- is it really representative to run experiments on 32-bit arm now that
all Android phones are

Re: [gem5-users] Fw: Asim benchmarks on gem5

2020-02-24 Thread ABD ALRHMAN ABO ALKHEEL
Hi All,

I have run the following command but the rcS script is not working. Any help 
would be appreciated.


The output on system.terminal

ALSA device list:
  No soundcards found.
input: AT Raw Set 2 keyboard as 
/devices/smb.14/motherboard.15/iofpga.17/1c06.kmi/serio0/input/input0
input: touchkitPS/2 eGalax Touchscreen as 
/devices/smb.14/motherboard.15/iofpga.17/1c07.kmi/serio1/input/input2
EXT2-fs (sda1): warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem) on device 8:1.
Freeing unused kernel memory: 292K (806d1000 - 8071a000)
init: cannot open '/initlogo.rle'
init: cannot find '/system/etc/install-recovery.sh', disabling 'flash_recovery'
init: using deprecated syntax for specifying property 'persist.sys.usb.config', 
use ${name} instead
init: using deprecated syntax for specifying property 'sys.usb.config', use 
${name} instead
init: using deprecated syntax for specifying property 'sys.usb.config', use 
${name} instead
random: servicemanager urandom read with 19 bits of entropy available
/system/bin/sh: No controlling tty: open /dev/tty: No such device or address
/system/bin/sh: warning: won't have full job control
root@android:/ # init: untracked pid 979 exited




I used this command:

./build/ARM/gem5.opt configs/example/fs.py --cpu-type=AtomicSimpleCPU 
--mem-type=SimpleMemory --machine-type=VExpress_EMM --os-type=android-ics 
--kernel=/home/abdkhail/gem5/full_system_images/binaries/vmlinux.vexpress_emm.20170616
 
--disk-image=/home/abdkhail/gem5/full_system_images/disks/ARMv7a-ICS-Android.SMP.Asimbench-v3.img
 
--dtb-filename=/home/abdkhail/gem5/full_system_images/binaries/vexpress-v2p-ca15-tc1-gem5_1cpus.20170616.dtb
 --mem-size=1800MB -n 1 
--script=/home/abdkhail/gem5/full_system_images/asimbench_boot_scripts/test.rcS

The test.rcS
#!/bin/sh


echo "Starting sfw test..."

/sbin/m5 resetstats

echo "HI"

/sbin/m5 dumpstats

echo "finished sfw test, exiting..."

/sbin/m5 exit
/sbin/m5 exit



From: Ciro Santilli 
Sent: Friday, February 21, 2020 2:10 PM
To: gem5 users mailing list ; ABD ALRHMAN ABO ALKHEEL 
; gem5-users 
Subject: Re: [gem5-users] Fw: Asim benchmarks on gem5

I'm afraid I don't have a super automated setup that just works for
Android, and haven't done this myself specifically, but here are some
thoughts:

- those instructions are like large part of the wiki old and may have
stopped working --machine-type=VExpress_EMM is not recommended anymore,
the default and recommended and often tested platform is VExpress_GEM5_V1
- try one of the newer kernels
- is it really representative to run experiments on 32-bit arm now that
all Android phones are 64-bit?

On 2/21/20 12:16 PM, ABD ALRHMAN ABO ALKHEEL wrote:
> 
> *From:* gem5-users  on behalf of ABD
> ALRHMAN ABO ALKHEEL 
> *Sent:* Friday, February 21, 2020 5:04:09 AM
> *To:* gem5 users mailing list ; gem5-users
> 
> *Subject:* [gem5-users] Asim benchmarks on gem5
> I have followed the instructions provided in the gem5.org website to run
> the Moby benchmarks on gem5 as follows:
>
> 1. Downloaded the Asimbench from
> https://bitbucket.org/yongbing_huang/asimbench/downloads/ which contains
> the following folders and files:
> 1. asimbench_android_arm_kernel :
> vmlinux.smp.ics.arm.asimbench.2.6.35
> 2. asimbench_boot_scripts : contains the rcs scripts for
> different benchmarks
> 3. asimbench_disk_image :
> ARMv7a-ICS-Android.SMP.Asimbench-v3.img; sdcard-1g-mxplayer.img
>
> 2. I have used the "armv7_gem5_v1_1cpu.dtb" and "boot_emm.arm" binaries
> downloaded from http://www.gem5.org/dist/current/arm/
> aarch-system-20180409.tar.xz.
> <http://www.gem5.org/dist/current/arm/aarch-system-20180409.tar.xz>
>
> 3. Made the following changes in the config/common/FSConfig.py :
>
> def makeArmSystem(..)
> .
> self.cf0 = CowIdeDisk(driveID='master')
> self.cf2 = CowIdeDisk(driveID='master')
> self.cf0.childImage(mdesc.disk())
> self.cf2.childImage(disk("sdcard-1g-mxplayer.img"))
> # Old platforms have a built-in IDE or CF controller. Default to
> # the IDE controller if both exist. New platforms expect the
> # storage controller to be added from the config script.
> if hasattr(self.realview, "ide"):
> #self.realview.ide.disks = [self.cf0]
> self.realview.ide.disks = [self.cf0, self.cf2]
> elif hasattr(self.realview, "cf_ctrl"):
> #self.realview.cf_ctrl.disks = [self.cf0]
> self.realview.cf_ctrl.disks = [self.cf0, self.cf2]
> else:
> self.pci_ide = IdeController(disks=[self.cf0])
> pci_devices.append(self.pci_ide)
> ...
>
> 4. Used the following command:
>
> build/ARM/gem5.o

Re: [gem5-users] Fw: Asim benchmarks on gem5

2020-02-21 Thread ABD ALRHMAN ABO ALKHEEL
Thanks Ciro for your email. I can build new image and new kernel but the 
problem is how to get the benchmarks from the old image? Is there anyway to get 
the image working on qemu to take copy of the benchmarks ? Best Regards

From: Ciro Santilli 
Sent: Friday, February 21, 2020 2:10:48 PM
To: gem5 users mailing list ; ABD ALRHMAN ABO ALKHEEL 
; gem5-users 
Subject: Re: [gem5-users] Fw: Asim benchmarks on gem5

I'm afraid I don't have a super automated setup that just works for
Android, and haven't done this myself specifically, but here are some
thoughts:

- those instructions are like large part of the wiki old and may have
stopped working --machine-type=VExpress_EMM is not recommended anymore,
the default and recommended and often tested platform is VExpress_GEM5_V1
- try one of the newer kernels
- is it really representative to run experiments on 32-bit arm now that
all Android phones are 64-bit?

On 2/21/20 12:16 PM, ABD ALRHMAN ABO ALKHEEL wrote:
> 
> *From:* gem5-users  on behalf of ABD
> ALRHMAN ABO ALKHEEL 
> *Sent:* Friday, February 21, 2020 5:04:09 AM
> *To:* gem5 users mailing list ; gem5-users
> 
> *Subject:* [gem5-users] Asim benchmarks on gem5
> I have followed the instructions provided in the gem5.org website to run
> the Moby benchmarks on gem5 as follows:
>
> 1. Downloaded the Asimbench from
> https://bitbucket.org/yongbing_huang/asimbench/downloads/ which contains
> the following folders and files:
> 1. asimbench_android_arm_kernel :
> vmlinux.smp.ics.arm.asimbench.2.6.35
> 2. asimbench_boot_scripts : contains the rcs scripts for
> different benchmarks
> 3. asimbench_disk_image :
> ARMv7a-ICS-Android.SMP.Asimbench-v3.img; sdcard-1g-mxplayer.img
>
> 2. I have used the "armv7_gem5_v1_1cpu.dtb" and "boot_emm.arm" binaries
> downloaded from http://www.gem5.org/dist/current/arm/
> aarch-system-20180409.tar.xz.
> <http://www.gem5.org/dist/current/arm/aarch-system-20180409.tar.xz>
>
> 3. Made the following changes in the config/common/FSConfig.py :
>
> def makeArmSystem(..)
> .
> self.cf0 = CowIdeDisk(driveID='master')
> self.cf2 = CowIdeDisk(driveID='master')
> self.cf0.childImage(mdesc.disk())
> self.cf2.childImage(disk("sdcard-1g-mxplayer.img"))
> # Old platforms have a built-in IDE or CF controller. Default to
> # the IDE controller if both exist. New platforms expect the
> # storage controller to be added from the config script.
> if hasattr(self.realview, "ide"):
> #self.realview.ide.disks = [self.cf0]
> self.realview.ide.disks = [self.cf0, self.cf2]
> elif hasattr(self.realview, "cf_ctrl"):
> #self.realview.cf_ctrl.disks = [self.cf0]
> self.realview.cf_ctrl.disks = [self.cf0, self.cf2]
> else:
> self.pci_ide = IdeController(disks=[self.cf0])
> pci_devices.append(self.pci_ide)
> ...
>
> 4. Used the following command:
>
> build/ARM/gem5.opt configs/example/fs.py --machine-type=VExpress_EMM
> --os-type=android-ics --cpu-type=MinorCPU --caches
> --kernel=/home/abdkhail/gem5/full_system_images/binaries/vmlinux.smp.ics.arm.asimbench.2.6.35
> --disk-image=/home/abdkhail/gem5/full_system_images/disks/ARMv7a-ICS-Android.SMP.Asimbench-v3.img
> --script=/home/abdkhail/gem5/full_system_images/asimbench_boot_scripts/adobe.rcS
> --mem-size=256MB
>
>
> 5. The above commands throw the following error:
>
> gem5 Simulator System.  http://gem5.org
> gem5 is copyrighted software; use the --copyright option for details.
>
> gem5 compiled Feb 18 2020 21:57:51
> gem5 started Feb 21 2020 00:02:51
> gem5 executing on proton, pid 27191
> command line: build/ARM/gem5.opt configs/example/fs.py
> --machine-type=VExpress_EMM --os-type=android-ics --cpu-type=MinorCPU
> --caches
> --kernel=/home/abdkhail/gem5/full_system_images/binaries/vmlinux.smp.ics.arm.asimbench.2.6.35
> --disk-image=/home/abdkhail/gem5/full_system_images/disks/ARMv7a-ICS-Android.SMP.Asimbench-v3.img
> --script=/home/abdkhail/gem5/full_system_images/asimbench_boot_scripts/adobe.rcS
> --mem-size=256MB
>
> warn: Can only correctly generate a dtb for VExpress_GEM5_V1 platforms,
> unless custom hardware models have been equipped with generation
> functionality.
> Global frequency set at 1 ticks per second
> warn: DRAM device capacity (8192 Mbytes) does not match the address
> range assigned (256 Mbytes)
> info: kernel located at:
> /home/abdkhail/gem5/full_system_images/binaries/vmlinux.smp.ics.arm.asimbench.2.6.35
> warn: Bootloader entry point 0x10 overriding reset address 0
> system.vncserver: Listening for connections on port 5900
> system.term

[gem5-users] Fw: Asim benchmarks on gem5

2020-02-21 Thread ABD ALRHMAN ABO ALKHEEL

From: gem5-users  on behalf of ABD ALRHMAN ABO 
ALKHEEL 
Sent: Friday, February 21, 2020 5:04:09 AM
To: gem5 users mailing list ; gem5-users 

Subject: [gem5-users] Asim benchmarks on gem5

I have followed the instructions provided in the gem5.org website to run
the Moby benchmarks on gem5 as follows:

1. Downloaded the Asimbench from
https://bitbucket.org/yongbing_huang/asimbench/downloads/ which contains
the following folders and files:
1. asimbench_android_arm_kernel :
vmlinux.smp.ics.arm.asimbench.2.6.35
2. asimbench_boot_scripts : contains the rcs scripts for
different benchmarks
3. asimbench_disk_image :
ARMv7a-ICS-Android.SMP.Asimbench-v3.img; sdcard-1g-mxplayer.img

2. I have used the "armv7_gem5_v1_1cpu.dtb" and "boot_emm.arm" binaries
downloaded from http://www.gem5.org/dist/current/arm/
aarch-system-20180409.tar.xz.
<http://www.gem5.org/dist/current/arm/aarch-system-20180409.tar.xz>

3. Made the following changes in the config/common/FSConfig.py :

def makeArmSystem(..)
.
self.cf0 = CowIdeDisk(driveID='master')
self.cf2 = CowIdeDisk(driveID='master')
self.cf0.childImage(mdesc.disk())
self.cf2.childImage(disk("sdcard-1g-mxplayer.img"))
# Old platforms have a built-in IDE or CF controller. Default to
# the IDE controller if both exist. New platforms expect the
# storage controller to be added from the config script.
if hasattr(self.realview, "ide"):
#self.realview.ide.disks = [self.cf0]
self.realview.ide.disks = [self.cf0, self.cf2]
elif hasattr(self.realview, "cf_ctrl"):
#self.realview.cf_ctrl.disks = [self.cf0]
self.realview.cf_ctrl.disks = [self.cf0, self.cf2]
else:
self.pci_ide = IdeController(disks=[self.cf0])
pci_devices.append(self.pci_ide)
...

4. Used the following command:

build/ARM/gem5.opt configs/example/fs.py --machine-type=VExpress_EMM 
--os-type=android-ics --cpu-type=MinorCPU --caches 
--kernel=/home/abdkhail/gem5/full_system_images/binaries/vmlinux.smp.ics.arm.asimbench.2.6.35
 
--disk-image=/home/abdkhail/gem5/full_system_images/disks/ARMv7a-ICS-Android.SMP.Asimbench-v3.img
 
--script=/home/abdkhail/gem5/full_system_images/asimbench_boot_scripts/adobe.rcS
 --mem-size=256MB


5. The above commands throw the following error:

gem5 Simulator System.  http://gem5.org
gem5 is copyrighted software; use the --copyright option for details.

gem5 compiled Feb 18 2020 21:57:51
gem5 started Feb 21 2020 00:02:51
gem5 executing on proton, pid 27191
command line: build/ARM/gem5.opt configs/example/fs.py 
--machine-type=VExpress_EMM --os-type=android-ics --cpu-type=MinorCPU --caches 
--kernel=/home/abdkhail/gem5/full_system_images/binaries/vmlinux.smp.ics.arm.asimbench.2.6.35
 
--disk-image=/home/abdkhail/gem5/full_system_images/disks/ARMv7a-ICS-Android.SMP.Asimbench-v3.img
 
--script=/home/abdkhail/gem5/full_system_images/asimbench_boot_scripts/adobe.rcS
 --mem-size=256MB

warn: Can only correctly generate a dtb for VExpress_GEM5_V1 platforms, unless 
custom hardware models have been equipped with generation functionality.
Global frequency set at 1 ticks per second
warn: DRAM device capacity (8192 Mbytes) does not match the address range 
assigned (256 Mbytes)
info: kernel located at: 
/home/abdkhail/gem5/full_system_images/binaries/vmlinux.smp.ics.arm.asimbench.2.6.35
warn: Bootloader entry point 0x10 overriding reset address 0
system.vncserver: Listening for connections on port 5900
system.terminal: Listening for connections on port 3457
0: system.remote_gdb: listening for remote gdb on port 7004
fatal: Kernel is mapped to invalid location (not memory). kernelStart 0x(0) - 
kernelEnd 0x(c04a21ec) 0x8000:0x1404a21ec
Memory Usage: 622056 KBytes

Any help would be appreciated.

Best

___
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] Asim benchmarks on gem5

2020-02-20 Thread ABD ALRHMAN ABO ALKHEEL
I have followed the instructions provided in the gem5.org website to run
the Moby benchmarks on gem5 as follows:

1. Downloaded the Asimbench from
https://bitbucket.org/yongbing_huang/asimbench/downloads/ which contains
the following folders and files:
1. asimbench_android_arm_kernel :
vmlinux.smp.ics.arm.asimbench.2.6.35
2. asimbench_boot_scripts : contains the rcs scripts for
different benchmarks
3. asimbench_disk_image :
ARMv7a-ICS-Android.SMP.Asimbench-v3.img; sdcard-1g-mxplayer.img

2. I have used the "armv7_gem5_v1_1cpu.dtb" and "boot_emm.arm" binaries
downloaded from http://www.gem5.org/dist/current/arm/
aarch-system-20180409.tar.xz.


3. Made the following changes in the config/common/FSConfig.py :

def makeArmSystem(..)
.
self.cf0 = CowIdeDisk(driveID='master')
self.cf2 = CowIdeDisk(driveID='master')
self.cf0.childImage(mdesc.disk())
self.cf2.childImage(disk("sdcard-1g-mxplayer.img"))
# Old platforms have a built-in IDE or CF controller. Default to
# the IDE controller if both exist. New platforms expect the
# storage controller to be added from the config script.
if hasattr(self.realview, "ide"):
#self.realview.ide.disks = [self.cf0]
self.realview.ide.disks = [self.cf0, self.cf2]
elif hasattr(self.realview, "cf_ctrl"):
#self.realview.cf_ctrl.disks = [self.cf0]
self.realview.cf_ctrl.disks = [self.cf0, self.cf2]
else:
self.pci_ide = IdeController(disks=[self.cf0])
pci_devices.append(self.pci_ide)
...

4. Used the following command:

build/ARM/gem5.opt configs/example/fs.py --machine-type=VExpress_EMM 
--os-type=android-ics --cpu-type=MinorCPU --caches 
--kernel=/home/abdkhail/gem5/full_system_images/binaries/vmlinux.smp.ics.arm.asimbench.2.6.35
 
--disk-image=/home/abdkhail/gem5/full_system_images/disks/ARMv7a-ICS-Android.SMP.Asimbench-v3.img
 
--script=/home/abdkhail/gem5/full_system_images/asimbench_boot_scripts/adobe.rcS
 --mem-size=256MB


5. The above commands throw the following error:

gem5 Simulator System.  http://gem5.org
gem5 is copyrighted software; use the --copyright option for details.

gem5 compiled Feb 18 2020 21:57:51
gem5 started Feb 21 2020 00:02:51
gem5 executing on proton, pid 27191
command line: build/ARM/gem5.opt configs/example/fs.py 
--machine-type=VExpress_EMM --os-type=android-ics --cpu-type=MinorCPU --caches 
--kernel=/home/abdkhail/gem5/full_system_images/binaries/vmlinux.smp.ics.arm.asimbench.2.6.35
 
--disk-image=/home/abdkhail/gem5/full_system_images/disks/ARMv7a-ICS-Android.SMP.Asimbench-v3.img
 
--script=/home/abdkhail/gem5/full_system_images/asimbench_boot_scripts/adobe.rcS
 --mem-size=256MB

warn: Can only correctly generate a dtb for VExpress_GEM5_V1 platforms, unless 
custom hardware models have been equipped with generation functionality.
Global frequency set at 1 ticks per second
warn: DRAM device capacity (8192 Mbytes) does not match the address range 
assigned (256 Mbytes)
info: kernel located at: 
/home/abdkhail/gem5/full_system_images/binaries/vmlinux.smp.ics.arm.asimbench.2.6.35
warn: Bootloader entry point 0x10 overriding reset address 0
system.vncserver: Listening for connections on port 5900
system.terminal: Listening for connections on port 3457
0: system.remote_gdb: listening for remote gdb on port 7004
fatal: Kernel is mapped to invalid location (not memory). kernelStart 0x(0) - 
kernelEnd 0x(c04a21ec) 0x8000:0x1404a21ec
Memory Usage: 622056 KBytes

Any help would be appreciated.

Best

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

[gem5-users] Moby benchmarks

2020-02-10 Thread ABD ALRHMAN ABO ALKHEEL
Hi ALL,

 I am not able to download the Moby benchmark from the below link. kindly can 
you help me in this regard?

http://asg.ict.ac.cn/projects/moby/

Best Regards

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

[gem5-users] Asim Benchmark

2020-02-06 Thread ABD ALRHMAN ABO ALKHEEL
Hi All, I would like to run the Asim Benchmarks on the Gem5. Can you send me 
the download link of the Asim Benchmarks? Best
___
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-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 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 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-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 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-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

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

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

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
/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: ABD ALRHMAN ABO ALKHEEL 
Sent: Monday, January 13, 2020 3:49 AM
To: Dimitrios Chasapis ; gem5 users mailing list 

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

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.co

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-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 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

[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

[gem5-users] Run FS mode

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

I run this command and i got the below error. Any help would be appreciated.

Command:
build/X86/gem5.opt configs/example/fs.py --mem-size=3GB 
--kernel=/home/abdkhail/linux-4.19.91/vmlinux 
--disk-image=/home/abdkhail/Ubuntu16.04.img

Error:
Traceback (most recent call last):
  File "", line 1, in 
  File "build/X86/python/m5/main.py", line 457, in main
exec(filecode, scope)
  File "configs/example/fs.py", line 342, in 
test_sys = build_test_system(np)
  File "configs/example/fs.py", line 93, in build_test_system
cmdline=cmdline)
  File "/home/abdkhail/ggg/gem5/configs/common/FSConfig.py", line 606, in 
makeLinuxX86System
makeX86System(mem_mode, numCPUs, mdesc, self, Ruby)
  File "/home/abdkhail/ggg/gem5/configs/common/FSConfig.py", line 531, in 
makeX86System
disk0.childImage(mdesc.disk())
  File "/home/abdkhail/ggg/gem5/configs/common/Benchmarks.py", line 59, in disk
return disk(self.diskname)
  File "/home/abdkhail/ggg/gem5/configs/common/SysPaths.py", line 62, in 
__call__
raise IOError("Can't find a path to system files.")
IOError: Can't find a path to system files.

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

Re: [gem5-users] src/tcmalloc.cc:283] Attempt to free invalid pointer 0x55fc02f2fd09

2019-11-27 Thread ABD ALRHMAN ABO ALKHEEL
I already use g++-7 and I got the same error

From: gem5-users  on behalf of Polydoros Petrakis 

Sent: Wednesday, November 27, 2019 11:59:53 PM
To: gem5 users mailing list 
Subject: Re: [gem5-users] src/tcmalloc.cc:283] Attempt to free invalid pointer 
0x55fc02f2fd09

Hallo,
which g++ version do you use for building gem5?
Try removing build directory or scons -c and build with g++-7 to see if that 
fixes antything.


On Sat, Nov 23, 2019, 12:35 ABD ALRHMAN ABO ALKHEEL 
mailto:abdkeel...@hotmail.com>> wrote:
src/tcmalloc.cc:283] Attempt to free invalid pointer 0x55fc02f2fd09

I can run the benchmark on gem5 for thousands of instruction and when 
increasing the number of instructions to million I got this error.

src/tcmalloc.cc:283] Attempt to free invalid pointer 0x55fc02f2fd09

Any help would be appreciated?




From: gem5-users 
mailto:gem5-users-boun...@gem5.org>> on behalf of 
Abhishek Singh 
mailto:abhishek.singh199...@gmail.com>>
Sent: Saturday, November 23, 2019 3:53 AM
To: gem5 users mailing list mailto:gem5-users@gem5.org>>
Subject: Re: [gem5-users] derivo3cpu issue


Hi,
Where did you get the config file from?
Also can you run gdb and send us the backtrace?

On Fri, Nov 22, 2019 at 9:21 PM ABD ALRHMAN ABO ALKHEEL 
mailto:abdkeel...@hotmail.com>> wrote:
Global frequency set at 1 ticks per second
warn: DRAM device capacity (8192 Mbytes) does not match the address range 
assigned (16384 Mbytes)
0: system.remote_gdb: listening for remote gdb on port 7000
info: Entering event queue @ 0.  Starting simulation...
 REAL SIMULATION 
info: Increasing stack size by one page.
warn: ignoring syscall access(...)
warn: MOVNTDQ: Ignoring non-temporal hint, modeling as cacheable!
info: Increasing stack size by one page.
info: Increasing stack size by one page.
info: Increasing stack size by one page.
info: Increasing stack size by one page.
info: Increasing stack size by one page.
gem5 has encountered a segmentation fault!

--- BEGIN LIBC BACKTRACE ---
/home/abdkhail/aa/gem5/build/X86/gem5.opt(_Z15print_backtracev+0x2c)[0x55cda9d47dac]
/home/abdkhail/aa/gem5/build/X86/gem5.opt(+0x584e7f)[0x55cda9d59e7f]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x12890)[0x7f77bb174890]
/lib/x86_64-linux-gnu/libgcc_s.so.1(_Unwind_Resume+0xcf)[0x7f77b9b137df]
/home/abdkhail/aa/gem5/build/X86/gem5.opt(_ZN6X86ISA7Decoder10decodeInstENS_11ExtMachInstE+0x4e609)[0x55cda9ee8659]
/home/abdkhail/aa/gem5/build/X86/gem5.opt(_ZN6X86ISA7Decoder6decodeENS_11ExtMachInstEm+0x244)[0x55cda9e63db4]
Command: /home/abdkhail/aa/gem5/build/X86/gem5.opt 
--outdir=/home/abdkhail/aa/gem5/o1 
/home/abdkhail/aa/gem5/configs/example/spec06_config.py -I 10 
--benchmark=povray --benchmark_stdout=/home/abdkhail/aa/gem5/o1/povray.out 
--benchmark_stderr=/home/abdkhail/aa/gem5/o1/povray.err --cpu-type=DerivO3CPU 
--caches

From: gem5-users 
mailto:gem5-users-boun...@gem5.org>> on behalf of 
Abhishek Singh 
mailto:abhishek.singh199...@gmail.com>>
Sent: Friday, November 22, 2019 11:11:38 PM
To: gem5 users mailing list mailto:gem5-users@gem5.org>>
Cc: gem5-users mailto:gem5-users-boun...@gem5.org>>
Subject: Re: [gem5-users] derivo3cpu issue

Hey,
What is the error and what is the command line?
Can you run gdb and paste the back trace?
Did you made any changes to baseline gem5?

On Fri, Nov 22, 2019 at 5:54 PM ABD ALRHMAN ABO ALKHEEL 
mailto:abdkeel...@hotmail.com>> wrote:
Hello everyone, I am running the benchmark on gem5 and I got error when I use 
derivo3cpu . I have to use it so how I can fix the issue?
___
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
___
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
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] AMD GPU compute model run fail

2019-11-24 Thread ABD ALRHMAN ABO ALKHEEL

src/tcmalloc.cc:283] Attempt to free invalid pointer 0x55fc02f2fd09

I can run the benchmark on gem5 for thousands of instruction and when 
increasing the number of instructions to million I got this error.

src/tcmalloc.cc:283] Attempt to free invalid pointer 0x55fc02f2fd09

From: gem5-users  on behalf of Andrew Chu 

Sent: Monday, November 25, 2019 12:26:34 AM
To: gem5 users mailing list 
Subject: Re: [gem5-users] AMD GPU compute model run fail

Hi Matt,

Thanks for your suggestions. Refer to this thread 
https://www.mail-archive.com/gem5-users@gem5.org/msg16276.html, with 
"--amdgpu-target=gfx801" to the link flag, both CoMD and lulesh can run to 
complete

Matt Sinclair mailto:mattdsincl...@gmail.com>> 於 
2019年11月22日 週五 下午11:48寫道:
Hi Andrew,

Normally this error indicates that something with your ROCm setup is wrong -- 
you can look through the mailing list archive and see a few examples of people 
with the same types of errors along with the suggestions (e.g., what kind of 
traces) to get to start debugging the problem.  Why did you install ROCm 1.6.1? 
 If you look at the wiki, AMD suggests using 1.6.x instead: 
http://gem5.org/GPU_Models#ROCm_tool_chain_and_software_stack.  I can't promise 
that changing from 1.6.1 to 1.6.x will solve your problem, but it would be a 
good start/thing to check.  Also, I'm not familiar with this sample program -- 
does it assume the device is a discrete GPU?  If so, the gem5 AMD GPU model 
assumes the GPU is tightly coupled and cache coherent.  So you would need to 
remove those copies (although it appears your failure is happening sooner than 
that).

Thanks,
Matt

On Fri, Nov 15, 2019 at 2:17 AM Andrew Chu 
mailto:chuchih...@gmail.com>> wrote:
I got a GEM5 fatal error which syscall mincore was not implemented. Does anyone 
have the same experience about this?

=

Environment setting:
Host OS: Ubuntu 16.04.6 LTS
GEM5: git clone https://gem5.googlesource.com/amd/gem5 -b 
agutierr/master-gcn3-staging
ROCM: http://repo.radeon.com/rocm/archive/apt_1.6.1.tar.bz2
SE test program: 
https://github.com/ROCm-Developer-Tools/HIP-Examples/tree/master/HIP-Examples-Applications/HelloWorld
 with HIP_PLATFORM=hcc
CMD: ./build/GCN3_X86/gem5.opt --debug-flag=GPUALL configs/example/apu_se.py -n 
2 -c tests/test-progs/hip-hello/HelloWorld
Result:
.
.
.
warn: ignoring syscall sched_yield(...)
warn: ignoring syscall sched_yield(...)
warn: ignoring syscall sched_yield(...)
warn: ignoring syscall sched_yield(...)
warn: ignoring syscall sched_yield(...)
warn: ignoring syscall sched_yield(...)
warn: ignoring syscall sched_yield(...)
warn: ignoring syscall sched_yield(...)
warn: ignoring syscall sched_yield(...)
warn: ignoring syscall sched_yield(...)
warn: ignoring syscall sched_yield(...)
warn: ignoring syscall sched_yield(...)
warn: ignoring syscall sched_yield(...)
warn: ignoring syscall sched_yield(...)
warn: ignoring syscall sched_yield(...)
fatal: syscall mincore (#27) unimplemented.

===

Once I ignore this system call, the test program will have run time error

warn: ignoring syscall mincore(...)
warn: ignoring syscall mincore(...)

Backtrace:
0x0040d941:  + 0x5
0x0040dc50:  + 0x5
0x0040db09:  + 0x5
0x00426bdd:  + 0x5
0x75f517bf:  + 0x5
0x0041b509:  + 0x5

### HCC RUNTIME ERROR: Fail to find compatible kernel at 
file:/home/jenkins/jenkins-root/workspace/compute-rocm-rel-1.6/external/hcc-tot/lib/mcwamp.cpp
 line:346
___
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 mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

[gem5-users] Fw: Fw: src/tcmalloc.cc:283] Attempt to free invalid pointer 0x55fc02f2fd09

2019-11-24 Thread ABD ALRHMAN ABO ALKHEEL
src/tcmalloc.cc:283] Attempt to free invalid pointer 0x55fc02f2fd09

I can run the benchmark on gem5 for thousands of instruction and when 
increasing the number of instructions to million I got this error.

src/tcmalloc.cc:283] Attempt to free invalid pointer 0x55fc02f2fd09

Any help would be appreciated?

From: gem5-users  on behalf of ABD ALRHMAN ABO 
ALKHEEL 
Sent: Sunday, November 24, 2019 2:21:41 AM
To: gem5 users mailing list ; gem5-users 

Subject: [gem5-users] Fw: src/tcmalloc.cc:283] Attempt to free invalid pointer 
0x55fc02f2fd09

src/tcmalloc.cc:283] Attempt to free invalid pointer 0x55fc02f2fd09

I can run the benchmark on gem5 for thousands of instruction and when 
increasing the number of instructions to million I got this error.

src/tcmalloc.cc:283] Attempt to free invalid pointer 0x55fc02f2fd09

Any help would be appreciated?

From: gem5-users  on behalf of ABD ALRHMAN ABO 
ALKHEEL 
Sent: Saturday, November 23, 2019 10:35:01 AM
To: gem5 users mailing list 
Subject: Re: [gem5-users] src/tcmalloc.cc:283] Attempt to free invalid pointer 
0x55fc02f2fd09

src/tcmalloc.cc:283] Attempt to free invalid pointer 0x55fc02f2fd09

I can run the benchmark on gem5 for thousands of instruction and when 
increasing the number of instructions to million I got this error.

src/tcmalloc.cc:283] Attempt to free invalid pointer 0x55fc02f2fd09

Any help would be appreciated?




From: gem5-users  on behalf of Abhishek Singh 

Sent: Saturday, November 23, 2019 3:53 AM
To: gem5 users mailing list 
Subject: Re: [gem5-users] derivo3cpu issue


Hi,
Where did you get the config file from?
Also can you run gdb and send us the backtrace?

On Fri, Nov 22, 2019 at 9:21 PM ABD ALRHMAN ABO ALKHEEL 
mailto:abdkeel...@hotmail.com>> wrote:
Global frequency set at 1 ticks per second
warn: DRAM device capacity (8192 Mbytes) does not match the address range 
assigned (16384 Mbytes)
0: system.remote_gdb: listening for remote gdb on port 7000
info: Entering event queue @ 0.  Starting simulation...
 REAL SIMULATION 
info: Increasing stack size by one page.
warn: ignoring syscall access(...)
warn: MOVNTDQ: Ignoring non-temporal hint, modeling as cacheable!
info: Increasing stack size by one page.
info: Increasing stack size by one page.
info: Increasing stack size by one page.
info: Increasing stack size by one page.
info: Increasing stack size by one page.
gem5 has encountered a segmentation fault!

--- BEGIN LIBC BACKTRACE ---
/home/abdkhail/aa/gem5/build/X86/gem5.opt(_Z15print_backtracev+0x2c)[0x55cda9d47dac]
/home/abdkhail/aa/gem5/build/X86/gem5.opt(+0x584e7f)[0x55cda9d59e7f]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x12890)[0x7f77bb174890]
/lib/x86_64-linux-gnu/libgcc_s.so.1(_Unwind_Resume+0xcf)[0x7f77b9b137df]
/home/abdkhail/aa/gem5/build/X86/gem5.opt(_ZN6X86ISA7Decoder10decodeInstENS_11ExtMachInstE+0x4e609)[0x55cda9ee8659]
/home/abdkhail/aa/gem5/build/X86/gem5.opt(_ZN6X86ISA7Decoder6decodeENS_11ExtMachInstEm+0x244)[0x55cda9e63db4]
Command: /home/abdkhail/aa/gem5/build/X86/gem5.opt 
--outdir=/home/abdkhail/aa/gem5/o1 
/home/abdkhail/aa/gem5/configs/example/spec06_config.py -I 10 
--benchmark=povray --benchmark_stdout=/home/abdkhail/aa/gem5/o1/povray.out 
--benchmark_stderr=/home/abdkhail/aa/gem5/o1/povray.err --cpu-type=DerivO3CPU 
--caches

From: gem5-users 
mailto:gem5-users-boun...@gem5.org>> on behalf of 
Abhishek Singh 
mailto:abhishek.singh199...@gmail.com>>
Sent: Friday, November 22, 2019 11:11:38 PM
To: gem5 users mailing list mailto:gem5-users@gem5.org>>
Cc: gem5-users mailto:gem5-users-boun...@gem5.org>>
Subject: Re: [gem5-users] derivo3cpu issue

Hey,
What is the error and what is the command line?
Can you run gdb and paste the back trace?
Did you made any changes to baseline gem5?

On Fri, Nov 22, 2019 at 5:54 PM ABD ALRHMAN ABO ALKHEEL 
mailto:abdkeel...@hotmail.com>> wrote:
Hello everyone, I am running the benchmark on gem5 and I got error when I use 
derivo3cpu . I have to use it so how I can fix the issue?
___
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
___
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 mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] src/tcmalloc.cc:283] Attempt to free invalid pointer 0x55fc02f2fd09

2019-11-23 Thread ABD ALRHMAN ABO ALKHEEL
src/tcmalloc.cc:283] Attempt to free invalid pointer 0x55fc02f2fd09

I can run the benchmark on gem5 for thousands of instruction and when 
increasing the number of instructions to million I got this error.

src/tcmalloc.cc:283] Attempt to free invalid pointer 0x55fc02f2fd09

Any help would be appreciated?




From: gem5-users  on behalf of Abhishek Singh 

Sent: Saturday, November 23, 2019 3:53 AM
To: gem5 users mailing list 
Subject: Re: [gem5-users] derivo3cpu issue


Hi,
Where did you get the config file from?
Also can you run gdb and send us the backtrace?

On Fri, Nov 22, 2019 at 9:21 PM ABD ALRHMAN ABO ALKHEEL 
mailto:abdkeel...@hotmail.com>> wrote:
Global frequency set at 1 ticks per second
warn: DRAM device capacity (8192 Mbytes) does not match the address range 
assigned (16384 Mbytes)
0: system.remote_gdb: listening for remote gdb on port 7000
info: Entering event queue @ 0.  Starting simulation...
 REAL SIMULATION 
info: Increasing stack size by one page.
warn: ignoring syscall access(...)
warn: MOVNTDQ: Ignoring non-temporal hint, modeling as cacheable!
info: Increasing stack size by one page.
info: Increasing stack size by one page.
info: Increasing stack size by one page.
info: Increasing stack size by one page.
info: Increasing stack size by one page.
gem5 has encountered a segmentation fault!

--- BEGIN LIBC BACKTRACE ---
/home/abdkhail/aa/gem5/build/X86/gem5.opt(_Z15print_backtracev+0x2c)[0x55cda9d47dac]
/home/abdkhail/aa/gem5/build/X86/gem5.opt(+0x584e7f)[0x55cda9d59e7f]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x12890)[0x7f77bb174890]
/lib/x86_64-linux-gnu/libgcc_s.so.1(_Unwind_Resume+0xcf)[0x7f77b9b137df]
/home/abdkhail/aa/gem5/build/X86/gem5.opt(_ZN6X86ISA7Decoder10decodeInstENS_11ExtMachInstE+0x4e609)[0x55cda9ee8659]
/home/abdkhail/aa/gem5/build/X86/gem5.opt(_ZN6X86ISA7Decoder6decodeENS_11ExtMachInstEm+0x244)[0x55cda9e63db4]
Command: /home/abdkhail/aa/gem5/build/X86/gem5.opt 
--outdir=/home/abdkhail/aa/gem5/o1 
/home/abdkhail/aa/gem5/configs/example/spec06_config.py -I 10 
--benchmark=povray --benchmark_stdout=/home/abdkhail/aa/gem5/o1/povray.out 
--benchmark_stderr=/home/abdkhail/aa/gem5/o1/povray.err --cpu-type=DerivO3CPU 
--caches

From: gem5-users 
mailto:gem5-users-boun...@gem5.org>> on behalf of 
Abhishek Singh 
mailto:abhishek.singh199...@gmail.com>>
Sent: Friday, November 22, 2019 11:11:38 PM
To: gem5 users mailing list mailto:gem5-users@gem5.org>>
Cc: gem5-users mailto:gem5-users-boun...@gem5.org>>
Subject: Re: [gem5-users] derivo3cpu issue

Hey,
What is the error and what is the command line?
Can you run gdb and paste the back trace?
Did you made any changes to baseline gem5?

On Fri, Nov 22, 2019 at 5:54 PM ABD ALRHMAN ABO ALKHEEL 
mailto:abdkeel...@hotmail.com>> wrote:
Hello everyone, I am running the benchmark on gem5 and I got error when I use 
derivo3cpu . I have to use it so how I can fix the issue?
___
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
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] derivo3cpu issue

2019-11-22 Thread ABD ALRHMAN ABO ALKHEEL
Global frequency set at 1 ticks per second
warn: DRAM device capacity (8192 Mbytes) does not match the address range 
assigned (16384 Mbytes)
0: system.remote_gdb: listening for remote gdb on port 7000
info: Entering event queue @ 0.  Starting simulation...
 REAL SIMULATION 
info: Increasing stack size by one page.
warn: ignoring syscall access(...)
warn: MOVNTDQ: Ignoring non-temporal hint, modeling as cacheable!
info: Increasing stack size by one page.
info: Increasing stack size by one page.
info: Increasing stack size by one page.
info: Increasing stack size by one page.
info: Increasing stack size by one page.
gem5 has encountered a segmentation fault!

--- BEGIN LIBC BACKTRACE ---
/home/abdkhail/aa/gem5/build/X86/gem5.opt(_Z15print_backtracev+0x2c)[0x55cda9d47dac]
/home/abdkhail/aa/gem5/build/X86/gem5.opt(+0x584e7f)[0x55cda9d59e7f]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x12890)[0x7f77bb174890]
/lib/x86_64-linux-gnu/libgcc_s.so.1(_Unwind_Resume+0xcf)[0x7f77b9b137df]
/home/abdkhail/aa/gem5/build/X86/gem5.opt(_ZN6X86ISA7Decoder10decodeInstENS_11ExtMachInstE+0x4e609)[0x55cda9ee8659]
/home/abdkhail/aa/gem5/build/X86/gem5.opt(_ZN6X86ISA7Decoder6decodeENS_11ExtMachInstEm+0x244)[0x55cda9e63db4]
Command: /home/abdkhail/aa/gem5/build/X86/gem5.opt 
--outdir=/home/abdkhail/aa/gem5/o1 
/home/abdkhail/aa/gem5/configs/example/spec06_config.py -I 10 
--benchmark=povray --benchmark_stdout=/home/abdkhail/aa/gem5/o1/povray.out 
--benchmark_stderr=/home/abdkhail/aa/gem5/o1/povray.err --cpu-type=DerivO3CPU 
--caches

From: gem5-users  on behalf of Abhishek Singh 

Sent: Friday, November 22, 2019 11:11:38 PM
To: gem5 users mailing list 
Cc: gem5-users 
Subject: Re: [gem5-users] derivo3cpu issue

Hey,
What is the error and what is the command line?
Can you run gdb and paste the back trace?
Did you made any changes to baseline gem5?

On Fri, Nov 22, 2019 at 5:54 PM ABD ALRHMAN ABO ALKHEEL 
mailto:abdkeel...@hotmail.com>> wrote:
Hello everyone, I am running the benchmark on gem5 and I got error when I use 
derivo3cpu . I have to use it so how I can fix the issue?
___
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
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

[gem5-users] derivo3cpu issue

2019-11-22 Thread ABD ALRHMAN ABO ALKHEEL
Hello everyone, I am running the benchmark on gem5 and I got error when I use 
derivo3cpu . I have to use it so how I can fix the issue?
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] gem5 has encountered a segmentation fault!

2019-11-22 Thread ABD ALRHMAN ABO ALKHEEL
Thanks Gerzhoy for your email.

The code is attached here. I got the error for some of benchmarks not for all.

I used this command to run the code
/home/abdkhail/aa/gem5/build/X86/gem5.opt --outdir=/home/abdkhail/aa/gem5/o1 
/home/abdkhail/aa/gem5/configs/example/spec06_config.py -I 10 
--benchmark=povray --benchmark_stdout=/home/abdkhail/aa/gem5/o1/povray.out 
--benchmark_stderr=/home/abdkhail/aa/gem5/o1/povray.err --cpu-type=DerivO3CPU 
--caches

I observed when i changed --cpu-type=DerivO3CPU  to another CPU type it is 
working fine but i have to get the stats output of this type 
--cpu-type=DerivO3CPU .

Best Regards


From: gem5-users  on behalf of Daniel Gerzhoy 

Sent: Friday, November 22, 2019 7:05 PM
To: gem5 users mailing list 
Subject: Re: [gem5-users] gem5 has encountered a segmentation fault!

It looks like gem5 itself had a segfault.

Did you change the simulator code itself?
If so I would look at whatever code you added to see if you referenced a memory 
address you don't actually have access to.

You could run the simulator in GDB as well and add breakpoints to debug further.

best regards,

Dan Gerzhoy

On Fri, Nov 22, 2019 at 1:55 PM ABD ALRHMAN ABO ALKHEEL 
mailto:abdkeel...@hotmail.com>> wrote:
Hello Everyone,

I am currently working on running the benchmark on gem5 and some of them gave 
me the below error.

Any help in this regard? I would really appreciate  that.


Best Regards





Global frequency set at 1 ticks per second
warn: DRAM device capacity (8192 Mbytes) does not match the address range 
assigned (16384 Mbytes)
0: system.remote_gdb: listening for remote gdb on port 7000
info: Entering event queue @ 0.  Starting simulation...
 REAL SIMULATION 
info: Increasing stack size by one page.
warn: ignoring syscall access(...)
warn: MOVNTDQ: Ignoring non-temporal hint, modeling as cacheable!
info: Increasing stack size by one page.
info: Increasing stack size by one page.
info: Increasing stack size by one page.
info: Increasing stack size by one page.
info: Increasing stack size by one page.
gem5 has encountered a segmentation fault!

--- BEGIN LIBC BACKTRACE ---
/home/abdkhail/aa/gem5/build/X86/gem5.opt(_Z15print_backtracev+0x2c)[0x55cda9d47dac]
/home/abdkhail/aa/gem5/build/X86/gem5.opt(+0x584e7f)[0x55cda9d59e7f]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x12890)[0x7f77bb174890]
/lib/x86_64-linux-gnu/libgcc_s.so.1(_Unwind_Resume+0xcf)[0x7f77b9b137df]
/home/abdkhail/aa/gem5/build/X86/gem5.opt(_ZN6X86ISA7Decoder10decodeInstENS_11ExtMachInstE+0x4e609)[0x55cda9ee8659]
/home/abdkhail/aa/gem5/build/X86/gem5.opt(_ZN6X86ISA7Decoder6decodeENS_11ExtMachInstEm+0x244)[0x55cda9e63db4]
/home/abdkhail/aa/gem5/build/X86/gem5.opt(_ZN6X86ISA7Decoder6decodeERNS_7PCStateE+0x237)[0x55cda9e640b7]
/home/abdkhail/aa/gem5/build/X86/gem5.opt(_ZN12DefaultFetchI9O3CPUImplE5fetchERb+0x941)[0x55cdaaa51301]
/home/abdkhail/aa/gem5/build/X86/gem5.opt(_ZN12DefaultFetchI9O3CPUImplE4tickEv+0xcb)[0x55cdaaa5235b]
/home/abdkhail/aa/gem5/build/X86/gem5.opt(_ZN9FullO3CPUI9O3CPUImplE4tickEv+0x12b)[0x55cdaaa349ab]
/home/abdkhail/aa/gem5/build/X86/gem5.opt(_ZN10EventQueue10serviceOneEv+0xd9)[0x55cda9d4ffb9]
/home/abdkhail/aa/gem5/build/X86/gem5.opt(_Z9doSimLoopP10EventQueue+0x87)[0x55cda9d708b7]
/home/abdkhail/aa/gem5/build/X86/gem5.opt(_Z8simulatem+0xcba)[0x55cda9d7190a]
/home/abdkhail/aa/gem5/build/X86/gem5.opt(+0xd4ea5e)[0x55cdaa523a5e]
/home/abdkhail/aa/gem5/build/X86/gem5.opt(+0x5e6954)[0x55cda9dbb954]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5f82)[0x7f77bb42e522]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7d8)[0x7f77bb560bf8]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6364)[0x7f77bb42e904]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7d8)[0x7f77bb560bf8]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6364)[0x7f77bb42e904]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7d8)[0x7f77bb560bf8]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6364)[0x7f77bb42e904]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7d8)[0x7f77bb560bf8]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCode+0x19)[0x7f77bb428409]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x68a5)[0x7f77bb42ee45]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7d8)[0x7f77bb560bf8]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6364)[0x7f77bb42e904]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7d8)[0x7f77bb560bf8]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCode+0x19)[0x7f77bb428409]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyRun_StringFlags+0x76)[0x7f77bb4d86d6]
/home/abdkhail/aa/gem5/build/X86/gem5.opt(_Z6m5MainiPPc+0x83)[0x55cda9d58a43]
/home/abdkhail/aa/gem5/
___
gem5-users mailin

[gem5-users] gem5 has encountered a segmentation fault!

2019-11-22 Thread ABD ALRHMAN ABO ALKHEEL
Hello Everyone,

I am currently working on running the benchmark on gem5 and some of them gave 
me the below error.

Any help in this regard? I would really appreciate  that.


Best Regards





Global frequency set at 1 ticks per second
warn: DRAM device capacity (8192 Mbytes) does not match the address range 
assigned (16384 Mbytes)
0: system.remote_gdb: listening for remote gdb on port 7000
info: Entering event queue @ 0.  Starting simulation...
 REAL SIMULATION 
info: Increasing stack size by one page.
warn: ignoring syscall access(...)
warn: MOVNTDQ: Ignoring non-temporal hint, modeling as cacheable!
info: Increasing stack size by one page.
info: Increasing stack size by one page.
info: Increasing stack size by one page.
info: Increasing stack size by one page.
info: Increasing stack size by one page.
gem5 has encountered a segmentation fault!

--- BEGIN LIBC BACKTRACE ---
/home/abdkhail/aa/gem5/build/X86/gem5.opt(_Z15print_backtracev+0x2c)[0x55cda9d47dac]
/home/abdkhail/aa/gem5/build/X86/gem5.opt(+0x584e7f)[0x55cda9d59e7f]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x12890)[0x7f77bb174890]
/lib/x86_64-linux-gnu/libgcc_s.so.1(_Unwind_Resume+0xcf)[0x7f77b9b137df]
/home/abdkhail/aa/gem5/build/X86/gem5.opt(_ZN6X86ISA7Decoder10decodeInstENS_11ExtMachInstE+0x4e609)[0x55cda9ee8659]
/home/abdkhail/aa/gem5/build/X86/gem5.opt(_ZN6X86ISA7Decoder6decodeENS_11ExtMachInstEm+0x244)[0x55cda9e63db4]
/home/abdkhail/aa/gem5/build/X86/gem5.opt(_ZN6X86ISA7Decoder6decodeERNS_7PCStateE+0x237)[0x55cda9e640b7]
/home/abdkhail/aa/gem5/build/X86/gem5.opt(_ZN12DefaultFetchI9O3CPUImplE5fetchERb+0x941)[0x55cdaaa51301]
/home/abdkhail/aa/gem5/build/X86/gem5.opt(_ZN12DefaultFetchI9O3CPUImplE4tickEv+0xcb)[0x55cdaaa5235b]
/home/abdkhail/aa/gem5/build/X86/gem5.opt(_ZN9FullO3CPUI9O3CPUImplE4tickEv+0x12b)[0x55cdaaa349ab]
/home/abdkhail/aa/gem5/build/X86/gem5.opt(_ZN10EventQueue10serviceOneEv+0xd9)[0x55cda9d4ffb9]
/home/abdkhail/aa/gem5/build/X86/gem5.opt(_Z9doSimLoopP10EventQueue+0x87)[0x55cda9d708b7]
/home/abdkhail/aa/gem5/build/X86/gem5.opt(_Z8simulatem+0xcba)[0x55cda9d7190a]
/home/abdkhail/aa/gem5/build/X86/gem5.opt(+0xd4ea5e)[0x55cdaa523a5e]
/home/abdkhail/aa/gem5/build/X86/gem5.opt(+0x5e6954)[0x55cda9dbb954]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5f82)[0x7f77bb42e522]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7d8)[0x7f77bb560bf8]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6364)[0x7f77bb42e904]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7d8)[0x7f77bb560bf8]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6364)[0x7f77bb42e904]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7d8)[0x7f77bb560bf8]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6364)[0x7f77bb42e904]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7d8)[0x7f77bb560bf8]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCode+0x19)[0x7f77bb428409]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x68a5)[0x7f77bb42ee45]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7d8)[0x7f77bb560bf8]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6364)[0x7f77bb42e904]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7d8)[0x7f77bb560bf8]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCode+0x19)[0x7f77bb428409]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyRun_StringFlags+0x76)[0x7f77bb4d86d6]
/home/abdkhail/aa/gem5/build/X86/gem5.opt(_Z6m5MainiPPc+0x83)[0x55cda9d58a43]
/home/abdkhail/aa/gem5/
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] AMD GPU compute model run fail

2019-11-22 Thread ABD ALRHMAN ABO ALKHEEL
I got this error ( gem5 has segmentation faults) please help me.

From: gem5-users  on behalf of Matt Sinclair 

Sent: Friday, November 22, 2019 3:48:21 PM
To: gem5 users mailing list 
Subject: Re: [gem5-users] AMD GPU compute model run fail

Hi Andrew,

Normally this error indicates that something with your ROCm setup is wrong -- 
you can look through the mailing list archive and see a few examples of people 
with the same types of errors along with the suggestions (e.g., what kind of 
traces) to get to start debugging the problem.  Why did you install ROCm 1.6.1? 
 If you look at the wiki, AMD suggests using 1.6.x instead: 
http://gem5.org/GPU_Models#ROCm_tool_chain_and_software_stack.  I can't promise 
that changing from 1.6.1 to 1.6.x will solve your problem, but it would be a 
good start/thing to check.  Also, I'm not familiar with this sample program -- 
does it assume the device is a discrete GPU?  If so, the gem5 AMD GPU model 
assumes the GPU is tightly coupled and cache coherent.  So you would need to 
remove those copies (although it appears your failure is happening sooner than 
that).

Thanks,
Matt

On Fri, Nov 15, 2019 at 2:17 AM Andrew Chu 
mailto:chuchih...@gmail.com>> wrote:
I got a GEM5 fatal error which syscall mincore was not implemented. Does anyone 
have the same experience about this?

=

Environment setting:
Host OS: Ubuntu 16.04.6 LTS
GEM5: git clone https://gem5.googlesource.com/amd/gem5 -b 
agutierr/master-gcn3-staging
ROCM: http://repo.radeon.com/rocm/archive/apt_1.6.1.tar.bz2
SE test program: 
https://github.com/ROCm-Developer-Tools/HIP-Examples/tree/master/HIP-Examples-Applications/HelloWorld
 with HIP_PLATFORM=hcc
CMD: ./build/GCN3_X86/gem5.opt --debug-flag=GPUALL configs/example/apu_se.py -n 
2 -c tests/test-progs/hip-hello/HelloWorld
Result:
.
.
.
warn: ignoring syscall sched_yield(...)
warn: ignoring syscall sched_yield(...)
warn: ignoring syscall sched_yield(...)
warn: ignoring syscall sched_yield(...)
warn: ignoring syscall sched_yield(...)
warn: ignoring syscall sched_yield(...)
warn: ignoring syscall sched_yield(...)
warn: ignoring syscall sched_yield(...)
warn: ignoring syscall sched_yield(...)
warn: ignoring syscall sched_yield(...)
warn: ignoring syscall sched_yield(...)
warn: ignoring syscall sched_yield(...)
warn: ignoring syscall sched_yield(...)
warn: ignoring syscall sched_yield(...)
warn: ignoring syscall sched_yield(...)
fatal: syscall mincore (#27) unimplemented.

===

Once I ignore this system call, the test program will have run time error

warn: ignoring syscall mincore(...)
warn: ignoring syscall mincore(...)

Backtrace:
0x0040d941:  + 0x5
0x0040dc50:  + 0x5
0x0040db09:  + 0x5
0x00426bdd:  + 0x5
0x75f517bf:  + 0x5
0x0041b509:  + 0x5

### HCC RUNTIME ERROR: Fail to find compatible kernel at 
file:/home/jenkins/jenkins-root/workspace/compute-rocm-rel-1.6/external/hcc-tot/lib/mcwamp.cpp
 line:346
___
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] Fw: stats seem to be wrong in multicore simulation using SE mode

2019-10-22 Thread ABD ALRHMAN ABO ALKHEEL
Hello,

I wanna run sha3 algorithm (hashing function) on gem5 for million instructions. 
The algorithm runs as follow:
sha3sum 256 file path.

I added these parsers on se.py
parser.add_option("-a", type="int")
parser.add_option("-b", type="string")

I run this command
build/X86/gem5.opt configs/example/se.py -I 100 -c 
/home/abdkhail/project2/gem5/SHA3IUF/sha3sum -a 256 -b myfile  
--cpu-type=DerivO3CPU --caches

The algorithm runs only 100 thousand instructions and then exits even if I 
passed the large file to the algorithm.

Exiting @ tick 188440500 because exiting with last active thread context
Simulated exit code not 0! Exit code is 1

Any help, please.

Best Regards








________________
From: ABD ALRHMAN ABO ALKHEEL 
Sent: Tuesday, October 22, 2019 3:15:03 AM
To: gem5 users mailing list 
Subject: Re: [gem5-users] stats seem to be wrong in multicore simulation using 
SE mode

Hello,

I wanna run sha3 algorithm (hashing function) on gem5 for million instructions. 
The algorithm runs as follow:
sha3sum 256 file path.

I added these parsers on se.py
parser.add_option("-a", type="int")
parser.add_option("-b", type="string")

I run this command
build/X86/gem5.opt configs/example/se.py -I 100 -c 
/home/abdkhail/project2/gem5/SHA3IUF/sha3sum -a 256 -b myfile  
--cpu-type=DerivO3CPU --caches

The algorithm runs only 100 thousand instructions and then exits even if I 
passed the large file to the algorithm.

Exiting @ tick 188440500 because exiting with last active thread context
Simulated exit code not 0! Exit code is 1

Any help, please.

Best Regards











From: gem5-users  on behalf of Ciro Santilli 

Sent: Monday, October 21, 2019 10:21 PM
To: Francisco Carlos 
Cc: gem5 users mailing list 
Subject: Re: [gem5-users] stats seem to be wrong in multicore simulation using 
SE mode

Maybe num_idle_cycles? But not sure, I would try to check if the
values for that match and read source.

On Mon, Oct 21, 2019 at 10:58 PM Francisco Carlos
 wrote:
>
> Thank for your quick reply, Ciro.
>
> Yes, i call pthread_join()
>
> I am using risc-v isa and i saw, using debug flags, that there is a ecall 
> instruction where the cpu sleeps.
>
> So, the difference in cycles is the cycles that the cpus are sleeping, right?
>
> Is there a easy way to compute the sleep cycles to each cpu? Or is just 
> sim_ticks - cpu#.numCycles?
>
> Thanks in advance.
>
>
> Obter o Outlook para iOS
> 
> De: Ciro Santilli 
> Enviado: Monday, October 21, 2019 6:50:37 PM
> Para: gem5 users mailing list ; juninho.u...@hotmail.com 
> 
> Assunto: Re: [gem5-users] stats seem to be wrong in multicore simulation 
> using SE mode
>
> Are the threads waiting for one another e.g. with pthread_join?
>
> This leads to futex syscalls WAIT, which I think make the CPU stop
> ticking until WAKE, have a look at futexFunc.
>
> Also try tracing with --debug-flags ExecAll,SyscallBase you should be
> able to see CPUs stop tracing after they go to sleep on syscalls.
>
> On Mon, Oct 21, 2019 at 7:20 PM Francisco Carlos
>  wrote:
> >
> > Hi all,
> >
> > I am running a simulation using Pthreads lib in a four-core processor using 
> > SE mode in gem5. I separate the snippet of the stats file to show my 
> > problem, as can be seen below:
> >
> >
> > sim_ticks   723694000   
> > # Number of ticks simulated
> > system.cpu0.numCycles  186781   
> > # number of cpu cycles simulated
> > system.cpu1.numCycles  636089   
> > # number of cpu cycles simulated
> > system.cpu2.numCycles  635944   
> > # number of cpu cycles simulated
> > system.cpu3.numCycles  650838   
> > # number of cpu cycles simulated
> >
> >
> > I am using 1 GHz clock frequency, therefore, the sim_ticks correspond to 
> > 723.694 cycles to execute the application. However, none of the processors 
> > took this number of cycles.
> >
> > Anyone know why is this happening?
> >
> > Thanks in advance.
> >
> > --
> > Francisco Carlos Silva Junior
> > Phd student at University of Brasilia
> >
> > ___
> > 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 mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] stats seem to be wrong in multicore simulation using SE mode

2019-10-21 Thread ABD ALRHMAN ABO ALKHEEL
Hello,

I wanna run sha3 algorithm (hashing function) on gem5 for million instructions. 
The algorithm runs as follow:
sha3sum 256 file path.

I added these parsers on se.py
parser.add_option("-a", type="int")
parser.add_option("-b", type="string")

I run this command
build/X86/gem5.opt configs/example/se.py -I 100 -c 
/home/abdkhail/project2/gem5/SHA3IUF/sha3sum -a 256 -b myfile  
--cpu-type=DerivO3CPU --caches

The algorithm runs only 100 thousand instructions and then exits even if I 
passed the large file to the algorithm.

Exiting @ tick 188440500 because exiting with last active thread context
Simulated exit code not 0! Exit code is 1

Any help, please.

Best Regards











From: gem5-users  on behalf of Ciro Santilli 

Sent: Monday, October 21, 2019 10:21 PM
To: Francisco Carlos 
Cc: gem5 users mailing list 
Subject: Re: [gem5-users] stats seem to be wrong in multicore simulation using 
SE mode

Maybe num_idle_cycles? But not sure, I would try to check if the
values for that match and read source.

On Mon, Oct 21, 2019 at 10:58 PM Francisco Carlos
 wrote:
>
> Thank for your quick reply, Ciro.
>
> Yes, i call pthread_join()
>
> I am using risc-v isa and i saw, using debug flags, that there is a ecall 
> instruction where the cpu sleeps.
>
> So, the difference in cycles is the cycles that the cpus are sleeping, right?
>
> Is there a easy way to compute the sleep cycles to each cpu? Or is just 
> sim_ticks - cpu#.numCycles?
>
> Thanks in advance.
>
>
> Obter o Outlook para iOS
> 
> De: Ciro Santilli 
> Enviado: Monday, October 21, 2019 6:50:37 PM
> Para: gem5 users mailing list ; juninho.u...@hotmail.com 
> 
> Assunto: Re: [gem5-users] stats seem to be wrong in multicore simulation 
> using SE mode
>
> Are the threads waiting for one another e.g. with pthread_join?
>
> This leads to futex syscalls WAIT, which I think make the CPU stop
> ticking until WAKE, have a look at futexFunc.
>
> Also try tracing with --debug-flags ExecAll,SyscallBase you should be
> able to see CPUs stop tracing after they go to sleep on syscalls.
>
> On Mon, Oct 21, 2019 at 7:20 PM Francisco Carlos
>  wrote:
> >
> > Hi all,
> >
> > I am running a simulation using Pthreads lib in a four-core processor using 
> > SE mode in gem5. I separate the snippet of the stats file to show my 
> > problem, as can be seen below:
> >
> >
> > sim_ticks   723694000   
> > # Number of ticks simulated
> > system.cpu0.numCycles  186781   
> > # number of cpu cycles simulated
> > system.cpu1.numCycles  636089   
> > # number of cpu cycles simulated
> > system.cpu2.numCycles  635944   
> > # number of cpu cycles simulated
> > system.cpu3.numCycles  650838   
> > # number of cpu cycles simulated
> >
> >
> > I am using 1 GHz clock frequency, therefore, the sim_ticks correspond to 
> > 723.694 cycles to execute the application. However, none of the processors 
> > took this number of cycles.
> >
> > Anyone know why is this happening?
> >
> > Thanks in advance.
> >
> > --
> > Francisco Carlos Silva Junior
> > Phd student at University of Brasilia
> >
> > ___
> > 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 mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] Fw: [gem5]: SHA2 and SHA3 on gem5

2019-10-17 Thread ABD ALRHMAN ABO ALKHEEL
Hi, thanks for your email. It basically hash algorithm. Please have a look at 
this link https://github.com/brainhub/SHA3IUF . How I can run this algorithm on 
gem5?

From: gem5-users  on behalf of Abhishek Singh 

Sent: Thursday, October 17, 2019 8:43:23 PM
To: gem5 users mailing list 
Cc: gem5-users 
Subject: Re: [gem5-users] Fw: [gem5]: SHA2 and SHA3 on gem5


Hi,
Can you explain in detail what is SHA2 and SHA3, any links?

On Thu, Oct 17, 2019 at 3:09 PM ABD ALRHMAN ABO ALKHEEL 
mailto:abdkeel...@hotmail.com>> wrote:
Hello everyone,

I wanna run the sha3 and sha2 on gem5. I need your help.

Best Regards

From: ABD ALRHMAN ABO ALKHEEL 
mailto:abdkeel...@hotmail.com>>
Sent: Thursday, October 17, 2019 3:00:35 AM
To: gem5 users mailing list mailto:gem5-users@gem5.org>>
Subject: [gem5]: SHA2 and SHA3 on gem5

Hello everyone,

I wanna run the sha3 and sha2 on gem5. I need your help.

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
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] Fw: [gem5]: SHA2 and SHA3 on gem5

2019-10-17 Thread ABD ALRHMAN ABO ALKHEEL
Hi, thanks for your email. It basically hash algorithm. Please have a look at 
this link https://github.com/brainhub/SHA3IUF . How I can run this algorithm on 
gem5?

From: gem5-users  on behalf of Abhishek Singh 

Sent: Thursday, October 17, 2019 8:43:23 PM
To: gem5 users mailing list 
Cc: gem5-users 
Subject: Re: [gem5-users] Fw: [gem5]: SHA2 and SHA3 on gem5


Hi,
Can you explain in detail what is SHA2 and SHA3, any links?

On Thu, Oct 17, 2019 at 3:09 PM ABD ALRHMAN ABO ALKHEEL 
mailto:abdkeel...@hotmail.com>> wrote:
Hello everyone,

I wanna run the sha3 and sha2 on gem5. I need your help.

Best Regards

From: ABD ALRHMAN ABO ALKHEEL 
mailto:abdkeel...@hotmail.com>>
Sent: Thursday, October 17, 2019 3:00:35 AM
To: gem5 users mailing list mailto:gem5-users@gem5.org>>
Subject: [gem5]: SHA2 and SHA3 on gem5

Hello everyone,

I wanna run the sha3 and sha2 on gem5. I need your help.

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
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

[gem5-users] Fw: [gem5]: SHA2 and SHA3 on gem5

2019-10-17 Thread ABD ALRHMAN ABO ALKHEEL
Hello everyone,

I wanna run the sha3 and sha2 on gem5. I need your help.

Best Regards

From: ABD ALRHMAN ABO ALKHEEL 
Sent: Thursday, October 17, 2019 3:00:35 AM
To: gem5 users mailing list 
Subject: [gem5]: SHA2 and SHA3 on gem5

Hello everyone,

I wanna run the sha3 and sha2 on gem5. I need your help.

Best Regards

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

[gem5-users] [gem5]: SHA2 and SHA3 on gem5

2019-10-16 Thread ABD ALRHMAN ABO ALKHEEL
Hello everyone,

I wanna run the sha3 and sha2 on gem5. I need your help.

Best Regards

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

[gem5-users] run c executable in gem5

2019-10-13 Thread ABD ALRHMAN ABO ALKHEEL
Hi,


How to compile and run a C executable in gem-5 that use a text file as input 
and output in gem5 SE mode with 
se.py?

Thank you,

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