[gem5-users] Re: increasing disk image size for full system simulation

2020-04-22 Thread Serhat Gesoglu via gem5-users
Hi, I am copying the instructions from my answer to another gem5 question to increase your disk image size: https://www.mail-archive.com/gem5-users@gem5.org/msg16495.html fsck and its variations can be used on a partition, not on an entire image file/disk. Since you are using an image file, you

Re: [gem5-users] dump stats for every N misses

2020-03-17 Thread Serhat Gesoglu
Hi, I am sure there are much better ways to do this but so far there are not any other suggestions. One solution could be creating an event and scheduling it to monitor the number of misses. When the number reaches N, exitSimLoop exits the simulation with a cause, such as "Encountered N

Re: [gem5-users] how to interpret Commonitor output?

2020-03-17 Thread Serhat Gesoglu
Hi, You need to decode the trace file using gem5/util/decode_packet_trace.py. This python file dumps the traces to ASCII. More information on the fields can be found here: https://www.gem5.org/documentation/general_docs/cpu_models/TraceCPU Serhat From:

Re: [gem5-users] Question about Data bus

2020-03-04 Thread Serhat Gesoglu
Hi, Yes, you can trace the packets by using CommMonitor. You will need to add the monitor between cache and cpu (gem5/src/cpu/BaseCPU.py). Take a look at: gem5/src/mem/CommMonitor.py and http://old.gem5.org/General_Memory_System.html (there is a traffic analysis subsection which could be

Re: [gem5-users] MemTraceProbe cannot be imported successfully

2019-07-25 Thread Serhat Gesoglu
uot;, line 60: from m5.objects.MemTraceProbe import * *** I think this error was because of the absence of protobuf. However, I have installed protobuf, *** protoc --version libprotoc 3.9.0 *** So is this a version mismatch problem? Best, Rosen Serhat Gesoglu mailto:serhat.geso...@manc

Re: [gem5-users] MemTraceProbe cannot be imported successfully

2019-07-25 Thread Serhat Gesoglu
Hello, If you are using the recent versions of gem5, you should use: *** from m5.objects.CommMonitor import * from m5.objects.MemTraceProbe import * *** instead of "from import *" I just did a clean install / build and did not have any errors. Kind regards Serhat

Re: [gem5-users] On checkpointing while using custom config file

2019-04-29 Thread Serhat Gesoglu
Hello, "run.py" is a simple script to introduce the full system mode. For creating/restoring checkpoints "configs/example/fs.py" might be a better example. I would also recommend taking a look at the run() function in "configs/common/Simulation.py". Serhat

Re: [gem5-users] Using DDR4 System Controller

2019-04-29 Thread Serhat Gesoglu
Hello, Are you using the up-to-date gem5? Memory classes were renamed a while ago. You can check the available classes using $ ./build/ARM/gem5.opt configs/example/fs.py --list-mem-types Serhat From: gem5-users [gem5-users-boun...@gem5.org] on behalf of

Re: [gem5-users] Checkpoints with Traffic Generator

2019-04-25 Thread Serhat Gesoglu
Hello, You can combine "--at-instruction" and "--take-checkpoint" / "--checkpoint-restore" flags to take a checkpoint after 100M instructions and restore from the same point. Serhat From: gem5-users [gem5-users-boun...@gem5.org] on behalf of siva sankar

Re: [gem5-users] Expanding Disk Image for FS Mode

2019-04-21 Thread Serhat Gesoglu
Hello, "chroot" is what you are looking for to install the packages you want. $ mount -o loop,offset /mnt $ cd /mnt $ mount --bind /proc /mnt/proc $ mount --bind /sys /mnt/sys $ mount --bind /dev /mnt/dev $ chroot . After chroot you'll be in the image file's root directory and should be able

Re: [gem5-users] Expanding Disk Image for FS Mode

2019-04-16 Thread Serhat Gesoglu
Hello, fsck and its variations can be used on a partition, not on an entire image file/disk. Since you are using an image file, you need to create a loop device to run e2fsck. After increasing the disk size with: $ dd if=/dev/zero bs=1M count=400 >> linux-x86.img Expand the first

Re: [gem5-users] DVFS

2019-02-28 Thread Serhat Gesoglu
Hi, > i m getting the output as clock = 1 1 3 4 i can't understand what it means? Those numbers represent "ticks". Ticks are the smallest time unit gem5 understands and 1 tick is equal to 1 picosecond [1]. As I understand from this config, you have 4 different clocks in your setup which are

Re: [gem5-users] Error on Full system Simulation ALPHA architecture

2019-02-10 Thread Serhat Gesoglu
Hello, Are there spaces after the equal signs in the command you are trying to run or are they there due to the email formatting? If it's the former, you should remove them and try running the command again. i.e. $ ./build/ALPHA/gem5.opt ./configs/example/fs.py

Re: [gem5-users] Create Checkpoint

2018-08-30 Thread Serhat Gesoglu
S zhu ttyS0 with best regards yunxia zhu On Wed, 29 Aug 2018 at 16:27, Serhat Gesoglu mailto:serhat.geso...@manchester.ac.uk>> wrote: Hello, I am not really sure if it is normal for it to run that long. Are you using custom image/kernel files or the ones dowloaded from gem5 website? Cou

Re: [gem5-users] Create Checkpoint

2018-08-29 Thread Serhat Gesoglu
Hello, I am not really sure if it is normal for it to run that long. Are you using custom image/kernel files or the ones dowloaded from gem5 website? Could you also check your m5out/system.terminal to see if there is anything useful? Kind regards Serhat Gesoglu

Re: [gem5-users] Create Checkpoint

2018-08-28 Thread Serhat Gesoglu
-users [gem5-users-boun...@gem5.org] on behalf of Yunxia Zhu [emilia...@gmail.com] Sent: 28 August 2018 12:44 To: gem5 users mailing list Subject: Re: [gem5-users] Create Checkpoint Hello Serhat Gesoglu, I didn't get any error and I didn't get "checkpoint simulation" either. My output

Re: [gem5-users] Create Checkpoint

2018-08-28 Thread Serhat Gesoglu
ail.com] Sent: 28 August 2018 10:28 To: gem5 users mailing list Subject: Re: [gem5-users] Create Checkpoint Hello Serhat Gesoglu, I used m5 commands but I still failed to create checkpoint. Here it is details: Create checkpoint: gem5 $ build/X86/gem5.opt configs/example/fs.py --script=configs

Re: [gem5-users] Create Checkpoint

2018-08-21 Thread Serhat Gesoglu
pt first. It creates a checkpoint and stops. The second time (when restored from a checkpoint), you use your own script. Kind regards Serhat Gesoglu From: gem5-users [gem5-users-boun...@gem5.org] on behalf of Yunxia Zhu [emilia...@gmail.com] Sent: 21 August

Re: [gem5-users] Unable to run GEM5-RISCV

2018-02-15 Thread Serhat Gesoglu
Hello, It seems you have typos for both tries. For the first one cpu type should be "DerivO3CPU" not "Deriv03CPU" (With the letter O not the number 0). The second error is occuring due to missing a dash symbol for l2_size, there must be 2 dashes (--l2_size not -l2_siz

Re: [gem5-users] How to distinguish b/w Instruction and Data in L2

2018-02-14 Thread Serhat Gesoglu
"isInstFetch()" (pkt->req->isInstFetch()). Hope this helps. Serhat Gesoglu From: gem5-users [gem5-users-boun...@gem5.org] on behalf of Muhammad Ali Akhtar [muhammadali...@gmail.com] Sent: 13 February 2018 18:09 To: gem5-users@gem5.org Subject:

Re: [gem5-users] CommMonitor.cc not generating trace file

2017-11-30 Thread Serhat Gesoglu
Hello, I am glad I could be of help. Not exactly sure what was the problem with your versions. Making sure that only the files you edited are different from the branch you use might help (something like git diff | grep "diff --git"). Cheers Serhat

Re: [gem5-users] CommMonitor.cc not generating trace file

2017-11-29 Thread Serhat Gesoglu
itor.trace = MemTraceProbe(trace_file="l1trace.trc.gz") self.dcache_port = self.monitor.slave self.monitor.master = dc.cpu_side .. Cheers Serhat Gesoglu From: gem5-users [gem5-users-boun...@gem5.org] on behalf of Saivarun R [rsvar

Re: [gem5-users] CommMonitor.cc not generating trace file

2017-11-29 Thread Serhat Gesoglu
Hello, I believe you do not need to change anything on CommMonitor.py. Did you follow the instructions here and attach a probe to the monitor you are using: http://gem5.org/General_Memory_System#Traffic_analysis_and_memory_trace_capture ? Cheers Serhat Gesoglu

Re: [gem5-users] Error compiling on MacOS High Sierra

2017-11-28 Thread Serhat Gesoglu
Hello, Which scons version are you using? I had a similar problem, solution to this was using scons version 2.5.1. Hope this helps Serhat Gesoglu From: gem5-users [gem5-users-boun...@gem5.org] on behalf of Samon Shivastar [rulethek...@gmail.com] Sent

Re: [gem5-users] 'MemTraceProbe' is not defined

2017-11-23 Thread Serhat Gesoglu
. Thanks and kind regards. Serhat Gesoglu From: gem5-users [gem5-users-boun...@gem5.org] on behalf of Serhat Gesoglu [serhat.geso...@manchester.ac.uk] Sent: 21 November 2017 16:19 To: gem5-users@gem5.org Subject: [gem5-users] 'MemTraceProbe' is not defined

[gem5-users] 'MemTraceProbe' is not defined

2017-11-21 Thread Serhat Gesoglu
86/configs/have_protobuf.hh has the line "#define HAVE_PROTOBUF 1". I searched for a solution in this mailing list but could not find a solution (or the solutions suggested did not work). Anyone has any idea what might be the problem? Thanks and kind regards. Serhat Gesoglu __

Re: [gem5-users] use_kvm.hh

2017-08-10 Thread Serhat Gesoglu
efine USE_KVM 0". https://gem5.googlesource.com/public/gem5/+/master/SConstruct#1295 https://gem5.googlesource.com/public/gem5/+/master/src/SConscript#361 Cheers Serhat Gesoglu From: gem5-users [gem5-users-boun...@gem5.org] on behalf of Nidhi Kamath [nid

Re: [gem5-users] use_kvm.hh

2017-08-09 Thread Serhat Gesoglu
Hello, The file should be created by scons. I just did a clean clone and build, and the aforementioned file was created without any problems. Are you using the latest version of gem5? Can you try rebuilding again? Cheers Serhat Gesoglu From: gem5-users

Re: [gem5-users] dtb file for ARM big little configuration system?

2017-08-09 Thread Serhat Gesoglu
/questions/41930/kernel-panic-not-syncing-vfs-unable-to-mount-root-fs-on-unknown-block0-0 Serhat Gesoglu From: gem5-users [gem5-users-boun...@gem5.org] on behalf of Francesco Mazzei [mazzeifr...@gmail.com] Sent: 09 August 2017 16:25 To: gem5 users mailing list

Re: [gem5-users] dtb file for ARM big little configuration system?

2017-08-09 Thread Serhat Gesoglu
Hello, You can create ARM dtb files following the instructions here: http://www.gem5.org/ARM_Kernel The command you are looking for is: make -C system/arm/dt Hope this helps Serhat Gesoglu From: gem5-users [gem5-users-boun...@gem5.org] on behalf

Re: [gem5-users] use_kvm.hh

2017-08-09 Thread Serhat Gesoglu
Hello, It is an automatically created file, after building a system you can find this file in gem5_dir/build/[arch]/config/ Hope this helps. Serhat Gesoglu From: gem5-users [gem5-users-boun...@gem5.org] on behalf of Nidhi Kamath [nidhikamat

Re: [gem5-users] How to disable style checker

2017-04-26 Thread Serhat Gesoglu
Hello, You can use "--ignore-style" command line option to disable style checking hooks. Here is the source: http://gem5.org/Build_System#Command_line_options Cheers Serhat From: gem5-users [gem5-users-boun...@gem5.org] on behalf of

Re: [gem5-users] can't run Ubuntu 14.04 image

2017-04-10 Thread Serhat Gesoglu
Hello, I am not sure about the second bug, sorry, but the warnings in your first output would not affect your simulations, unless you are planning to something using those. "Mount failed for selinuxfs on /sys/fs/selinux: No such file or directory" selinux in Ubuntu has some problems:

Re: [gem5-users] How to collect write/read request to L2cache in multiCPU se.py configuration.

2017-03-15 Thread Serhat Gesoglu
Hello, Packet objects (MemReq), holds all the information you need. In order to have the information, you should create a memory object sitting between between l1 and l2 caches. This page explains how to do that in detail: http://learning.gem5.org/book/part2/memoryobject.html. Hope this

Re: [gem5-users] reset stats counters

2017-03-15 Thread Serhat Gesoglu
Hello, I believe, you can use "m5_reset_stats" in SE mode, in your program. You may want to check util/m5/m5op.h and other related files in util/m5 directory. Cheers Serhat From: gem5-users [gem5-users-boun...@gem5.org] on behalf of Summer Deng

Re: [gem5-users] l3 cache

2017-02-27 Thread Serhat Gesoglu
Hello, L3 cache is not implemented in gem5 but you can manually implement it (and add a command line option such as --l3caches), unless you are using ruby (as far as I know due to not having a 3-level coherence protocol). You may want to check this tutorial for more information about adding

Re: [gem5-users] FS Simulation using HMC_2500_x32 and Caches

2017-02-14 Thread Serhat Gesoglu
Hello Muzamil, I, as well, had the same error/similar errors and believe that there is a bug in the HMC model . For more information, simulating the HMC model is only possible with an atomic CPU but without caches. The following situations (for an ARM system) also failed for me: - atomic CPU

Re: [gem5-users] Errors when running FS with fs.py

2017-02-10 Thread Serhat Gesoglu
Hello, Have you tried changing the path in configs/common/SysPath.py ? Serhat From: gem5-users [gem5-users-boun...@gem5.org] on behalf of Wang, Chenxu [wa...@rose-hulman.edu] Sent: 10 February 2017 09:10 To: gem5-users@gem5.org Subject: [gem5-users]

Re: [gem5-users] Simulated data information - Cache and memory

2017-02-08 Thread Serhat Gesoglu
g.ini file under system.realview.vram or system.realview.nvmem (type=SimpleMemory). SimpleMemory latency is defined in src/mem/SimpleMemory.py Hope these helps. Thanks and kind regards Serhat Gesoglu From: gem5-users [gem5-users-boun...@gem5.org]

Re: [gem5-users] Using HMC Model in FS Mode

2017-01-26 Thread Serhat Gesoglu
-boun...@gem5.org<mailto:gem5-users-boun...@gem5.org>> on behalf of Serhat Gesoglu <serhat.geso...@manchester.ac.uk<mailto:serhat.geso...@manchester.ac.uk>> Reply-To: gem5 users mailing list <gem5-users@gem5.org<mailto:gem5-users@gem5.org>> Date: Wednesday, 25

[gem5-users] Using HMC Model in FS Mode

2017-01-25 Thread Serhat Gesoglu
kerState::recvPacket(PacketPtr): Assertion `!delayedResponse' failed. Program aborted at tick 11 --- BEGIN LIBC BACKTRACE --- ... Basically I am stuck at this point. Could anyone point me out my mistakes/how to solve this problem? The link to the configuration script I used: http

Re: [gem5-users] HMC Simulation (Abdul Mutaal)

2017-01-11 Thread Serhat Gesoglu
Hello, Had a similar problem. What I did was running "hg log `find -name HMC.py`" to see which updates has changed HMC.py file. This gave: changeset: 11551:d24ad08b22b0 user:Abdul Mutaal Ahmad date:Fri Jul 01 09:45:21 2016 -0500 summary: mem: