[gem5-users] Re: Version of gem5

2024-03-17 Thread Hoa Nguyen via gem5-users
Hi all, It seems to be a bug in gem5. You can run the gem5 binary without any arguments. The gem5 version is within the first few lines of the output. Regards, Hoa Nguyen On Sun, Mar 17, 2024, 14:31 yb_zhang--- via gem5-users wrote: > I tried it in my environment and got the same error as

[gem5-users] Re: [EXT] Re: Build gem5 on non x86 system

2024-03-15 Thread Hoa Nguyen via gem5-users
Hi Nick, You can use the argument like this, scons build/RISCV/gem5.opt –limit-ld-memory-usage -j`nproc` I was able to compile gem5 with docker with 6GiB of RAM, and was not able to do that with 4GiB of RAM. I think you already hint at a better solution, which is to use build the docker image

[gem5-users] Re: Build gem5 on non x86 system

2024-03-14 Thread Hoa Nguyen via gem5-users
Hi Nick, I don't think there would be any problem with compiling gem5 on arm (or riscv) architecture on Ubuntu. I've been compiling/using gem5 on an arm system and it works for me. However, please make sure that the system has enough memory to compile gem5. Typically compiling gem5 takes a lot

[gem5-users] Re: How to Get Old Version GEM5

2024-02-24 Thread Hoa Nguyen via gem5-users
Hi, You can find the precise tag name of every gem5 version here, https://github.com/gem5/gem5/tags Regards, Hoa Nguyen On Sat, Feb 24, 2024, 18:51 hu miao via gem5-users wrote: > HI: > I need to use old version gem5 because I need to use > configs/example/fs.py. However,after git

[gem5-users] Re: X86 full system simulation---about m5term

2024-01-12 Thread Hoa Nguyen via gem5-users
Hi, The problem seems to be that the gem5 simulation and the m5term call are run on different virtual machines. If you're using docker then please make sure that you're calling m5term on the same docker container as the one running gem5 simulation. If that doesn't work then you can check the

[gem5-users] Re: Help with extending RISCV vector ISA

2024-01-01 Thread Hoa Nguyen via gem5-users
Hi, These are a few pointers on how to start modifying the RVV implementation. - The previous gem5 bootcamp has details on how to implement instructions in gem5, and examples of implementing RISCV P extension, https://youtube.com/watch?v=Z5B02jkNpck=PL_hVbFs_loVSaSDPr1RJXP5RRFWjBMqq3=11=iAQB .

[gem5-users] Re: Login fails once the system boots -- full system simulation (arm)

2023-12-23 Thread Hoa Nguyen via gem5-users
Hi Saras, This is the methodology we used for most gem5-resources disk images regarding automating the login process right after booting Ubuntu. We have a systemd service file that will log you in as a root user.

[gem5-users] Re: How to use Gem5?

2023-12-21 Thread Hoa Nguyen via gem5-users
Hi Anamika, Hey there. The se.py script has been depreciated in favor of the new gem5 standard library. You can find examples of using the standard library, https://github.com/gem5/gem5/tree/stable/configs/example/gem5_library. The internal of the standard library (how components are constructed

[gem5-users] Re: Fwd: Unable to run more than 8 core RISCV FS simulation

2023-11-17 Thread Hoa Nguyen via gem5-users
Ah, also, if modifying MAX_HARTS doesn't work then you can follow the following PRs to use a newer bootloader, which works with 16 cores. - Building the bootloader https://github.com/gem5/gem5-resources/pull/13 - Changing gem5 to use the new bootloader

[gem5-users] Re: Fwd: Unable to run more than 8 core RISCV FS simulation

2023-11-17 Thread Hoa Nguyen via gem5-users
Hi Nitish, The number of CPUs might also be limited by the bootloader as well. You might want to recompile the bootloader using the following documentation https://github.com/gem5/gem5-resources/tree/stable/src/riscv-fs#bootloader-bbl . You might want to modify this parameter in the proxy kernel

[gem5-users] Re: Build Error 134

2023-08-06 Thread Hoa Nguyen via gem5-users
Hi Kevin, The error is quite odd, and it does look like it was hardware resource related. Can you try building gem5 from the official docker images here? The images have newer versions of gcc and scons I believe. If the problem persists then it's probably a bug in gem5.

[gem5-users] Re: Unable to boot Linux in FS mode

2023-07-29 Thread Hoa Nguyen via gem5-users
Hi all, As mentioned above, the problem is likely due to using KVM then switch to another gem5 core, which doesn't support all ISA extensions that the host supports. I wanted to add that, if updating the gem5 version doesn't solve the problem, you can use AtomicSimpleCPU for fast-forwarding

[gem5-users] Re: Meltdown simulation & analysis in FS mode using fs.py

2023-07-20 Thread Hoa Nguyen via gem5-users
Hi all, It appears that you're using an older version of gem5 that does not have the palignr instructions implemented. The current stable branch has those instructions implemented. I'm not sure if this is a problem in your setup or related to this problem, but I wanted to add that I was not able

[gem5-users] Re: Arm-ubuntu-run script

2023-05-06 Thread Hoa Nguyen via gem5-users
Hi, This patch might help. https://gem5-review.googlesource.com/c/public/gem5/+/70017 Regards, Hoa Nguyen On Sat, May 6, 2023, 00:19 zhangcongwu via gem5-users wrote: > Dear gem5 community, > > I am running `configs/example/gem5_library/arm-ubuntu-run.py` to simulate > a multi-core

[gem5-users] Re: gem5 SVE vectoe length

2023-04-20 Thread Hoa Nguyen via gem5-users
Hi Zhang, I wanted to add that you can check the Linux kernel booting log to see whether the kernel recognized the maximum vector length of SVE correctly. Note that even if the SVE vlen is correctly recognized by the kernel, it doesn't mean the whole vlen is available to userspace. Though, I

[gem5-users] Re: garnet - garnet synthetic traffic - Mesh_XY routing algorithm

2023-03-09 Thread Hoa Nguyen via gem5-users
Hi Karim, I'm not very familiar with the Mesh_XY topology, but here is my attempt to explain this. I think the layout of the topology looks like this, 2 (0,1) <-> 3 (1,1) ^ ^ | | v v 0 (0,0) <-> 1 (1,0) It's straightforward to send a packet

[gem5-users] Re: Compiling for gem5

2023-03-07 Thread Hoa Nguyen via gem5-users
Hi Alex, There used to be a beginner friendly gem5 + ARM SVE tutorial from HiPEAC 2021 that could be easily found on the internet. I wasn't able to find that this time, however. You can start with the resources here https://github.com/arm-university/arm-gem5-rsk Without modifying anything, the

[gem5-users] Re: Compiling for gem5

2023-03-07 Thread Hoa Nguyen via gem5-users
Hi Alex, The answer to your question depends on quite a few factors. One of them is what are the ISAs do you plan to investigate. As far as I know, x86 in gem5 does not support a lot of SIMD extensions. I believe arm NEON is pretty well supported in gem5. In terms of vector length agnostic

[gem5-users] Re: DerivO3CPU panic: initiateAcc not defined

2023-01-03 Thread Hoa Nguyen via gem5-users
Hi, I believe you can compile build/X86/gem5.debug to have all the symbols available for debugging. I'm not sure about the error, but generally, when debugging an instruction, I would try to find the internal name of the instruction in gem5, and look at gem5/build/X86/arch/x86/arch/generated/ to

[gem5-users] Re: args passing to binary workload in FS

2022-12-14 Thread Hoa Nguyen via gem5-users
Hi, It seems that it's down to how se.py parses the arguments. Specifically, the string passed to "-o" will always be splitted with the space character as the delimiter as shown here, https://gem5.googlesource.com/public/gem5/+/refs/heads/stable/configs/example/se.py#98 You can change the

[gem5-users] Re: "qemu: Error launching VM: Qenu failed to start" when using Packer to create a disk image and running Gem5 FS Sim

2022-11-12 Thread Hoa Nguyen via gem5-users
Hi, I wanted to add that, if nested virtualization is not an option, you can remove the "accelerator": "kvm" line in the json file. Without kvm, the process might take a few hours.

[gem5-users] Re: HPCG on RISCV

2022-11-03 Thread Hoa Nguyen via gem5-users
Hi Nikos, The problem you ran into with the FS mode seems to be the same problem described here [1] [2]. Can you try downloading the changes and let me know if it fixes the problem? [1] https://gem5-review.googlesource.com/c/public/gem5/+/65272 [2]

[gem5-users] Re: HPCG on RISCV

2022-11-01 Thread Hoa Nguyen via gem5-users
Hi all, I also ran into the same problem using another benchmark. I want to note that this problem also appears when using the AtomicCPU. Regards, Hoa Nguyen On Tue, Nov 1, 2022 at 3:02 AM Νικόλαος Ταμπουρατζής via gem5-users < gem5-users@gem5.org> wrote: > Dear Boddy, > > Thank you for the

[gem5-users] Re: Running SPEChpc 2021 benchmarks with gem5

2022-03-19 Thread Hoa Nguyen via gem5-users
Hi Chrysanthos, As indicated by this line, > ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(3,0) ]--- the problem seems to be that the root partition was identified incorrectly. You can run the `fdisk` command to find the location of the root partition. For

[gem5-users] Re: riscv-ubuntu 20.04 FS mode

2022-03-14 Thread Hoa Nguyen via gem5-users
form Features : timer,mfdeleg > >>> >> >>>> Platform HART Count : 8 > >>> >> >>>> Firmware Base : 0x8000 > >>> >> >>>> Firmware Size : 156 KB > >>> >> >>>> Runtime SBI Version : 0.2 > >>> >> >>>

[gem5-users] Re: riscv-ubuntu 20.04 FS mode

2022-02-11 Thread Hoa Nguyen via gem5-users
Hi, It also took 6+ hours to boot Linux using that disk image on my end, so I think it's systemd being very slow. By profiling systemd, I find that systemd took a lot of time to bring up the networking service, and especially the "motd" (message of the day?) service, which queries for updates

[gem5-users] Re: BasicPioDevice read() / write() not responding

2021-10-23 Thread Hoa Nguyen via gem5-users
Hi Andreas, My guess is that for Method 1, the pointer is of a virtual address so there's a page fault there. I'm not sure why the write() function wasn't invoked on Method 2. I got into the same problem recently where I used mmap() to write to a physical address, which should be handled by a

[gem5-users] Re: How to build custom disk images

2021-10-20 Thread Hoa Nguyen via gem5-users
Hi, It's not clear from the error log where the problem is, but it does indicate that qemu failed to start. My suggestion is to check the path of the qemu binary (i.e. this line https://gem5.googlesource.com/public/gem5-resources/+/refs/heads/develop/src/parsec/disk-image/parsec/parsec.json#44).

[gem5-users] Re: Compile GEM5 to .a or .so file

2021-10-07 Thread Hoa Nguyen via gem5-users
Hi Fengze, The command to compile gem5 as a library is, scons build/X86/libgem5_opt.so The ISA and the variant (e.g. opt, debug, fast) options are the same as those of compiling gem5 as an executable. Regards, Hoa Nguyen On Thu, Oct 7, 2021, 3:01 AM Fengze Yu via gem5-users wrote: > > Hi >

[gem5-users] Re: gem5art SPEC 2017 benchmark tutorial: error with packer building disk image

2021-09-25 Thread Hoa Nguyen via gem5-users
Hi Reiko, It's not immediately clear to me what caused the problem. Though, I do think it was because the host was running out of memory. I think you can resolve that by modifying the "vm_memory" parameter of the disk-image/spec-2017/spec-2017.json file. Regards, Hoa Nguyen On 9/24/21, Reiko

[gem5-users] Re: gem5art SPEC2017 FS Tutorial : error opening disk image

2021-09-22 Thread Hoa Nguyen via gem5-users
Hi Reiko, Can you point to the tutorial and the launch experiment script that you used? I think it's possible that the file disk-image/spec2017/spec2017-image/spec2017 didn't exist, or the path to that file was incorrect. Regards, Hoa Nguyen On Wed, Sep 22, 2021, 12:24 PM Reiko Matsuda-dunn

[gem5-users] Re: illegal instruction in RISCV mode

2021-07-30 Thread Hoa Nguyen via gem5-users
Hi, riscv-tests is currently not well-supported as there are several outstanding issues mentioned here: https://gem5.atlassian.net/browse/GEM5-938 Regards, Hoa Nguyen On 7/29/21, Boya Chen via gem5-users wrote: > Hi, all > > I use the latest v21.1 gem5 to run RISCV simulation, using the

[gem5-users] Re: Trouble getting an image to mount

2021-07-12 Thread Hoa Nguyen via gem5-users
Hi, Can you try changing the "--root-device" option in the command to run gem5 to one of "/dev/vda1", "/dev/sda1", "/dev/hda", "/dev/vda", "/dev/sda"? Regards, Hoa Nguyen On 7/2/21, Eliot Moss via gem5-users wrote: > I've ried my best to follow the instruction on how to build a disk image >

[gem5-users] Re: KVM patch for FS mode and PARSEC on gem5-21

2021-06-10 Thread Hoa Nguyen via gem5-users
Hi Rajesh, I assume that you're on the develop branch of gem5. You can remove the line self.intrctrl = IntrControl() to fix the config file. Regards, Hoa Nguyen On Wed, Jun 9, 2021, 10:26 PM Rajesh Shashi Kumar via gem5-users < gem5-users@gem5.org> wrote: > Hi Ayaz, > > Thank you very

[gem5-users] Re: Error Building the Disk Image SPEC CPU2017 using packer

2021-06-02 Thread Hoa Nguyen via gem5-users
Hi Ange-Thierry, The logs and the packer script seem fine to me. The installation process might get stuck somewhere and it doesn't show here. You can use VNC to inspect the process as detailed here: https://gem5art.readthedocs.io/en/latest/main-doc/disks.html#ii-inspect-the-building-process

[gem5-users] Re: 答复: Re: SPEC2017 in FS mode

2021-05-30 Thread Hoa Nguyen via gem5-users
t;>> > >>> > qemu: build-essential is already the newest version (12.4ubuntu1). >>> >> qemu: gfortran is already the newest version (4:7.4.0-1ubuntu2.3). >>> >> qemu: 0 upgraded, 0 newly installed, 0 to remove and 176 not >>> >> upgr

[gem5-users] Re: Error Building the Disk Image SPEC CPU2017 using packer

2021-05-30 Thread Hoa Nguyen via gem5-users
Hi, The log seems to indicate that QEMU cannot use KVM on your machine. To resolve this problem, you can either enable KVM, or choose not to use KVM for creating the disk image. To not to use KVM, you'll need to remove the line: "accelerator": "kvm" in this file:

[gem5-users] Re: 答复: Re: SPEC2017 in FS mode

2021-05-25 Thread Hoa Nguyen via gem5-users
only works with X86. > > Regards, > Hoa Nguyen > > On 5/20/21, Liyichao wrote: >> Hi Hoa: >>Is the spec-2017 img just for X86? >> >> Does it support for AARCH64?Does it support for running with KVM+O3? >> >> >> -邮件原件---

[gem5-users] Re: 答复: Re: SPEC2017 in FS mode

2021-05-24 Thread Hoa Nguyen via gem5-users
a: >> Is the spec-2017 img just for X86? >> >> Does it support for AARCH64?Does it support for running with KVM+O3? >> >> >> -邮件原件- >> 发件人: Hoa Nguyen via gem5-users [mailto:gem5-users@gem5.org] >> 发送时间: 2021年5月19日 19:09

[gem5-users] Re: 答复: Re: SPEC2017 in FS mode

2021-05-24 Thread Hoa Nguyen via gem5-users
Hi Liyichao, Currently, the spec-2017 image only works with X86. Regards, Hoa Nguyen On 5/20/21, Liyichao wrote: > Hi Hoa: > Is the spec-2017 img just for X86? > > Does it support for AARCH64?Does it support for running with KVM+O3? > > > -----邮件原件----- >

[gem5-users] Re: SPEC2017 in FS mode

2021-05-20 Thread Hoa Nguyen via gem5-users
e files as if I'm mounting the SPEC2017 iso. > > Thanks > > On Wed, 19 May 2021 at 07:09, Hoa Nguyen via gem5-users < > gem5-users@gem5.org> wrote: > >> Hi Victor, >> >> I'm not sure what caused the errors of building the spec benchmarks. >> >

[gem5-users] Re: SPEC2017 in FS mode

2021-05-19 Thread Hoa Nguyen via gem5-users
Hi Victor, I'm not sure what caused the errors of building the spec benchmarks. Also, I'm not sure how to prevent the vm from being closed after the builds fail. However, there are a few steps can be done to exterminate the disk image after the builds fail: - In the file

[gem5-users] Re: Error while building gem5

2021-04-21 Thread Hoa Nguyen via gem5-users
Hi, Can you be more specific about the command line and the gem5 version that you used? >From the screenshot, it seems to be a problem with LTO. You can compile gem5 with --no-lto flag to not to use LTO for compiling. Regards, Hoa Nguyen On 4/20/21, VAIDYA ROHINI VILAS wrote: > Hello, > I am

[gem5-users] Re: Error while installing gem 5

2021-04-20 Thread Hoa Nguyen via gem5-users
Hi, This discussion (https://www.mail-archive.com/gem5-users@gem5.org/msg19294.html) might have the information to make compiling process faster. Regards, Hoa Nguyen On 4/19/21, VAIDYA ROHINI VILAS via gem5-users wrote: > Hi, > No error message is there. > process just stops at [ LINK ]

[gem5-users] Re: Error while installing gem 5

2021-04-19 Thread Hoa Nguyen via gem5-users
Hi, The message is not an error. It means that if you press enter, the git commit hook will be installed and then gem5 will be compiled; while ctrl+c will exit the compiling program. Regards, Hoa Nguyen On 4/19/21, VAIDYA ROHINI VILAS wrote: > Hello , > I am trying to download gem5 in my new

[gem5-users] Re: About links on learing gem5

2021-04-12 Thread Hoa Nguyen via gem5-users
Hi, Thank you for reporting this bug. The links have been updated! Regards, Hoa Nguyen On 4/6/21, Ahmad SB via gem5-users wrote: > Hi > Links on https://www.gem5.org/documentation/learning_gem5 are not valid > anymore (e.g. > gem5.org/dist/current/gem5/cpu_tests/benchmarks/bin/arm/Bubblesort )

[gem5-users] Re: can't reset stats.txt when using KVM CPU

2021-04-12 Thread Hoa Nguyen via gem5-users
Hi, final_tick and sim_insts are RootStats (they are in src/sim/root.cc) and they won't be reset by calling reset stats. Regards, Hoa Nguyen On 4/11/21, kong han via gem5-users wrote: > Hi all, > Now I using the KVM CPU to run fs mode, and I try two ways to reset the > m5out/stats.txt but all

[gem5-users] Re: Maybe pipeview script has some version compatibility issues?

2021-04-12 Thread Hoa Nguyen via gem5-users
Hi, Thanks for reporting this bug. It is indeed a python3 compatibility issue, which is is addressed here https://gem5-review.googlesource.com/c/public/gem5/+/7 and will be merged to the develop branch soon. Regards, Hoa Nguyen On 4/12/21, Gabe Black via gem5-users wrote: > Maybe a python

[gem5-users] Re: ISSUES FACING WHILE INTEGRATING GEM5 AND DRAMSIM3

2021-04-02 Thread Hoa Nguyen via gem5-users
Hi all, This pull request (https://github.com/takekoputa/gem5/pull/2/files) contains an example of how to add DRAMsim3 to the configs/common/MemConfigs.py file. Please replace the hardcoded path to an .ini with a path in your system. There were mem_ranges having overlapping ranges because

[gem5-users] Re: Problem with FS mode Gem5

2021-03-21 Thread Hoa Nguyen via gem5-users
Hi, Can you be elaborate more about the issue? Such as what is the command line and what binaries are you using to run fs.py. It is possible that the guest program is waiting for some input from users/stdin. Also, you can run fs.py with faster cpu models to verify whether the guest program got

[gem5-users] Re: Building ARM disk image by Packer

2021-03-18 Thread Hoa Nguyen via gem5-users
Hi Duc Anh, I'm not sure the setup laid out in the tutorial would work for arm system as we only tested it on x86 arch. However, I believe there are forks of packer that would work with arm arch (https://www.packer.io/community-tools), and there are also tutorials for using packer to build disk

[gem5-users] Re: Disk image for FS

2021-03-04 Thread Hoa Nguyen via gem5-users
y when using the fs.py config script > but i don't get a terminal to interact with the simulated system using > telnet. Is that expected because i need to use the --script parameter or > am I missing something? > > Greetings, > Miguel antonio Avargues Gutiérrez. > > El 28/02/2021 a

[gem5-users] Re: Disk image for FS

2021-02-27 Thread Hoa Nguyen via gem5-users
Hi Miguel, For X86 full system simulation, specifically for creating custom disk image that runs with newer Linux kernels, I believe gem5-resources has the resources for that. More details can be found here, - General introduction and artifacts:

[gem5-users] Re: Error coming while running gem5 in fs mode

2021-02-23 Thread Hoa Nguyen via gem5-users
Hi, There is an whitespace between `gem5` and `2` in the path to the disk image, so the parser thinks that `2/full_system_images/aarch64-ubuntu-trusty-headless.img` is argument. Regards, Hoa Nguyen On 2/23/21, VAIDYA ROHINI VILAS via gem5-users wrote: > Hello, > I am trying to run gem5 in fs

[gem5-users] Re: Adding new stats field for a class(PageTableWalker) in X86

2021-01-26 Thread Hoa Nguyen via gem5-users
Hi Krishnan, I'm not sure if this would address the problem, but those are some pointers to adding new stats. The main data structure holding Stats object in gem5 is Stats::Group implemented here

[gem5-users] Re: Errors coming while running gem5 in full system mode

2021-01-19 Thread Hoa Nguyen via gem5-users
Hi, I believe this is an error produced by a Python script. If the configs/example/fs.py file has been modified, please check the indentation of the modified part of the script for indentation inconsistencies (for example, space indentations vs tab indentations). Regards, Hoa Nguyen On 1/19/21,

[gem5-users] Re: dumping specific stats

2020-12-01 Thread Hoa Nguyen via gem5-users
Hi, Can you be a bit more specific about the error that you saw and the version of gem5 that you're using? I tried something similar and it worked for me, build/ARM/gem5.opt configs/example/se.py --stats-root 'system.cpu[:].mmu.itb' --caches -c tests/test-progs/hello/bin/arm/linux/hello --ruby

[gem5-users] Re: Gem5 FS - Kernel panic - not syncing: Fatal exception in interrupt

2020-11-23 Thread Hoa Nguyen via gem5-users
HI Duc Anh, It seems that you're using the default Linux kernel config, which won't work with gem5. There are a few Linux kernel configs of older versions that are known to work with gem5, and we can use them to generate new ones that might work with gem5. You can find the known working ones here

[gem5-users] Re: FS KVM switching cpu

2020-11-23 Thread Hoa Nguyen via gem5-users
I'm glad it helped :D Regards, Hoa Nguyen On Mon, Nov 23, 2020, 12:22 AM sujayyadalam--- via gem5-users < gem5-users@gem5.org> wrote: > So I was able to solve this by creating a new config from scratch. > > Previously, I was using a modified version of the fs.py. > Now, I used the run_npb.py in

[gem5-users] Re: FS KVM switching cpu

2020-11-21 Thread Hoa Nguyen via gem5-users
Hi Sujay, I'm not sure about the problem with the gem5 config. You might want to take a look at gem5 resources (https://gem5.googlesource.com/public/gem5-resources/). The gem5 resources repo has the resources (including gem5 configs) for running a workload in FS mode by booting with KVM and

[gem5-users] Re: How to limit instructions number repeatedly!

2020-11-13 Thread Hoa Nguyen via gem5-users
Hi Tracy, I think you can put scheduleInstStop() and m5.simulate() in a loop to do that. Regards, Hoa Nguyen On 11/10/20, Tracy Mac via gem5-users wrote: > Hi All! > I am trying to limit instructions number repeatedly,stop the simulation > when the instruction is limited, do other operations,

[gem5-users] Re: When gem5 is debugged, how to judge the current position of data?

2020-11-13 Thread Hoa Nguyen via gem5-users
Hi, I assume that you want to keep track of a piece of data at a specific virtual/physical address. I don't know a definite answer to this, but one thing you can do is to use the gem5 logging system (i.e. DPRINTF and the like) and figure out what flags you should enable to keep track of

[gem5-users] Re: How to simulate multithread, multicore and multiprocessor system ?

2020-11-13 Thread Hoa Nguyen via gem5-users
Hi Duc Anh, Can you please confirm that this change, https://gem5-review.googlesource.com/c/public/gem5/+/36296, fixes the stats error? Regards, Hoa Nguyen On 11/12/20, Hoa Nguyen wrote: > Hi Duc Anh, > > I think the stats error is related to this change, >

[gem5-users] Re: Should I use FS or SE mode when measuring execution time?

2020-11-13 Thread Hoa Nguyen via gem5-users
Hi Duc Anh, To answer the question about simulation speed, I believe the difference between SE mode and FS mode is minimal. In addition to that, kernel interactions, like process scheduler and page table walks, have significant impact on system performance, so in most cases, I believe it is more

[gem5-users] Re: How to simulate multithread, multicore and multiprocessor system ?

2020-11-12 Thread Hoa Nguyen via gem5-users
Hi Duc Anh, I think the stats error is related to this change, https://gem5-review.googlesource.com/c/public/gem5/+/36296. The stats bug should be resolved when you cherry-pick that change. Hopefully we can add the SMT feature and fix the multicore DerivO3 bug by the next release. Regarding

[gem5-users] Re: --Script parameter cannot be used

2020-11-11 Thread Hoa Nguyen via gem5-users
Hi Siqing, You'll need to call "m5 readfile" in the simulated system (i.e., the guest OS must call "m5 readfile" at some point), and the command will output the content of the script that you pass from the host. gem5 resources has some example of calling "m5 readfile" in the guest OS. For

[gem5-users] Re: How to simulate multithread, multicore and multiprocessor system ?

2020-11-11 Thread Hoa Nguyen via gem5-users
Hi Duc Anh, I assume you want to enable SMT for X86. SMT for X86 has yet to be supported, but there is progress on this recently. You can keep track of the development via JIRA ticket (https://gem5.atlassian.net/browse/GEM5-332) and via this relation change

[gem5-users] Re: How to use checkpoint for a specific code in the Gem5 full system mode.

2020-11-08 Thread Hoa Nguyen via gem5-users
Hi, It should be `/sbin/m5 exit` instead of `/sbin/m5`. Regards, Hoa Nguyen On 11/7/20, Hoa Nguyen wrote: > Hi, > > One way to do it is to use the `--debug-start TICK` option, which will > start logging after `TICK` ticks. > > To figure out the number of simulated ticks, you can run `/sbin/m5`

[gem5-users] Re: How to use checkpoint for a specific code in the Gem5 full system mode.

2020-11-07 Thread Hoa Nguyen via gem5-users
Hi, One way to do it is to use the `--debug-start TICK` option, which will start logging after `TICK` ticks. To figure out the number of simulated ticks, you can run `/sbin/m5` in the guest right before the ROI, then use `m5.curTick()` in the gem5 system config. The output would be useful if the

[gem5-users] Re: Gem5 Full System Mode - Memory Allocation Issue

2020-11-04 Thread Hoa Nguyen via gem5-users
Hi, Can you check whether the "cannot allocate memory" occured in the host system or the simulated system? If it occurs on the simulated system then one thing you can do is to increase the memory size in the gem5 system configuration. Regards, Hoa Nguyen On Tue, Nov 3, 2020, 10:20 PM Hasan, S

[gem5-users] Re: How to set ROI in the program running in FS

2020-11-03 Thread Hoa Nguyen via gem5-users
Hi Siqing, You can find the PARSEC ROI example mentioned in the webpage is here, https://github.com/darchr/parsec-benchmark/commits/gem5-20-annotations gem5-resources (https://gem5.googlesource.com/public/gem5-resources/) has the documentation of setting up full system gem5 experiments with

[gem5-users] Re: How to solve problems when building M5ops

2020-11-03 Thread Hoa Nguyen via gem5-users
Hi Siqing, It should be "x86" with a lowercase x rather than "X86". Regards, Hoa Nguyen On Tue, Nov 3, 2020, 12:52 AM -17 via gem5-users wrote: > Hi all: > > About a few months ago, I followed the guidelines of this link to > successfully build M5ops: > >

[gem5-users] Re: How to add new instructions for gem5?

2020-11-03 Thread Hoa Nguyen via gem5-users
Hi, Though I'm not sure how to add the cache clearing instruction specifically, those are a few examples that new instructions are added, https://gem5-review.googlesource.com/c/public/gem5/+/26123 https://gem5-review.googlesource.com/c/public/gem5/+/23262

[gem5-users] Re: How to use the new libm5.a

2020-10-27 Thread Hoa Nguyen via gem5-users
n, Oct 25, 2020 at 9:31 PM Hoa Nguyen via gem5-users < > gem5-users@gem5.org> wrote: > >> Hi Wenqi, >> >> We have some documentation about the new m5 utility here: >> https://www.gem5.org/documentation/general_docs/m5ops/ >> >> The following link is an examp

[gem5-users] Re: How to use the new libm5.a

2020-10-25 Thread Hoa Nguyen via gem5-users
Hi Wenqi, We have some documentation about the new m5 utility here: https://www.gem5.org/documentation/general_docs/m5ops/ The following link is an example of annotating PARSEC: https://github.com/darchr/parsec-benchmark/commits/gem5-20-annotations Regards, Hoa Nguyen On 10/25/20, wqyin--- via

[gem5-users] Re: How to Set ROI In Benchmark

2020-10-19 Thread Hoa Nguyen via gem5-users
Hi Tracy, The example of PARSEC benchmark mentioned in the documentation page can be found here, https://github.com/darchr/parsec-benchmark/commits/gem5-20-annotations Regards, Hoa Nguyen On 10/13/20, Tracy Mac via gem5-users wrote: > Hi ALL! > > I try to run spec2006 in gem5 full system mode

[gem5-users] Re: An error occurred in i8237 DMA controller when running CPU SPEC 2017 benchmarks

2020-07-17 Thread Hoa Nguyen via gem5-users
Hi Jinpeng, The error seems to cause by 'sysinfo', which is called by SPEC 2017 before it starts running a workload. SPEC 2017 documents how to turn it off here: https://www.spec.org/cpu2017/Docs/utility.html#sysinfo. Basically, the fix is to add this line: sysinfo_program = to the SPEC config