[gem5-users] Is classic memory system thread-safe?

2018-05-10 Thread Chen Zou
Hi all,

This is similar to the previous email I sent to the user list, but I made
some updates.

I am inclined to write my own trace-driver to replay some multi-threaded
traces on the simulated memory hierarchy (let's say #L1D = #L1I = #L2 =
#threads_in_the_trace and a shared L3). It seems that L3 could be added
with a CoherentBus.

If possible, I would like to initiate several threads (say, one pthread per
thread_in_the_trace) to replay the trace to accelerate the simulation.
I am worried if the classic cache model is thread-safe, especially if there
is a shared L3 in the hierarchy. Thanks in advance.

BTW, does the mail-list send the email to the original author? I didn't
receive my previous email.

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

[gem5-users] Is classic memory system thread-safe?

2018-05-10 Thread Chen Zou

Hi all,


I am inclined to write my own trace-driver to replay some mulch-threaded 
traces on the memory hierarchy (let's say #L1D=#L1I=#L2=#threads in the 
trace). If possible, I would like to initiate several threads (say, one 
pthread per thread in the trace) to replay the trace to accelerate the 
simulation.


I am worried if the classic cache model is thread-safe. Thanks in advance.


Regards,

Chen

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

[gem5-users] X86/X64 uops

2018-05-10 Thread Ciro Santilli
I'm not sure if this helps, but if you do `gem5.opt --debug-flags=Exec` it does 
dump uops with format:

25007000: system.cpu T0 : @start_kernel: stp
25007000: system.cpu T0 : @start_kernel.0  :   addxi_uop   ureg0, sp,
#-112 : IntAlu :  D=0xff8008913f90
25007500: system.cpu T0 : @start_kernel.1  :   strxi_uop   x29,
[ureg0] : MemWrite :  D=0x A=0xff8008913f90
25008000: system.cpu T0 : @start_kernel.2  :   strxi_uop   x30,
[ureg0, #8] : MemWrite :  D=0x A=0xff8008913f98
25008500: system.cpu T0 : @start_kernel.3  :   addxi_uop   sp, ureg0,
#0 : IntAlu :  D=0xff8008913f90

(here one instruction followed by its 4 uops).

What do you want to achieve?
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

[gem5-users] X86/X64 uops

2018-05-10 Thread niranjan soundararajan
Hey folks

Does GEM5 provide the x86/x64 uops for complex instructions? Is this
information available for the pipeline to work on uops?

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

Re: [gem5-users] chroot failing on full system files

2018-05-10 Thread Oscar Rosell

Hi,

Not sure what X86 image you're using. The apt-get command is present 
only in Linux distributions from the Debian family (Ubuntu and Debian 
are the most popular). If it doesn't exist it most probably means that 
the image you are using is not one of those (Fedora/CentOS use yum).


As an alternative, note that there is people that already tried to get a 
Gem5/PARSEC/X86 image. A Google search got me to this (kinda old) GitHub:


https://github.com/anthonygego/gem5-parsec3

So you can try to follow the instructions above or contact the author 
(which I am not). IMPORTANT WARNING: I haven't checked what the code in 
the GitHub above does. Running random code from the Internet may end up 
erasing your disk, compromising your system or even worse!


Regards,

    Oscar

On 09/05/18 21:48, Raman Arora wrote:

Hi Oscar,

Thanks a ton for your help, I tried downloading an x86 image and the 
chroot worked on it :D.


But after i did apt-get update i got a message bash: apt-get command 
not found. Any solutions to this?


I already executed the command echo "nameserver 8.8.8.8" > 
/etc/resolv.conf once i successfully did a chroot on my mount point .


Thanks and Regards,

Raman

On Wed, May 9, 2018 at 11:25 AM, Oscar Rosell 
> wrote:


Hi,

Yeah, it seems that's the ALPHA image. Sorry, but I don't know
where the X86 PARSEC image is, if it exists. Maybe somebody else
has a link to it. In any case, I suppose you can use any base X86
image, chroot to it and download and install PARSEC there (you may
probably need to resize the image though, if you use a preexisting
image).

Regards,

    Oscar


On 09/05/18 17:11, Raman Arora wrote:

Hi Oscar,

Thank you for your prompt reply,I executed the commands that you
asked. Here is the output.

ram@ram-VirtualBox:/mnt$ ls /bin/
*bash * cp fusermount  login   networkctl ping6  
stty umount
bunzip2   cpio   getfacl loginctl   
nisdomainname plymouth su   uname
busybox   dash   grep lowntfs-3g  ntfs-3g  
ps sync uncompress
bzcat date   gunzip ls  ntfs-3g.probe
pwd systemctl unicode_start
bzcmp dd gzexe lsblk   ntfs-3g.secaudit 
rbash systemd   vdir
bzdiff    df gzip lsmod   ntfs-3g.usermap  
readlink systemd-ask-password   wdctl
bzegrep   dir    hciconfig mkdir  
ntfscat   red systemd-escape   which
bzexe dmesg  hostname mknod  
ntfscluster   rm systemd-hwdb whiptail
bzfgrep   dnsdomainname  ip mktemp  ntfscmp  
rmdir systemd-inhibit ypdomainname
bzgrep    domainname journalctl more   
ntfsfallocate rnano systemd-machine-id-setup   zcat
bzip2 dumpkeys   kbd_mode mount  
ntfsfix   run-parts systemd-notify   zcmp
bzip2recover  echo   kill mountpoint  ntfsinfo 
sed systemd-tmpfiles   zdiff
bzless    ed kmod mt  ntfsls   
setfacl systemd-tty-ask-password-agent  zegrep
bzmore    efibootmgr less mt-gnu  ntfsmove 
setfont tailf   zfgrep
cat   egrep  lessecho mv 
ntfstruncate  setupcon tar   zforce
chacl false  lessfile nano   
ntfswipe  sh tempfile   zgrep
chgrp fgconsole  lesskey nc 
open  sh.distrib touch   zless
chmod fgrep  lesspipe nc.openbsd 
openvt    sleep true   zmore
chown findmnt    ln netcat  pidof ss
udevadm   znew
chvt  fuser  loadkeys netstat
ping  static-sh ulockmgr_server
ram@ram-VirtualBox:/mnt$ file bin/bash
bin/bash: ELF 64-bit LSB executable, Alpha (unofficial), version
1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for
GNU/Linux 2.4.3, stripped.

The bash executable is available it seems, as i have highlighted.

From the output, it seems that i have downloaded the wrong
pre-compiled disk image for X86. Could you please let me know of
any link I can download the correct one?

Thank You for helping me out. :)

Raman

On Wed, May 9, 2018 at 10:44 AM, Oscar Rosell
> wrote:

Hi,

Sorry, I'm not sure which exact image you're using at this
point. First check that the binary exists inside the image.
If you have mounted it you should be able to check it (you
will need sudo, I think) just by doing "ls /mnt_point/bin/"
and checking if bash is there. If it's present, do a file
command on it "file /mnt_point/bin/bash" and send the output.

Regards,