[gem5-users] Re: Dumping stats into individual files

2021-03-01 Thread Muhammet Abdullah Soytürk via gem5-users
Hi,

I don't know whether gem5 has an option for that but you can use the
standard library's "rename" function each time you call m5_dump_stats as a
quick hack.

Best,
Muhammet

Subhankar Pal via gem5-users , 1 Mar 2021 Pzt, 05:59
tarihinde şunu yazdı:

> Hi,
>
> I am using gem5 se.py to run some simulations. Is there a simple way to
> dump the stats into different files each time I call m5_dump_stats(…)? I.e.
> I want the stats files to be organized as stats.1.txt, stats.2.txt, …
> instead of one monolithic stats.txt.
>
> Thanks!
>
> Subhankar Pal  |  PhD Candidate, CSE  |  University of Michigan
> ___
> 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: Out of Memory while running GPU Benchmark

2020-09-14 Thread Muhammet Abdullah Soytürk via gem5-users
Not sure actually. I ran into the same problem while trying a cpu benchmark
a while back. Maybe others can explain the reason.

Sampad Mohapatra , 14 Eyl 2020 Pzt, 22:50 tarihinde şunu
yazdı:

> Hi Muhammet,
>
> Yes, the gpu benchmark itself mallocs around 3GB.
> But then why does the memory usage show 30305260 KBytes ~ 29 GB ?
> What does this value indicate ?
>
> Thank you,
> Sampad
>
> On Mon, Sep 14, 2020 at 3:30 PM Muhammet Abdullah Soytürk <
> muhammetabdullahsoyt...@gmail.com> wrote:
>
>> Hi,
>>
>> Is there any chance that the input you provide is bigger than 2GB? If the
>> input size is bigger than the memory size, you cannot simulate it in SE
>> mode (since there is no paging support for SE mode). As you can understand
>> from the error message, you need to increase the size of the memory.
>>
>> Best,
>> Muhammet
>>
>> Sampad Mohapatra via gem5-users , 14 Eyl 2020 Pzt,
>> 21:49 tarihinde şunu yazdı:
>>
>>> Hi All,
>>>
>>> I am running 2DConvolution (polybench-gpu) and leela (SPEC 17) using the
>>> AMD GCN3 model on a research cluster with around 4 TB of memory. But the
>>> simulation ended with the following message:
>>>
>>> fatal: Out of memory, please increase size of physical memory.
>>> Memory Usage: 30305260 KBytes
>>>
>>> I had passed 2GB as mem-size. What could be the problem and how can I
>>> mitigate it?
>>>
>>> Thank you,
>>> Sampad Mohapatra
>>> ___
>>> 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: Out of Memory while running GPU Benchmark

2020-09-14 Thread Muhammet Abdullah Soytürk via gem5-users
Hi,

Is there any chance that the input you provide is bigger than 2GB? If the
input size is bigger than the memory size, you cannot simulate it in SE
mode (since there is no paging support for SE mode). As you can understand
from the error message, you need to increase the size of the memory.

Best,
Muhammet

Sampad Mohapatra via gem5-users , 14 Eyl 2020 Pzt,
21:49 tarihinde şunu yazdı:

> Hi All,
>
> I am running 2DConvolution (polybench-gpu) and leela (SPEC 17) using the
> AMD GCN3 model on a research cluster with around 4 TB of memory. But the
> simulation ended with the following message:
>
> fatal: Out of memory, please increase size of physical memory.
> Memory Usage: 30305260 KBytes
>
> I had passed 2GB as mem-size. What could be the problem and how can I
> mitigate it?
>
> Thank you,
> Sampad Mohapatra
> ___
> 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: Problem with gem5 memory latency

2020-06-17 Thread Muhammet Abdullah Soytürk via gem5-users
Hi Ahmed,

You could either follow Abhishek's advice and use default configuration
scripts (se.py or fs.py) or you can create your own script to manipulate
those options. Writing your own configuration script is recommended (You
can check this  book to learn how to do
that). You can change the latency of cache and memory by changing
src/mem/cache/Cache.py
 and
src/mem/DRAMCtrl.py

 respectively.

Best,
Muhammet

ahmed khalil via gem5-users , 17 Haz 2020 Çar, 23:01
tarihinde şunu yazdı:

> Hi, I am a beginner in gem5 ,I  want to change the memory and cache
> latency of the system simulated using gem5 , but iI didn't find a parameter
> in the options.py file to use .can you help me ?
>
> thanks
> Ahmed
> ___
> 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: Stat dump after each N instructions - CPU and/or AMD GPU

2020-05-26 Thread Muhammet Abdullah Soytürk via gem5-users
I don't know how legal is this and whether it has side effects but you
might try schedStatEvent
 to
schedule the dumps.

Muhammet

Matt Sinclair via gem5-users , 27 May 2020 Çar, 00:13
tarihinde şunu yazdı:

> I'm not sure if this is your ultimate problem, but if it only works on the
> CPU for the first N instructions, is N simply representing the point where
> you need a 64-bit counter instead of a 32-bit counter?
>
> Unfortunately I don't know the answer to your other questions, sorry.
> Perhaps you are thinking of the m5ops, which people often use for things
> like resetting stats:
> https://www.gem5.org/documentation/general_docs/m5ops/?
>
> Matt
>
> On Tue, May 26, 2020 at 2:12 PM Rajeev Pal via gem5-users <
> gem5-users@gem5.org> wrote:
>
>> Hi All,
>>
>> Is it possible to dump and reset statistics after each N instructions for
>> CPU and/or AMD GPU.
>> I see that there is a *max_insts_any_thread* var for cpus. I was able to
>> use it to stop simulation, dump and reset stats (from apu_se.py), but it
>> only works for the *first* N instructions.
>>
>> (1) Is there any existing mechanism which I can leverage ?
>>  There is a comInstEventQueue which I think is used to stop the
>> simulation after first N instructions. Can I somehow use this ?
>>
>> (2) If not, then where and what sort of modifications will I need ? I
>> need to do this for both CPU and AMD GPU.
>>
>> Thank you,
>> Rajeev Pal
>> ___
>> 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] Simulation OpenMP Applications with se.py

2020-03-24 Thread Muhammet Abdullah Soytürk
Hi all,

I am trying to simulate an openmp application with 4 cores in SE mode. It
seems to be working fine when I run it with this command:

build/RISCV/gem5.opt configs/example/se.py -c  --caches --l2cache
--cpu-type=DerivO3CPU -n 4


but while I was searching I have seen that there was something called
m5threads that was used to simulate a multithreaded program in SE mode or
is it still in use? I am a bit confused because I did not use m5threads.

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

[gem5-users] Correct Way to Fast-Forward

2020-03-24 Thread Muhammet Abdullah Soytürk
Hi all,

I want to fast forward my benchmark during its input graph initialization
phase and then switch to O3 cpu. I have a couple questions about that.

- My system is a multicore system (let's say 4 cores). Should I fast
forward with 4 atomic cpus and restore with 4 O3 cpus or one cpu for
fast-forwarding is enough?

- In my system each core has its own l1 cache and a unified l2cache. Should
I do the fast-forwarding part with the caches or not?

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

Re: [gem5-users] How to get the high-level architectural view of the system I am simulating?

2020-03-24 Thread Muhammet Abdullah Soytürk
Hi Rubel,

The command you execute does not simulate the system that you put in the
image. There is no l2 bus and l2 cache in the system that you simulate. If
you want to have l2 cache you need to add --l2cache as an argument to the
script.

In order to see what's on the system you execute, you should check m5out/
*config.ini* after you make the simulation.

To see all the options you have, you can run build/X86/gem5.opt
configs/example/se.py --help

Cheers,
Muhammet

--

Md Rubel Ahmed , 24 Mar 2020 Sal, 20:13
tarihinde şunu yazdı:

> Hi all,
> Lets say I am using the following command to simulate a system on gem5:
>
> build/X86/gem5.opt configs/example/se.py 
> --cmd=tests/test-progs/hello/bin/x86/linux/hello
> --cpu-type=TimingSimpleCPU --l1d_size=64kB --l1i_size=16kB --caches
>
> How can I get a high-level view/diagram of the system that is being
> simulated here? *I am interested in knowing the architecture of the
> system on which the binary is being executed as sys-calls.* For example,
> I assume this command runs the hello binary on a system that looks like the
> following:
>
>
> My assumption is L2 bus is implicit here, same as membus and mem_ctrl.
> Please advise me on how to interpret the command line *architecture
> arguments* to get the high-level view of the system, if possible with
> example.
>
> Thank you,
> *Rubel Ahmed*
> *USF-CSE*
> *Tampa, FL*
> ___
> 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] Problem passing a SimObject as Parameter

2020-03-23 Thread Muhammet Abdullah Soytürk
Hi Francisco,

Apparently gem5 cannot register your object to object list. With the
information you gave, I can only guess.

- Did you register your object in the SConscript file?
- Did you recompile gem5.opt after you created your SimObject? While you
compiling the gem5 binary with scons build/RISCV/gem5.opt, you should be
able to see your object's name in the list of compiled objects.

Best,
Muhammet

Francisco Carlos , 23 Mar 2020 Pzt, 23:47
tarihinde şunu yazdı:

> I am facing a problem in passing a simObject as Parameter to DerivO3Cpu
> simObject . I create a simObject named DtmObject and it appears when I run
> the command for listing the simObjects:
> ./build/RISCV/gem5.opt --list-sim-objects.
>
> However, when I try to import (from m5.objects.DtmObject import *) to use
> it as a parameter in other SimObject, in the O3CPU.py file to be more
> specific, I get the following error: ImportError: No module named DtmObject.
>
> Am I missing something? I followed the tutorial in the gem5 page (
> http://www.gem5.org/documentation/learning_gem5/part2/parameters/) and
> still, I can't figure out what is going on.
>
> 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] Page Table Fault When Accessing Virtual Address

2020-03-11 Thread Muhammet Abdullah Soytürk
Hi all,

I am trying to run a simulation with se.py. It works perfectly fine on my
machine but when I try to run it on a workstation I am getting this error:

panic: Page table fault when accessing virtual address 0x7f8ff900

I am using RISCV isa and the latest version of gem5.

This is the command that I use:

gem5/build/RISCV/gem5.opt  gem5/configs/example/se.py -c pr -o '-g 12'
--caches --l1d_size=2kB --l1i_size=2kB --cpu-type=DerivO3CPU -n 4
--mem-size=512MB --l2cache --l2_size=4kB

This is the gdb report:

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
command line: gem5/build/RISCV/gem5.debug --debug-break=2000
configs/example/se.py -c gem5/gapbs/pr -o '-g 16' --caches --l1d_size=2kB
--l1i_size=2kB --cpu-type=DerivO3CPU -n 4 --mem-size=512MB --l2cache
--l2_size=256kB

warn: need to stop all queues
Global frequency set at 1 ticks per second
warn: failed to generate dot output from m5out/config.dot
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 7001
0: system.remote_gdb: listening for remote gdb on port 7002
0: system.remote_gdb: listening for remote gdb on port 7003
0: system.remote_gdb: listening for remote gdb on port 7004
 REAL SIMULATION 
info: Entering event queue @ 0.  Starting simulation...

Program received signal SIGTRAP, Trace/breakpoint trap.
0x762f1187 in kill () at ../sysdeps/unix/syscall-template.S:78
78 ../sysdeps/unix/syscall-template.S: No such file or directory.
(gdb) c
Continuing.
panic: Page table fault when accessing virtual address 0x7f8ff900
Memory Usage: 705620 KBytes

Program received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) c
Continuing.
Program aborted at tick 183884000
--- BEGIN LIBC BACKTRACE ---
gem5/build/RISCV/gem5.debug(_Z15print_backtracev+0x2e)[0x564a203a]
gem5/build/RISCV/gem5.debug(_Z12abortHandleri+0x71)[0x564b3e98]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x12890)[0x7764b890]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7)[0x762f0e97]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x141)[0x762f2801]
gem5/build/RISCV/gem5.debug(_ZN5Stats10InfoAccessC1Ev+0x0)[0x560b9b22]
gem5/build/RISCV/gem5.debug(_ZN21GenericPageTableFault6invokeEP13ThreadContextRK14RefCountingPtrI10StaticInstE+0xc8)[0x564d8ee2]
gem5/build/RISCV/gem5.debug(_ZN9FullO3CPUI9O3CPUImplE4trapERKSt10shared_ptrI9FaultBaseEsRK14RefCountingPtrI10StaticInstE+0x61)[0x56626f0f]
gem5/build/RISCV/gem5.debug(_ZN13DefaultCommitI9O3CPUImplE10commitHeadERK14RefCountingPtrI13BaseO3DynInstIS0_EEj+0xa9a)[0x56615ea0]
gem5/build/RISCV/gem5.debug(_ZN13DefaultCommitI9O3CPUImplE11commitInstsEv+0x4cf)[0x56614769]
gem5/build/RISCV/gem5.debug(_ZN13DefaultCommitI9O3CPUImplE6commitEv+0xb9f)[0x5661240d]
gem5/build/RISCV/gem5.debug(_ZN13DefaultCommitI9O3CPUImplE4tickEv+0x295)[0x56611165]
gem5/build/RISCV/gem5.debug(_ZN9FullO3CPUI9O3CPUImplE4tickEv+0x1a7)[0x56623c57]
gem5/build/RISCV/gem5.debug(_ZZN9FullO3CPUI9O3CPUImplEC4EP16DerivO3CPUParamsENKUlvE_clEv+0x1b)[0x5662a4e9]
gem5/build/RISCV/gem5.debug(_ZNSt17_Function_handlerIFvvEZN9FullO3CPUI9O3CPUImplEC4EP16DerivO3CPUParamsEUlvE_E9_M_invokeERKSt9_Any_data+0x20)[0x5662f15a]
gem5/build/RISCV/gem5.debug(_ZNKSt8functionIFvvEEclEv+0x32)[0x561fb28a]
gem5/build/RISCV/gem5.debug(_ZN20EventFunctionWrapper7processEv+0x1c)[0x561fa9aa]
gem5/build/RISCV/gem5.debug(_ZN10EventQueue10serviceOneEv+0xe9)[0x564b0d77]
gem5/build/RISCV/gem5.debug(_Z9doSimLoopP10EventQueue+0x20e)[0x564bbaf2]
gem5/build/RISCV/gem5.debug(_Z8simulatem+0x339)[0x564bb71d]
gem5/build/RISCV/gem5.debug(+0xf13828)[0x56467828]
gem5/build/RISCV/gem5.debug(+0xf11834)[0x56465834]
gem5/build/RISCV/gem5.debug(+0xf0e0eb)[0x564620eb]
gem5/build/RISCV/gem5.debug(+0xf0e152)[0x56462152]
gem5/build/RISCV/gem5.debug(+0xd2a7de)[0x5627e7de]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5f82)[0x77905522]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7d8)[0x77a37bf8]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6364)[0x77905904]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7d8)[0x77a37bf8]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6364)[0x77905904]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7d8)[0x77a37bf8]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6364)[0x77905904]
--- END LIBC BACKTRACE ---

Program received signal SIGABRT, Aborted.
__pthread_kill (threadid=, signo=6) at
../sysdeps/unix/sysv/linux/pthread_kill.c:57
57 ../sysdeps/unix/sysv/linux/pthread_kill.c: No such file or directory.

I don't really understand why it works on my 

[gem5-users] Sysmalloc assertion

2020-03-09 Thread Muhammet Abdullah Soytürk
Hi all,

I wrote a script that executes several gem5 simulations. It works perfectly
on my laptop but when I clone it to the workstation I am getting this
error:

pr(This is the applications name): malloc.c:2389: sysmalloc: Assertion
`(old_top == initial_top (av) && old_size == 0) || ((unsigned long)
(old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end &
(pagesize - 1)) == 0)' failed.
warn: need to stop all queues
Trace/breakpoint trap (core dumped)

Compiler versions etc are the same with my laptop. Does anyone have an idea
about this?

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

Re: [gem5-users] 回复: Installing Shared Libraries to Image in Full Simulation

2020-03-04 Thread Muhammet Abdullah Soytürk
;>>>>>>>
>>>>>>>>>>>>>> In order to run SPEC2k17 benchmarks, should we follow the
>>>>>>>>>>>>>> same tutorial "
>>>>>>>>>>>>>> https://gem5art.readthedocs.io/en/latest/tutorials/spec2017-tutorial.html
>>>>>>>>>>>>>> "?
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Best regards,
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Abhishek
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Tue, Mar 3, 2020 at 6:45 PM Hoa Nguyen <
>>>>>>>>>>>>>> hoangu...@ucdavis.edu> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Hi Abhishek,
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> We ran a few spec2017 workloads on O3CPU, and they ran
>>>>>>>>>>>>>>> successfully.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> We used gem5 19.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Regards,
>>>>>>>>>>>>>>> Hoa Nguyen
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On 3/3/20, Abhishek Singh 
>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>> > Hi Hoa,
>>>>>>>>>>>>>>> > Are you able to run on o3 cpu.
>>>>>>>>>>>>>>> > Also, is it same gem5 commit as mentioned on the website?
>>>>>>>>>>>>>>> >
>>>>>>>>>>>>>>> > On Tue, Mar 3, 2020 at 4:35 AM Hoa Nguyen <
>>>>>>>>>>>>>>> hoangu...@ucdavis.edu> wrote:
>>>>>>>>>>>>>>> >
>>>>>>>>>>>>>>> >> Hi there,
>>>>>>>>>>>>>>> >>
>>>>>>>>>>>>>>> >> We're actually able to run SPEC 2017 workloads in FS mode
>>>>>>>>>>>>>>> using the
>>>>>>>>>>>>>>> >> gem5art's tutorial.
>>>>>>>>>>>>>>> >>
>>>>>>>>>>>>>>> >> The table should have been updated.
>>>>>>>>>>>>>>> >>
>>>>>>>>>>>>>>> >> Sorry about the confusion!
>>>>>>>>>>>>>>> >>
>>>>>>>>>>>>>>> >> Regards,
>>>>>>>>>>>>>>> >> Hoa Nguyen
>>>>>>>>>>>>>>> >>
>>>>>>>>>>>>>>> >>
>>>>>>>>>>>>>>> >> On Mon, Mar 2, 2020, 7:55 PM Abhishek Singh <
>>>>>>>>>>>>>>> >> abhishek.singh199...@gmail.com> wrote:
>>>>>>>>>>>>>>> >>
>>>>>>>>>>>>>>> >>> Hi,
>>>>>>>>>>>>>>> >>>
>>>>>>>>>>>>>>> >>> This is the i got in past when I was trying to run SPEC
>>>>>>>>>>>>>>> in SE mode
>>>>>>>>>>>>>>> >>>
>>>>>>>>>>>>>>> >>> If you check mailing list there are suggestions about it
>>>>>>>>>>>>>>> >>>
>>>>>>>>>>>>>>> >>> I have not yet ported the spec 2017 to gem5, I was
>>>>>>>>>>>>>>> trying to use FS but
>>>>>>>>>>>>>>> >>> then I 

Re: [gem5-users] Installing Shared Libraries to Image in Full Simulation

2020-03-02 Thread Muhammet Abdullah Soytürk
Hi Abhishek ,

Can you run it with PACKER_LOG=1 as suggested? The output may help to solve
the problem. I remember that I was also having a similar problem. I found
the solution by adding my user to the kvm group or running with sudo. That
might also be the case for you.

Best,
Muhammet

Abhishek Singh , 3 Mar 2020 Sal, 00:09
tarihinde şunu yazdı:

> Hi Ayaz,
>
> I am using gem5art to get spec 2017 installed in the image.
> I am at this "Building the Disk Image" step
> When I use this command "./packer build spec2017/spec2017.json"
> I get the following error:
>
> qemu output will be in this color.
>
> ==> qemu: Retrieving ISO
> ==> qemu: Trying
> http://old-releases.ubuntu.com/releases/18.04.2/ubuntu-18.04.2-server-amd64.iso
> ==> qemu: Trying
> http://old-releases.ubuntu.com/releases/18.04.2/ubuntu-18.04.2-server-amd64.iso?checksum=md5%3A34416ff83179728d54583bf3f18d42d2
> ==> qemu:
> http://old-releases.ubuntu.com/releases/18.04.2/ubuntu-18.04.2-server-amd64.iso?checksum=md5%3A34416ff83179728d54583bf3f18d42d2
> =>
> /home/abs218/spec2017-experiments/disk-image/packer_cache/8ecbb06d2a38105b7d1cb3316cf5b970ee389dad.iso
> ==> qemu: Creating floppy disk...
> qemu: Copying files flatly from floppy_files
> qemu: Copying file: shared/preseed.cfg
> qemu: Done copying files from floppy_files
> qemu: Collecting paths from floppy_dirs
> qemu: Resulting paths from floppy_dirs : []
> qemu: Done copying paths from floppy_dirs
> ==> qemu: Creating required virtual machine disks
> ==> qemu: Starting HTTP server on port 8208
> ==> qemu: Found port for communicator (SSH, WinRM, etc): 4049.
> ==> qemu: Looking for available port between 5900 and 6000 on 127.0.0.1
> ==> qemu: Starting VM, booting from CD-ROM
> qemu: The VM will be run headless, without a GUI. If you want to
> qemu: view the screen of the VM, connect via VNC without a password to
> qemu: vnc://127.0.0.1:5993
> ==> qemu: Overriding defaults Qemu arguments with QemuArgs...
> ==> qemu: Error launching VM: Qemu failed to start. Please run with
> PACKER_LOG=1 to get more info.
> ==> qemu: Deleting output directory...
>
>
>
> *Build 'qemu' errored: Build was halted.==> Some builds didn't complete
> successfully and had errors:--> qemu: Build was halted.*
>
> Please note I am doing ssh into the machine and I ssh using "ssh -Y" for
> getting x11 display.
>
> I am not able to bypass this error, do you have any tips how to overcome
> this error?
>
>
>
> Best regards,
>
> Abhishek
>
>
> On Sat, Feb 8, 2020 at 5:42 PM Ayaz Akram  wrote:
>
>> Hi  Abhishek,
>>
>> That was at least the case with the gem5 version we tested (commit:
>> d40f0bc579fb8b10da7181). Please, note that this is the status of linux
>> boot. I am not sure if this status will change with the latest gem5 source.
>> One thing that might work for you is to boot linux kernel with KVM cpu and
>> then switch to O3 to run your applications (which may or may not work).
>> However, I am not sure that how much can you rely on those results as
>> inability to boot linux kernel with O3 clearly shows there exist some bugs
>> in gem5. We need to figure out those issues and fix them.
>>
>> Regards,
>> Ayaz
>>
>> On Sat, Feb 8, 2020 at 9:30 AM Abhishek Singh <
>> abhishek.singh199...@gmail.com> wrote:
>>
>>> Hi Ayaz,
>>>
>>> Thanks for providing the image and kernel, I see on gem5art test results
>>> that the image can support at the most only one cpu for O3CPU model.
>>> Is that still the case ?
>>> I wanted to use this image for running multithreaded applications on x86
>>> O3CPU FS mode.
>>>
>>>
>>> On Tue, Feb 4, 2020 at 4:12 PM Ayaz Akram  wrote:
>>>
>>>> Hi Muhammet,
>>>>
>>>> This is the expected behavior. Basically, this disk image correspond to
>>>> this tutorial:
>>>>
>>>> https://gem5art.readthedocs.io/en/latest/tutorials/boot-tutorial.html
>>>>
>>>> and if you go through the disk creation process in that tutorial, you
>>>> will realize that there is a post installation script that runs on the disk
>>>> image after its creation (
>>>> https://github.com/darchr/gem5art/blob/master/docs/disks/boot-exit/post-installation.sh).
>>>> In that script, the contents of exit.sh (
>>>> https://github.com/darchr/gem5art/blob/master/docs/disks/boot-exit/exit.sh)
>>>> which are written to /root/.bashrc are responsible for exiting the
>>>> simulation as soon

Re: [gem5-users] Kernel for x64

2020-02-25 Thread Muhammet Abdullah Soytürk
Hi Niranjan,

You can check this

tutorial to see which kernels are booting successfully.

Best,
Muhammet

niranjan soundararajan , 26 Şub 2020 Çar, 09:31
tarihinde şunu yazdı:

> Hello
>
> Has anyone got a recent Linux kernel (Ubuntu 18.0.4) for GEM5 working for
> x64 (x86 64 bit)? We are running into the following issues (when trying
> different kernel versions)
>
> 1. panic condition !pci_dev occurred: 00:01.4: Write to config space on
> non-existent PCI device
>
> 2. VFS: Cannot open root device "hda1" or unknown-block(0,0)
>
>
> Thanks
> Niranjan
>
> ___
> 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] Paging in System Emulation Mode

2020-02-25 Thread Muhammet Abdullah Soytürk
I want to explore the inputs that does not fit into the RAM. That’s why I
need paging. Since I cannot run a multi core system with RISCV isa, I guess
I have no way to do what I want to do. Do you have any suggestions?

Best,
Muhammet

On 25 Feb 2020 Tue at 7:13 PM Jason Lowe-Power  wrote:

> Hi Muhammet,
>
> As far as I know, this isn't possible. However, you can configure your
> memory size to be as large as you need.
>
> Cheers,
> Jason
>
> On Mon, Feb 24, 2020 at 11:51 PM Muhammet Abdullah Soytürk <
> muhammetabdullahsoyt...@gmail.com> wrote:
>
>> Hi all,
>>
>> Is paging possible in system emulation mode? I want to simulate a system
>> with RISCV isa and provide an input bigger than RAM size.
>>
>> Best,
>> Muhammet
>>
> ___
>> 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] Paging in System Emulation Mode

2020-02-24 Thread Muhammet Abdullah Soytürk
Hi all,

Is paging possible in system emulation mode? I want to simulate a system
with RISCV isa and provide an input bigger than RAM size.

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

[gem5-users] Read/Write to Misc Registers

2020-02-24 Thread Muhammet Abdullah Soytürk
Hi all,

Since m5ops are not available for RISCV, I am trying to define a region of
interest by using misc registers. I added a custom register to
https://github.com/gem5/gem5/blob/master/src/arch/riscv/registers.hh

How can I read the register that I added or write to it so that I can start
collecting stats when that register is on (1) and stop collecting stats
when that register is off (0)?

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

[gem5-users] RISC-V Region of Interest

2020-02-23 Thread Muhammet Abdullah Soytürk
Hi all,

Is there any way to define region of interest in an application compiled
for RISC-V isa?

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

[gem5-users] Annotating Region of Interest for RISCV ISA

2020-02-21 Thread Muhammet Abdullah Soytürk
Hi all,

As far as I see there is no m5op_riscv.S file in util/m5 which is needed to
annotate the region of interest. Is there any other way that I can annotate
an application for riscv isa?

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

[gem5-users] RISC-V Multicore Support

2020-02-20 Thread Muhammet Abdullah Soytürk
Hi all,

I have seen that multicore support for RISC-V ISA was implemented by some
researchers from Cornell University. I ran into these

slides. In one of the slides, they try to pull some changes (
https://gem5.googlesource.com/public/gem5 refs/changes/26/9626/4 and
https://gem5.googlesource.com/public/gem5 refs/changes/44/9644/3) from the
repository which are not available anymore. Are these changes merged in
upstream gem5?

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

Re: [gem5-users] Incorrect Result When Switching to Detailed CPU

2020-02-19 Thread Muhammet Abdullah Soytürk
I checked out to  d40f0bc579fb8b10da7181
Fetch from https://github.com/darchr/gem5
and cherry picked 6450aaa7ca9e3040fb9eecf69c51a01884ac370c and
3403665994b55f664f4edfc9074650aaa7ddcd2c

ISA is x86.

Config files are almost the same with
https://gem5art.readthedocs.io/en/latest/tutorials/npb-tutorial.html

Abhishek Singh , 19 Şub 2020 Çar, 20:51
tarihinde şunu yazdı:

> Hey,
> Can you post details on commit number and ISA, so that we can reproduce
> the output and see
>
> On Wed, Feb 19, 2020 at 12:35 PM Muhammet Abdullah Soytürk <
> muhammetabdullahsoyt...@gmail.com> wrote:
>
>> Hi all,
>>
>> I am trying to simulate PageRank in full system simulation. The
>> application generates a kronecker graph at the beginning (e.g. ./pr -g 10
>> generates a kronecker graph witih 1024 nodes). The problem is that when I
>> try to simulate the whole application with KVM, I get the correct result
>> but when I switch to a detailed cpu (atomic, o3 or timing) just before the
>> application starts, it cannot generate the graph properly.
>>
>> def writeBenchScript():
>> file_name = '/home/muhammet/Desktop/run_pr'
>> with open(file_name,"w") as bench_file:
>> bench_file.write('m5 exit\n')
>> bench_file.write('/home/gem5/gapbs/pr -g 4 \n')
>> bench_file.write('sleep 30 \n') # to print to console.
>>
>> return file_name
>>
>> The code above creates the script.I am using this
>> <https://github.com/darchr/gem5art/blob/master/docs/disks/npb/runscript.sh>
>> runscript to send the file create above to the guest and my run config file
>> is like this:
>>
>> boot_linux()
>> m5.stats.reset()
>>
>> if not cpu_name == "kvm":
>> system.switchCpus(system.cpu, system.detailed_cpu)
>>
>> run_gap_benchmark()
>> m5.stats.dump()
>>
>> finish_the_rest
>>
>> What I normally should get is something like this:
>>
>> Generate Time:   0.00023
>> Build Time:  0.00016
>> Graph has 16 nodes and 67 undirected edges for degree: 4
>>
>> But I am getting:
>>
>> Generate Time:   0.0
>> Build Time:  0.0
>> Graph has 14 nodes and 0 undirected edges for degree: 0
>>
>> What is the problem that I am missing?
>>
>> Best,
>> Muhammet
>>
>> ___
>> 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] Incorrect Result When Switching to Detailed CPU

2020-02-19 Thread Muhammet Abdullah Soytürk
Hi all,

I am trying to simulate PageRank in full system simulation. The application
generates a kronecker graph at the beginning (e.g. ./pr -g 10 generates a
kronecker graph witih 1024 nodes). The problem is that when I try to
simulate the whole application with KVM, I get the correct result but when
I switch to a detailed cpu (atomic, o3 or timing) just before the
application starts, it cannot generate the graph properly.

def writeBenchScript():
file_name = '/home/muhammet/Desktop/run_pr'
with open(file_name,"w") as bench_file:
bench_file.write('m5 exit\n')
bench_file.write('/home/gem5/gapbs/pr -g 4 \n')
bench_file.write('sleep 30 \n') # to print to console.

return file_name

The code above creates the script.I am using this

runscript to send the file create above to the guest and my run config file
is like this:

boot_linux()
m5.stats.reset()

if not cpu_name == "kvm":
system.switchCpus(system.cpu, system.detailed_cpu)

run_gap_benchmark()
m5.stats.dump()

finish_the_rest

What I normally should get is something like this:

Generate Time:   0.00023
Build Time:  0.00016
Graph has 16 nodes and 67 undirected edges for degree: 4

But I am getting:

Generate Time:   0.0
Build Time:  0.0
Graph has 14 nodes and 0 undirected edges for degree: 0

What is the problem that I am missing?

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

[gem5-users] About kvm-x86

2020-02-17 Thread Muhammet Abdullah Soytürk
Hi all,

I am using kvm to boot linux and switch to o3 cpu in full system simulation
and it seems to be working but I am getting a bunch of warnings which I am
not sure they can be ignored.

Here are the warnings that I am getting:

warn: ldt: Illegal segment type (0)
warn: ldt: P flag not set
warn: kvm-x86: MSR (0x3a) unsupported by gem5. Skipping.
warn: kvm-x86: MSR (0x48) unsupported by gem5. Skipping.
warn: kvm-x86: MSR (0x12) unsupported by gem5. Skipping.
warn: kvm-x86: MSR (0x11) unsupported by gem5. Skipping.
.
.
.
.
warn: kvm-x86: MSR (0xc0010015) unsupported by gem5. Skipping.
warn: kvm-x86: MSR (0x4b564d05) unsupported by gem5. Skipping.

I cloned the latest version of gem5 and cherry picked commits 6450aaa and
3403665 from https://github.com/darchr/gem5 as instructed in this tutorial:
https://gem5art.readthedocs.io/en/latest/tutorials/spec2006-tutorial.html

Are these warnings expected or is there any problem with my simulation
settings?

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

[gem5-users] Marking Region of Interest

2020-02-13 Thread Muhammet Abdullah Soytürk
Hi all,

I want to simulate an application in full system simulation with region of
interest. I want to mark the region of interest (ROI) in the application,
simulate the system with kvm until the beginning of ROI, switch to detailed
cpu for ROI, and switch back to kvm for the rest of the simulation just
like in the NAS Parallel Benchmarks tutorial:
https://gem5art.readthedocs.io/en/latest/tutorials/npb-tutorial.html. But
the problem is that I don't really know how to mark the region of interest
and I could not find any documentation about it. Can someone explain how to
do it step by step?

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

Re: [gem5-users] PerfKvmCounter Error

2020-02-10 Thread Muhammet Abdullah Soytürk
By the way I am using vmlinux-4.19.83.

Muhammet Abdullah Soytürk , 10 Şub 2020
Pzt, 19:45 tarihinde şunu yazdı:

> Yes I did but still I am getting the same error message. I have tried
>
> echo "12345" |  echo -1 > /proc/sys/kernel/perf_event_paranoid
>
> and
>
> echo "12345" | sudo sysctl -w kernel.perf_event_paranoid=1
>
> in the equivalent file to npb-install.sh. It does not change anything.
>
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] PerfKvmCounter Error

2020-02-10 Thread Muhammet Abdullah Soytürk
Yes I did but still I am getting the same error message. I have tried

echo "12345" |  echo -1 > /proc/sys/kernel/perf_event_paranoid

and

echo "12345" | sudo sysctl -w kernel.perf_event_paranoid=1

in the equivalent file to npb-install.sh. It does not change anything.
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

[gem5-users] PerfKvmCounter Error

2020-02-10 Thread Muhammet Abdullah Soytürk
Hi all,

I am trying to run PageRank application in GAP Benchmark with full system
simulation. I followed the following npb tutorial:
https://gem5art.readthedocs.io/en/latest/tutorials/npb-tutorial.html. and
changed the necessary files to make my application work but I am getting a
KVM error that I have not seen before. Does anyone have any idea about
solving it? I could not find anything online.

Here is the simerr file content:

warn: DRAM device capacity (32768 Mbytes) does not match the address range
assigned (128 Mbytes)
info: kernel located at: linux-stable/vmlinux-4.19.83
warn: Sockets disabled, not accepting terminal connections
warn: Sockets disabled, not accepting gdb connections
warn: CoherentXBar system.cpu.mmucache.mmubus has no snooping ports
attached!
warn: Reading current count from inactive timer.
info: KVM: Coalesced MMIO disabled by config.
warn: x86 cpuid family 0x: unimplemented function 2
warn: x86 cpuid family 0x: unimplemented function 3
warn: x86 cpuid family 0x: unimplemented function 4
warn: x86 cpuid family 0x: unimplemented function 5
warn: x86 cpuid family 0x: unimplemented function 6
info: Entering event queue @ 0.  Starting simulation...





*panic: PerfKvmCounter::attach recieved error EACCESS  This error may be
caused by a too restrictive setting  in the file
'/proc/sys/kernel/perf_event_paranoid'  The default value was changed to 2
in kernel 4.6  A value greater than 1 prevents gem5 from making  the
syscall to perf_event_open*
Memory Usage: 4532020 KBytes
Program aborted at tick 0
--- BEGIN LIBC BACKTRACE ---
gem5/build/X86/gem5.opt(_Z15print_backtracev+0x2c)[0x559fcda3ae0c]
gem5/build/X86/gem5.opt(_Z12abortHandleri+0x4a)[0x559fcda4d07a]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x12890)[0x7fa31b84b890]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7)[0x7fa31a059e97]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x141)[0x7fa31a05b801]
gem5/build/X86/gem5.opt(+0x51e42f)[0x559fcca7f42f]
gem5/build/X86/gem5.opt(_ZN14PerfKvmCounter6attachER20PerfKvmCounterConfigii+0x127)[0x559fcd981a47]
gem5/build/X86/gem5.opt(_ZN10BaseKvmCPU13setupCountersEv+0xcc)[0x559fcd9753ac]
gem5/build/X86/gem5.opt(_ZN10BaseKvmCPU13startupThreadEv+0x57)[0x559fcd9767c7]
gem5/build/X86/gem5.opt(_ZN10EventQueue10serviceOneEv+0xd9)[0x559fcda43019]
gem5/build/X86/gem5.opt(_Z9doSimLoopP10EventQueue+0x87)[0x559fcda63917]
gem5/build/X86/gem5.opt(+0x1502c4f)[0x559fcda63c4f]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0xbd66f)[0x7fa31aa7f66f]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76db)[0x7fa31b8406db]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x3f)[0x7fa31a13c88f]
--- END LIBC BACKTRACE ---
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

[gem5-users] Packer Template

2020-02-04 Thread Muhammet Abdullah Soytürk
Hi all,

Fourth method In creating disk images documentation (
http://www.gem5.org/documentation/general_docs/fullsystem/disks) is "Using
Packer to create a disk image" and the documentation is mentioning about a
default packer script called "template.json". I could not find that default
script anywhere. Can you show me where to find it?

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

Re: [gem5-users] Installing Shared Libraries to Image in Full Simulation

2020-02-04 Thread Muhammet Abdullah Soytürk
et Sockets.
[  OK  ] Reached target Basic System.
 Starting OpenBSD Secure Shell server...
[  OK  ] Started Set the CPU Frequency Scaling governor.
 Starting System Logging Service...
 Starting Permit User Sessions...
[  OK  ] Started D-Bus System Message Bus.
 Starting Login Service...
[  OK  ] Started irqbalance daemon.
 Starting Dispatcher daemon for systemd-networkd...
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Started Regular background program processing daemon.
 Starting Accounts Service...
 Starting LSB: Record successful boot for GRUB...
[  OK  ] Reached target System Time Synchronized.
[  OK  ] Started Daily apt download activities.
[  OK  ] Started Daily apt upgrade and clean activities.
[  OK  ] Started Discard unused blocks once a week.
[  OK  ] Reached target Timers.
[  OK  ] Started System Logging Service.
[  OK  ] Started Permit User Sessions.
 Starting Terminate Plymouth Boot Screen...
 Starting Hold until boot process finishes up...
[  OK  ] Started Hold until boot process finishes up.
 Starting Set console scheme...
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Started Terminate Plymouth Boot Screen.
[  OK  ] Started Login Service.
[  OK  ] Started Set console scheme.
[  OK  ] Created slice system-getty.slice.
[  OK  ] Started Getty on tty1.
[  OK  ] Reached target Login Prompts.
[FAILED] Failed to start Accounts Service.
See 'systemctl status accounts-daemon.service' for details.
[  OK  ] Started LSB: Record successful boot for GRUB.
[  OK  ] Started OpenBSD Secure Shell server.
[FAILED] Failed to start Dispatcher daemon for systemd-networkd.
See 'systemctl status networkd-dispatcher.service' for details.
[  OK  ] Reached target Multi-User System.
[  OK  ] Reached target Graphical Interface.
[  OK  ] Started Stop ureadahead data collection 45s after completed
startup.
 Starting Update UTMP about System Runlevel Changes...
[  OK  ] Started Update UTMP about System Runlevel Changes.

Ubuntu 18.04.2 LTS gem5-host ttyS0

gem5-host login: root (automatic login)


Welcome to Ubuntu 18.04.2 LTS (GNU/Linux 4.14.134 x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management: https://landscape.canonical.com
 * Support:https://ubuntu.com/advantage


The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

Ayaz Akram , 3 Şub 2020 Pzt, 21:20 tarihinde şunu
yazdı:

> We have recently uploaded a disk image with ubuntu 18.04 installed which
> should have basic packages/libraries available. See the following post on
> the mailing list:
>
> https://www.mail-archive.com/gem5-users@gem5.org/msg17274.html
>
> You can also refer to gem5art's documentation on building your own disk
> images:
>
> https://gem5art.readthedocs.io/en/latest/main-doc/disks.html
>
> -Ayaz
>
>
>
> On Mon, Feb 3, 2020 at 4:04 AM Muhammet Abdullah Soytürk <
> muhammetabdullahsoyt...@gmail.com> wrote:
>
>> Hi all,
>>
>> What is the best way to install shared libraries to linux-x86.img? Since
>> apt or dpkg is not installed, I don't know how to add the shared libraries
>> to the images that I need to execute PageRank in GAP benchmark suite.
>>
>> Best,
>> Muhammet
>> ___
>> 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] Installing Shared Libraries to Image in Full Simulation

2020-02-03 Thread Muhammet Abdullah Soytürk
Hi all,

What is the best way to install shared libraries to linux-x86.img? Since
apt or dpkg is not installed, I don't know how to add the shared libraries
to the images that I need to execute PageRank in GAP benchmark suite.

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

[gem5-users] Thread Creation Failed Error

2020-02-03 Thread Muhammet Abdullah Soytürk
Hi all,

I am trying to simulate the PageRank application available in GAP Benchmark
Suite. I get the following error when I try to run it with a simple
configuration.

Command: build/X86/gem5.opt configs/learning_gem5/part1/simple.py. (I have
modified simple.py to run PageRank.)

"Thread creation failed: Resource temporarily unavailable".

Is anyone have an idea why this happens?

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

[gem5-users] About gem5art

2020-01-24 Thread Muhammet Abdullah Soytürk
Hi all,

I just checked gem5art. It seems like a convenient tool to me but I am not
sure if it is.mature enough to use without much headache since I saw that
it's a relatively new project. Should I start to use it or should I wait a
bit longer until they publish a more stable version?

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

Re: [gem5-users] gem5 stable release proposal [PLEASE VOTE!]

2019-12-17 Thread Muhammet Abdullah Soytürk
Hi Jason,

For the first one, I think master should be stable.

For the second one, I think gem5 should be released three times per year.

Cheers,
Muhammet

Jason Lowe-Power , 16 Ara 2019 Pzt, 22:50 tarihinde
şunu yazdı:

> Hi all,
>
> As many of you have seen on gem5-dev, we are going to be adding a
> "stable" version of gem5. Below is the current proposal. There are a
> couple of points below where there has not been general consensus
> reached. We would appreciate feedback *from everyone in the community*
> on the points where a decision hasn't been made below. gem5 is a
> community-driven project, and we need feedback to make sure we're
> making community-focused decisions.
>
> We will be introducing a new "stable" branch type to gem5. We are
> doing this for the following reasons:
> - Provide a way for developers to communicate major changes to the
> code. We will be providing detailed release notes for each stable
> release.
> - Increase our test coverage. At each stable release, we will test a
> large number of "common" benchmarks and configurations and publicize
> the current state of gem5.
> - Provide a way for researchers to communicate to the rest of the
> community information about their simulation infrastructure (e.g., in
> a paper you can say which version of gem5 you used).
>
> On the stable version of gem5, we will provide bugfixes  until the
> next release, but we will not make any API changes or add new
> features.
>
> We would like your feedback on the following two questions:
>
> **Which branch should be default?**
>
> We can either have the master branch in git be the "stable" or the
> "development" branch. If master is the stable branch, then it's easier
> for users to get the most recent stable branch. If master is the
> development branch, it's more familiar and easier for most developers.
> Either way, we will be updating all of the documentation to make it
> clear.
>
> Please let us know which you prefer by replying "I think master should
> be stable" or "I think master should be development".
>
> **How often should we create a new gem5 release?**
>
> We can have a gem5 release once per year (likely in April) or three
> times per year (April, August, and December). Once per year means that
> if you use the stable branch you will get updates less frequently.
> Three times per year will mean there are more releases to choose from
> (but a newer release should always be better). On the development
> side, I don't think one will be more work than the other. Once per
> year means more backporting, and three times per year means more
> testing and time spent on releases.
>
> Please let us know which you prefer by replying "I think gem5 should
> be released once per year" or "I think gem5 should be released three
> times per year."
>
>
>
>
> A couple of notes to everyone who's been following the discussion on
> the gem5-dev mailing list:
> - We have dropped the proposal for major vs minor releases. Note that
> there was some pushback on having only major releases when this was
> proposed on the gem5 roadmap, but it sounded like the consensus was to
> drop minor releases for now.
> - We will still allow feature branches *in rare circumstances*. This
> will be by request only (send mail to gem5-dev if you would like to
> discuss adding a new branch), and the goal will be integration within
> a few months. All code review will still happen in the open on gerrit.
> The benefits will be
> 1) rebases won't be required as you can just make changes to the head
> of the branch
> 2) many features take more than a few months to implement, so if it's
> not ready by a release it can be pushed to the next
> 3) large changes won't be hidden in AMD or Arm-specific repositories
> and *anyone* will be able to request a branch.
>
> Thanks everyone for the discussions so far! It would be most useful to
> hear back by the end of the week. However, I don't expect any concrete
> actions will be taken until after the holidays.
>
> Cheers,
> Jason
> ___
> 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] Understanding the CacheRepl debug flag output

2019-11-19 Thread Muhammet Abdullah Soytürk
Hi Charitha,

Tag of invalid blocks is always 0x which is MaxAddr.

You can check allocateBlock function of base.cc under cache to get a better
understanding. If you also want to know how it invalidates a block, you can
check invalidate function of cache_blk.hh

Best,
Muhammet

Charitha Saumya , 19 Kas 2019 Sal, 00:15
tarihinde şunu yazdı:

> Hi,
>
> I am a newbie to gem5 and I have been testing a simple array traversal
> using gem5 x86 build. The system I am testing has L1 icache, dcache and a
> share L2 cache.
>
> I used this command for running gem5,
> /build/X86/gem5.opt --debug-flags=CacheRepl configs/tutorial/two_level.py
> --l2_size='1MB' --l1d_size='256kB'
> --benchmark=tests/test-progs/simple/simple32
>
> In the debug messages I get I see a lot of tag: 0xfff. Can
> someone explain why the cache tag is fixed but only the set is changing? In
> my array traversal program the array is large (2048000 elements of uint32_t)
> and I write to every element.
> 58158000: system.cpu.dcache: Replacement victim: state: 0 (I) valid: 0
> writable: 0 readable: 0 dirty: 0 | tag: 0x set: 0x668 way: 0
> 58308000: system.l2cache: Replacement victim: state: 0 (I) valid: 0
> writable: 0 readable: 0 dirty: 0 | tag: 0x set: 0x33f way: 0
> 58329000: system.cpu.dcache: Replacement victim: state: 0 (I) valid: 0
> writable: 0 readable: 0 dirty: 0 | tag: 0x set: 0x33f way: 0
> 58657000: system.l2cache: Replacement victim: state: 0 (I) valid: 0
> writable: 0 readable: 0 dirty: 0 | tag: 0x set: 0x664 way: 0
> 58678000: system.cpu.dcache: Replacement victim: state: 0 (I) valid: 0
> writable: 0 readable: 0 dirty: 0 | tag: 0x set: 0x664 way: 0
> 58828000: system.l2cache: Replacement victim: state: 0 (I) valid: 0
> writable: 0 readable: 0 dirty: 0 | tag: 0x set: 0x335 way: 0
> 58849000: system.cpu.dcache: Replacement victim: state: 0 (I) valid: 0
> writable: 0 readable: 0 dirty: 0 | tag: 0x set: 0x335 way: 0
>
> Thanks,
> Charitha
>
> ___
> 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] Where is the "actual data" that is referenced by the block?

2019-08-19 Thread Muhammet Abdullah Soytürk
Hi all,

In cache_blk.hh, there is a field "uint8_t* data" and in the comment it
states that this field contains a copy of the data in this block for easy
access and it should be kept consistant with the "actual data" referenced
by this block. Where is this "actual data" referenced by this block?

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

[gem5-users] Lowest and Highest Block Address in A Cache

2019-08-07 Thread Muhammet Abdullah Soytürk
Hi all,

I am trying to find the lowest and highest possible block address so that I
can generate a random block address. How can I find those addresses? I can
only reach to the block addresses that were targeted by the application
that is simulated when I use Cache debug flag.

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

[gem5-users] Unmapped address after fault injection

2019-08-01 Thread Muhammet Abdullah Soytürk
Hi all,

I have been trying to inject some permanent faults into the dcache and when
I inject faults to data of some block addresses there is no problem but for
other addresses I get "Tried to read unmapped address x" error. x
part changes from address to address. It is sometimes 0
sometimes 0x100 or some other value and I have no idea why
this is happening. I only change one bit of the data before the packet
writes to the block (with writeDataToBlock function). I was thinking that I
was modifying the data on dcache which as far as I know only contains data
and no address but apparently the data in the dcache also contains
addresses or I get it all wrong. Can anyone explain why this happens?

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