Re: [gem5-users] Unable to run script upon restoring from checkpoint

2018-08-03 Thread Woo L . L .
Hello there,

Problem solved. I did not set Cpu-Clock and Caches when I checkpoint the 
system, hence that’s why it throw the checkpoint in array.
Now I can successfully load the new script file and got the output needed.
Thanks.

Regards,
Elena

From: gem5-users 
mailto:gem5-users-boun...@gem5.org>> on behalf of 
Elena Woo mailto:l.l@soton.ac.uk>>
Reply-To: gem5 users mailing list 
mailto:gem5-users@gem5.org>>
Date: Friday, 3 August 2018 at 9:52 PM
To: TungHoang_GMail 
mailto:hoangthanht...@gmail.com>>, gem5 users mailing 
list mailto:gem5-users@gem5.org>>
Subject: Re: [gem5-users] Unable to run script upon restoring from checkpoint

Thanks for the steps outlined. I have no issue with Step 1, because that’s 
exactly what I did. I just have problem with Step 2 because although it can 
restore from the checkpoint, it can’t read the new script file.

Best regards,
Elena

From: TungHoang_GMail 
mailto:hoangthanht...@gmail.com>>
Date: Friday, 3 August 2018 at 9:27 PM
To: Elena Woo mailto:l.l@soton.ac.uk>>, gem5 users 
mailing list mailto:gem5-users@gem5.org>>
Subject: Re: [gem5-users] Unable to run script upon restoring from checkpoint

Oh, I was misunderstand your flow but here is what I am using and it works well

1) Create checkpoint using hack_back script, REMEMBER: not turning on m5_term 
when checkpoint is created because it can take terminal control which is 
supposed to release to your simulation when restoring. In the other word, let 
checkpoing is created without any interaction.

2) Restore from checkpoint as usual.

I though you may have problem with the step 1

Best,
/T

On 08/03/2018 01:14 PM, Woo L.L. wrote:
Hi,

I don’t think the script has any problem because as you can see from the result 
below, without any checkpointing, the program was able to execute till the end 
after booting. So, I am pretty sure the “bash” is being supported and the 
script works fine. I just couldn’t get it to load after restoring from 
checkpoint.

 ./build/X86/gem5.opt -r -d sim_out --debug-flags=FaultInjection 
./configs/example/fs.py --script=./configs/boot/dijkstra.rcS --cpu-clock=250MHz 
—caches

Linux version 2.6.22.9 (gblack@fajita) (gcc version 4.1.2 (Gentoo 4.1.2 p1.1)) 
#12 SMP Fri Feb 27 22:10:33 PST 2009
Command line: earlyprintk=ttyS0 console=ttyS0 lpj=723 root=/dev/hda1
BIOS-provided physical RAM map:
 BIOS-e820:  - 0009fc00 (usable)
 BIOS-e820: 0009fc00 - 0010 (reserved)
 BIOS-e820: 0010 - 2000 (usable)
 BIOS-e820: 2000 - c000 (reserved)
 BIOS-e820:  - 0001 (reserved)
end_pfn_map = 1048576
kernel direct mapping tables up to 1 @ 8000-d000
DMI 2.5 present.
Zone PFN ranges:
  DMA 0 -> 4096
  DMA324096 ->  1048576
  Normal1048576 ->  1048576
early_node_map[2] active PFN ranges
0:0 ->  159
0:  256 ->   131072
Intel MultiProcessor Specification v1.4
MPTABLE: OEM ID:  MPTABLE: Product ID:  MPTABLE: APIC at: 0xFEE0
Processor #0 (Bootup-CPU)
I/O APIC #1 at 0xFEC0.
Setting APIC routing to flat
Processors: 1
Allocating PCI resources starting at c400 (gap: c000:3fff)
PERCPU: Allocating 34160 bytes of per cpu data
Built 1 zonelists.  Total pages: 127573
Kernel command line: earlyprintk=ttyS0 console=ttyS0 lpj=723 root=/dev/hda1
Initializing CPU#0
PID hash table entries: 2048 (order: 11, 16384 bytes)
time.c: Detected 250.000 MHz processor.
Console: colour dummy device 80x25
console handover: boot [earlyser0] -> real [ttyS0]
Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
Checking aperture...
Memory: 509268k/524288k available (3699k kernel code, 14464k reserved, 1767k 
data, 248k init)
Calibrating delay loop (skipped)... 3999.96 BogoMIPS preset
Mount-cache hash table entries: 256
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 1024K (64 bytes/line)
using mwait in idle threads.
SMP alternatives: switching to UP code
Freeing SMP alternatives: 34k freed
Using local APIC timer interrupts.
result 976564
Detected 0.976 MHz APIC timer.
Brought up 1 CPUs
NET: Registered protocol family 16
PCI: Using configuration type 1
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Probing PCI hardware
PCI->APIC IRQ transform: :00:04.0[A] -> IRQ 16
PCI-GART: No AMD northbridge found.
Time: tsc clocksource has been installed.
NET: Registered protocol family 2
IP route cache hash table entries: 16384 (order: 5, 131072 bytes)
TCP established hash table entries: 65536 (order: 8, 1572864 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 65536 bind 65536)
TCP reno registered
Total HugeTLB memory allocated, 0
Installing knfsd (copyright (C) 1996 

Re: [gem5-users] Unable to run script upon restoring from checkpoint

2018-08-03 Thread Woo L . L .
Thanks for the steps outlined. I have no issue with Step 1, because that’s 
exactly what I did. I just have problem with Step 2 because although it can 
restore from the checkpoint, it can’t read the new script file.

Best regards,
Elena

From: TungHoang_GMail 
mailto:hoangthanht...@gmail.com>>
Date: Friday, 3 August 2018 at 9:27 PM
To: Elena Woo mailto:l.l@soton.ac.uk>>, gem5 users 
mailing list mailto:gem5-users@gem5.org>>
Subject: Re: [gem5-users] Unable to run script upon restoring from checkpoint

Oh, I was misunderstand your flow but here is what I am using and it works well

1) Create checkpoint using hack_back script, REMEMBER: not turning on m5_term 
when checkpoint is created because it can take terminal control which is 
supposed to release to your simulation when restoring. In the other word, let 
checkpoing is created without any interaction.

2) Restore from checkpoint as usual.

I though you may have problem with the step 1

Best,
/T

On 08/03/2018 01:14 PM, Woo L.L. wrote:
Hi,

I don’t think the script has any problem because as you can see from the result 
below, without any checkpointing, the program was able to execute till the end 
after booting. So, I am pretty sure the “bash” is being supported and the 
script works fine. I just couldn’t get it to load after restoring from 
checkpoint.

 ./build/X86/gem5.opt -r -d sim_out --debug-flags=FaultInjection 
./configs/example/fs.py --script=./configs/boot/dijkstra.rcS --cpu-clock=250MHz 
—caches

Linux version 2.6.22.9 (gblack@fajita) (gcc version 4.1.2 (Gentoo 4.1.2 p1.1)) 
#12 SMP Fri Feb 27 22:10:33 PST 2009
Command line: earlyprintk=ttyS0 console=ttyS0 lpj=723 root=/dev/hda1
BIOS-provided physical RAM map:
 BIOS-e820:  - 0009fc00 (usable)
 BIOS-e820: 0009fc00 - 0010 (reserved)
 BIOS-e820: 0010 - 2000 (usable)
 BIOS-e820: 2000 - c000 (reserved)
 BIOS-e820:  - 0001 (reserved)
end_pfn_map = 1048576
kernel direct mapping tables up to 1 @ 8000-d000
DMI 2.5 present.
Zone PFN ranges:
  DMA 0 -> 4096
  DMA324096 ->  1048576
  Normal1048576 ->  1048576
early_node_map[2] active PFN ranges
0:0 ->  159
0:  256 ->   131072
Intel MultiProcessor Specification v1.4
MPTABLE: OEM ID:  MPTABLE: Product ID:  MPTABLE: APIC at: 0xFEE0
Processor #0 (Bootup-CPU)
I/O APIC #1 at 0xFEC0.
Setting APIC routing to flat
Processors: 1
Allocating PCI resources starting at c400 (gap: c000:3fff)
PERCPU: Allocating 34160 bytes of per cpu data
Built 1 zonelists.  Total pages: 127573
Kernel command line: earlyprintk=ttyS0 console=ttyS0 lpj=723 root=/dev/hda1
Initializing CPU#0
PID hash table entries: 2048 (order: 11, 16384 bytes)
time.c: Detected 250.000 MHz processor.
Console: colour dummy device 80x25
console handover: boot [earlyser0] -> real [ttyS0]
Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
Checking aperture...
Memory: 509268k/524288k available (3699k kernel code, 14464k reserved, 1767k 
data, 248k init)
Calibrating delay loop (skipped)... 3999.96 BogoMIPS preset
Mount-cache hash table entries: 256
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 1024K (64 bytes/line)
using mwait in idle threads.
SMP alternatives: switching to UP code
Freeing SMP alternatives: 34k freed
Using local APIC timer interrupts.
result 976564
Detected 0.976 MHz APIC timer.
Brought up 1 CPUs
NET: Registered protocol family 16
PCI: Using configuration type 1
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Probing PCI hardware
PCI->APIC IRQ transform: :00:04.0[A] -> IRQ 16
PCI-GART: No AMD northbridge found.
Time: tsc clocksource has been installed.
NET: Registered protocol family 2
IP route cache hash table entries: 16384 (order: 5, 131072 bytes)
TCP established hash table entries: 65536 (order: 8, 1572864 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 65536 bind 65536)
TCP reno registered
Total HugeTLB memory allocated, 0
Installing knfsd (copyright (C) 1996 
o...@monad.swb.de).
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Real Time Clock Driver v1.12ac
Linux agpgart interface v0.102 (c) Dave Jones
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 8250
floppy0: no floppy controllers found
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: module loaded
Intel(R) PRO/1000 Network Driver - version 7.3.20-k2
Copyright (c) 1999-2006 Intel Corporation.
e100: Intel(R) PRO/100 Network Driver, 3.5.17-k4-NAPI
e100: Copyright(c) 

Re: [gem5-users] Unable to run script upon restoring from checkpoint

2018-08-03 Thread Woo L . L .
Hi,

I don’t think the script has any problem because as you can see from the result 
below, without any checkpointing, the program was able to execute till the end 
after booting. So, I am pretty sure the “bash” is being supported and the 
script works fine. I just couldn’t get it to load after restoring from 
checkpoint.

 ./build/X86/gem5.opt -r -d sim_out --debug-flags=FaultInjection 
./configs/example/fs.py --script=./configs/boot/dijkstra.rcS --cpu-clock=250MHz 
—caches

Linux version 2.6.22.9 (gblack@fajita) (gcc version 4.1.2 (Gentoo 4.1.2 p1.1)) 
#12 SMP Fri Feb 27 22:10:33 PST 2009
Command line: earlyprintk=ttyS0 console=ttyS0 lpj=723 root=/dev/hda1
BIOS-provided physical RAM map:
 BIOS-e820:  - 0009fc00 (usable)
 BIOS-e820: 0009fc00 - 0010 (reserved)
 BIOS-e820: 0010 - 2000 (usable)
 BIOS-e820: 2000 - c000 (reserved)
 BIOS-e820:  - 0001 (reserved)
end_pfn_map = 1048576
kernel direct mapping tables up to 1 @ 8000-d000
DMI 2.5 present.
Zone PFN ranges:
  DMA 0 -> 4096
  DMA324096 ->  1048576
  Normal1048576 ->  1048576
early_node_map[2] active PFN ranges
0:0 ->  159
0:  256 ->   131072
Intel MultiProcessor Specification v1.4
MPTABLE: OEM ID:  MPTABLE: Product ID:  MPTABLE: APIC at: 0xFEE0
Processor #0 (Bootup-CPU)
I/O APIC #1 at 0xFEC0.
Setting APIC routing to flat
Processors: 1
Allocating PCI resources starting at c400 (gap: c000:3fff)
PERCPU: Allocating 34160 bytes of per cpu data
Built 1 zonelists.  Total pages: 127573
Kernel command line: earlyprintk=ttyS0 console=ttyS0 lpj=723 root=/dev/hda1
Initializing CPU#0
PID hash table entries: 2048 (order: 11, 16384 bytes)
time.c: Detected 250.000 MHz processor.
Console: colour dummy device 80x25
console handover: boot [earlyser0] -> real [ttyS0]
Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
Checking aperture...
Memory: 509268k/524288k available (3699k kernel code, 14464k reserved, 1767k 
data, 248k init)
Calibrating delay loop (skipped)... 3999.96 BogoMIPS preset
Mount-cache hash table entries: 256
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 1024K (64 bytes/line)
using mwait in idle threads.
SMP alternatives: switching to UP code
Freeing SMP alternatives: 34k freed
Using local APIC timer interrupts.
result 976564
Detected 0.976 MHz APIC timer.
Brought up 1 CPUs
NET: Registered protocol family 16
PCI: Using configuration type 1
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Probing PCI hardware
PCI->APIC IRQ transform: :00:04.0[A] -> IRQ 16
PCI-GART: No AMD northbridge found.
Time: tsc clocksource has been installed.
NET: Registered protocol family 2
IP route cache hash table entries: 16384 (order: 5, 131072 bytes)
TCP established hash table entries: 65536 (order: 8, 1572864 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 65536 bind 65536)
TCP reno registered
Total HugeTLB memory allocated, 0
Installing knfsd (copyright (C) 1996 o...@monad.swb.de).
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Real Time Clock Driver v1.12ac
Linux agpgart interface v0.102 (c) Dave Jones
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 8250
floppy0: no floppy controllers found
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: module loaded
Intel(R) PRO/1000 Network Driver - version 7.3.20-k2
Copyright (c) 1999-2006 Intel Corporation.
e100: Intel(R) PRO/100 Network Driver, 3.5.17-k4-NAPI
e100: Copyright(c) 1999-2006 Intel Corporation
forcedeth.c: Reverse Engineered nForce ethernet driver. Version 0.60.
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky 
netconsole: not configured, aborting
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PIIX4: IDE controller at PCI slot :00:04.0
PCI: Enabling device :00:04.0 ( -> 0001)
PIIX4: chipset revision 0
PIIX4: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0x1000-0x1007, BIOS settings: hda:DMA, hdb:DMA
ide1: BM-DMA at 0x1008-0x100f, BIOS settings: hdc:DMA, hdd:DMA
hda: M5 IDE Disk, ATA DISK drive
hdb: M5 IDE Disk, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hda: max request size: 128KiB
hda: 4194288 sectors (2147 MB), CHS=4161/16/63, UDMA(33)
 hda: hda1
hdb: max request size: 128KiB
hdb: 4177920 sectors (2139 MB), CHS=4144/16/63, UDMA(33)
 hdb: unknown partition table
megaraid cmm: 2.20.2.7 (Release Date: Sun Jul 16 00:01:03 EST 

Re: [gem5-users] Access stats during runtime

2018-05-06 Thread Woo L . L .
Yes, that was the intention - to access the host file from a Linux guest. 

I will study the Workload Automation more in depth as well as look into m5 
readfile.

Another way which I was thinking if it is possible to just get the required 
stats printed on the terminal, and send those information to a named pipe to be 
read by another terminal. Can I change the code to output certain stats on the 
terminal?

Thanks and regards,
Elena

> On 7 May 2018, at 12:23 AM, Ciro Santilli  wrote:
> 
> Do you want to access a host file (stats.txt) from a Linux guest?
> 
> If that is the case, can you either use `m5 readfile` (maybe not since
> taken by your rc script, and only works for a single file at a time)
> or http://gem5.org/WA-gem5 (broken pending trivial patch when I last
> checked)?
> 
>> On Sun, May 6, 2018 at 11:43 PM, Woo L.L.  wrote:
>> Hi Ciro,
>> 
>> It is the same issue, but there was no answer so I decided to ask a subset
>> of the question again in a different way.
>> 
>> I am interested in the CPU stats - system.cpu.committedInsts,
>> system.cpu.dcache.overall_misses, system.cpu.icache.overall_misses
>> These stats create a different profile for every different benchmark that
>> I run, and if an injected fault create an error which manifests as a
>> failure, the profile deviates. The idea is to have another core
>> functioning as a monitor and monitor these stats during runtime so that if
>> the stats value starts to deviate, the 2nd core can provide an interrupt
>> signal to the main core to halt the execution.
>> 
>> This is what I want to achieve in a general way. But I am stuck at
>> figuring how to access the stats file as it sits outside the disk image.
>> Thanks.
>> 
>> Regards
>> Elena
>> 
>> On 06/05/2018, 11:05 PM, "gem5-users on behalf of Ciro Santilli"
>>  wrote:
>> 
>>> Hi Elena, is this different from:
>>> http://m5sim.org/cgi-bin/mailman/private/gem5-users/2018-May/031456.html
>>> ?
>>> 
>>> Please provide more details: what do you want to achieve? What stat do
>>> you want to read and why?
>>> 
 On Sun, May 6, 2018 at 10:31 PM, Woo L.L.  wrote:
 Hi all,
 
 I would like to access the stats file during runtime. But I am not sure
 how
 to do it. I am running x86 architecture in FS mode. I have been
 cracking my
 head the last 3 weeks and really appreciate if someone can provide some
 guidance.
 Thanks.
 
 Regards,
 Elena
 
 ___
 gem5-users mailing list
 gem5-users@gem5.org
 http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>> ___
>>> gem5-users mailing list
>>> gem5-users@gem5.org
>>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>> 
>> ___
>> gem5-users mailing list
>> gem5-users@gem5.org
>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
> ___
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] Access stats during runtime

2018-05-06 Thread Woo L . L .
Hi Ciro,

It is the same issue, but there was no answer so I decided to ask a subset
of the question again in a different way.

I am interested in the CPU stats - system.cpu.committedInsts,
system.cpu.dcache.overall_misses, system.cpu.icache.overall_misses
These stats create a different profile for every different benchmark that
I run, and if an injected fault create an error which manifests as a
failure, the profile deviates. The idea is to have another core
functioning as a monitor and monitor these stats during runtime so that if
the stats value starts to deviate, the 2nd core can provide an interrupt
signal to the main core to halt the execution.

This is what I want to achieve in a general way. But I am stuck at
figuring how to access the stats file as it sits outside the disk image.
Thanks.

Regards
Elena

On 06/05/2018, 11:05 PM, "gem5-users on behalf of Ciro Santilli"
 wrote:

>Hi Elena, is this different from:
>http://m5sim.org/cgi-bin/mailman/private/gem5-users/2018-May/031456.html
>?
>
>Please provide more details: what do you want to achieve? What stat do
>you want to read and why?
>
>On Sun, May 6, 2018 at 10:31 PM, Woo L.L.  wrote:
>> Hi all,
>>
>> I would like to access the stats file during runtime. But I am not sure
>>how
>> to do it. I am running x86 architecture in FS mode. I have been
>>cracking my
>> head the last 3 weeks and really appreciate if someone can provide some
>> guidance.
>> Thanks.
>>
>> Regards,
>> Elena
>>
>> ___
>> 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] Accessing Stats file from program running in FS mode

2018-05-01 Thread Woo L . L .
Hi all,

I am trying to set up a multicore environment where I have 1 core monitoring 
the stats file of another core. In order to do that, the monitoring core needs 
to access the stats file during simulation in FS mode. I have tried to open and 
read the stats file in the usual way (using a file pointer) but it was unable 
to do so. I understand the program was running from the disk image and hence, 
there is no way it could access files located outside the disk image. Is there 
any other way to obtain the stats from a running program?

I have also tried running two different programs where I set –n 2, but while it 
was able to run one program, there was an error ‘Permission denied’ when the 
other program was suppose to run. This was my command:

elena@elena-VirtualBox:~/RTS/gemfi/Sim$ ./build/X86/gem5.opt -r -d sim_out 
--debug-flags=FaultInjection ./configs/example/fs.py 
--script=./configs/boot/fft.rcS;./configs/boot/monitor.rcS -n 2 --caches 
--fi-in=input

Appreciate if anyone can tell me what went wrong.
Thanks.

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

Re: [gem5-users] Simulate 2 Processors

2018-04-17 Thread Woo L . L .
Hi,

Looks like I am able to run 2 copies of gem5 after all in the same host.
Now I just need to configure my ‘2nd’ copy of gem5 for monitoring.
Thank you.

Thanks and Regards,

Elena Woo Lai Leng
Faculty of Electronic and Computer Science (ECS)
University of Southampton

Email: llw1...@soton.ac.uk (or l.l@soton.ac.uk)
Website: www.ecs.soton.ac.uk


From: gem5-users 
> on behalf of 
Elena Woo >
Reply-To: gem5 users mailing list 
>
Date: Tuesday, 17 April 2018 at 7:12 PM
To: gem5 users mailing list >
Subject: Re: [gem5-users] Simulate 2 Processors


This sender failed our fraud detection checks and may not be who they appear to 
be. Learn about spoofing
Feedback
Hi Jason,

I still don’t quite understand you. Please correct me if I am wrong - I assumed 
the host you meant the Ubuntu VM that I have installed. If I have one instance 
of gem5 running, how to I get another instance of gem5 running? I am trying to 
simulate a processor watching another processor in the same hardware, hence 
dist-gem5 would not really be applicable for me.

Thanks and regards,
Elena

On 17 Apr 2018, at 6:17 PM, Jason Lowe-Power 
> wrote:

Hi Elena,

If you want to simulate two processors in the same system, you must have a 
single gem5 instance (process) on the host. dist-gem5 is useful if you want to 
simulate two different systems communicating over ethernet.

Jason

---
Jason Lowe-Power
Assistant Professor, Computer Science Department
University of California, Davis
3049 Kemper Hall
https://faculty.engineering.ucdavis.edu/lowepower/


On Tue, Apr 17, 2018 at 5:26 AM Woo L.L. 
> wrote:
Hi all,

I would like to simulate 2 processors - the idea is to have a main processor, 
which is an x86 gem5 running a benchmark and another processor monitoring the 
main processor.

My question is, is it possible to have two copies of gem5 running on the same 
Ubuntu system or do I need to use dist-gem5 or COSSIM? I am not simulating a 
heterogeneous system, I just need to simulate to processors (not 2 cores, as it 
still resides in one processor).

Appreciate if anyone can give me some pointers.

Thanks and Regards,

Elena Woo Lai Leng
Faculty of Electronic and Computer Science (ECS)
University of Southampton

Email: llw1...@soton.ac.uk
Website: www.ecs.soton.ac.uk

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

Re: [gem5-users] Simulate 2 Processors

2018-04-17 Thread Woo L . L .
Hi Jason,

I still don’t quite understand you. Please correct me if I am wrong - I assumed 
the host you meant the Ubuntu VM that I have installed. If I have one instance 
of gem5 running, how to I get another instance of gem5 running? I am trying to 
simulate a processor watching another processor in the same hardware, hence 
dist-gem5 would not really be applicable for me.

Thanks and regards,
Elena

On 17 Apr 2018, at 6:17 PM, Jason Lowe-Power 
> wrote:

Hi Elena,

If you want to simulate two processors in the same system, you must have a 
single gem5 instance (process) on the host. dist-gem5 is useful if you want to 
simulate two different systems communicating over ethernet.

Jason

---
Jason Lowe-Power
Assistant Professor, Computer Science Department
University of California, Davis
3049 Kemper Hall
https://faculty.engineering.ucdavis.edu/lowepower/


On Tue, Apr 17, 2018 at 5:26 AM Woo L.L. 
> wrote:
Hi all,

I would like to simulate 2 processors - the idea is to have a main processor, 
which is an x86 gem5 running a benchmark and another processor monitoring the 
main processor.

My question is, is it possible to have two copies of gem5 running on the same 
Ubuntu system or do I need to use dist-gem5 or COSSIM? I am not simulating a 
heterogeneous system, I just need to simulate to processors (not 2 cores, as it 
still resides in one processor).

Appreciate if anyone can give me some pointers.

Thanks and Regards,

Elena Woo Lai Leng
Faculty of Electronic and Computer Science (ECS)
University of Southampton

Email: llw1...@soton.ac.uk
Website: www.ecs.soton.ac.uk

___
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] Simulate 2 Processors

2018-04-17 Thread Woo L . L .
Hi all,

I would like to simulate 2 processors - the idea is to have a main processor, 
which is an x86 gem5 running a benchmark and another processor monitoring the 
main processor.

My question is, is it possible to have two copies of gem5 running on the same 
Ubuntu system or do I need to use dist-gem5 or COSSIM? I am not simulating a 
heterogeneous system, I just need to simulate to processors (not 2 cores, as it 
still resides in one processor).

Appreciate if anyone can give me some pointers.

Thanks and Regards,

Elena Woo Lai Leng
Faculty of Electronic and Computer Science (ECS)
University of Southampton

Email: llw1...@soton.ac.uk
Website: www.ecs.soton.ac.uk

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

[gem5-users] Simulate 2 Processors

2018-04-17 Thread Woo L . L .
Hi all,

I would like to simulate 2 processors - the idea is to have a main processor, 
which is an x86 gem5 running a benchmark and another processor monitoring the 
main processor. 

My question is, is it possible to have two copies of gem5 running on the same 
Ubuntu system or do I need to use dist-gem5 or COSSIM? I am not simulating a 
heterogeneous system, I just need to simulate to processors (not 2 cores, as it 
still resides in one processor). 

Appreciate if anyone can give me some pointers. 

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

Re: [gem5-users] Compiled Splash2x benchmarks segfault under FS with X86

2017-03-03 Thread Woo L . L .
Hi Wei Shu,

The issue with Glibc was also something I experienced before. The benchmark was 
able to run fine outside Gem5, but in Gem5 it produces that error. Someone 
thought me to recompile the benchmark in the image kernel loaded by Gem5. That 
step involves chroot to the image kernel and then recompile it from there. This 
is because your executable is running using same Linux kernel. Right now, 
assuming you are running on Ubuntu, your Linux kernel is 4.++ but Gem5 kernel 
is running on kernel version 2.++.

I believe once you solve the Glibc issue, the seg fault shouldn't appear 
anymore.

Elena Woo Lai Leng

> On 3 Mar 2017, at 4:45 PM, Wei Shu  wrote:
> 
> Hi Elena,
> 
> Thank you for your quick response. It is a great help. I was surprised that 
> fmm, ocean_cp and fft, radix can pass through test after I compiled them with 
> dynamic linking. Initially I was thinking that I should make them statically 
> linked. 
> There are several of them still could not work. Below you can find the bug 
> report.
> 
> Anyone more experienced may know the solution. 
> 
> exeuting ./ocean_ncp -n258 -p1 -e1e-07 -r2 -t28800
> Ocean simulation with W-cycle multigrid solver
>Processors : 1
>Grid size  : 258 x 258
>Grid resolution (meters)   : 2.00
>Time between relaxations (seconds) : 28800
>Error tolerance: 1e-07
> 
> 
> ocean_ncp-dynam[953]: segfault at 0 ip 00401359 sp 7fffe6df08a0 
> error 6 in ocean_ncp-dynamic[40+2b000]
> Segmentation fault
> 
> 
> exeuting ./volrend 1 head-scaleddown4 4
> Both computing normals, opacities and octree as well as rendering: starting 
> from .den file
> NOTE: Preprocessing (computing normals, opacities and octree) is done 
> serially by only one processor
> Gouraud shading from lookup tables used
>1 processes
>4x4 image block size
>doing nonadaptive rendering
>using precomputed normals and opacities in separate array
>using opacity octree
>starting angle at (90.0, -36.0, 0.0) with rotation step of 3
> rotating 4 steps in each of the three Cartesian directions
> 
> *Entering init_decomposition with num_nodes = 1
> *Exited init_decomposition with num_nodes = 1
> volrend-dynamic[956]: segfault at 4effa204 ip 7fa3fe37dad0 sp 
> 7fff06cfb858 error 4 in libc-2.6.1.so[7fa3fe30a000+136000]
> Segmentation fault
> 
> exeuting ./water_nsquared < water_nsquared_input_1
> ./water_nsquared-dynamic: /lib/libc.so.6: version `GLIBC_2.7' not found 
> (required by ./water_nsquared-dynamic)
> 
> 
> exeuting .water_spatial 1 < water_spatial_input_1
> ./water_spatial-dynamic: /lib/libc.so.6: version `GLIBC_2.7' not found 
> (required by ./water_spatial-dynamic)
> 
> 
> exeuting ./lu_cb -p1 -n512 -b16
> ./lu_cb-dynamic: /lib/libc.so.6: version `GLIBC_2.14' not found (required by 
> ./lu_cb-dynamic)
> 
> 
> exeuting ./lu_ncb -p1 -n512 -b16
> ./lu_ncb-dynamic: /lib/libc.so.6: version `GLIBC_2.14' not found (required by 
> ./lu_ncb-dynamic)
> 
> 
> exeuting ./radiosity -bf 1.5e-1 -batch -room -p 1
> ./raidosity-dynamic: /lib/libc.so.6: version `GLIBC_2.7' not found (required 
> by ./raidosity-dynamic)
> 
> 
> exeuting ./cholesky < cholesky_tk14.O
> ./cholesky-dynamic: /lib/libc.so.6: version `GLIBC_2.14' not found (required 
> by ./cholesky-dynamic)
> ./cholesky-dynamic: /lib/libc.so.6: version `GLIBC_2.7' not found (required 
> by ./cholesky-dynamic)
> 
> exeuting ./raytrace -s -p1 -a4 teapot.env
> ./raytrace-dynamic: /lib/libc.so.6: version `GLIBC_2.7' not found (required 
> by ./raytrace-dynamic)
> 
> exeuting barnes 1 < barnes_input_test
> ./barnes-dynamic: /lib/libc.so.6: version `GLIBC_2.14' not found (required by 
> ./barnes-dynamic)
> ./barnes-dynamic: /lib/libc.so.6: version `GLIBC_2.7' not found (required by 
> ./barnes-dynamic)
> 
> 
> 
> The unfounded GLIBC problem may due to the compilation with dynamic linking, 
> as my native GLIBC version is higher than this kernel.
> 
> Thanks,
> Wei
> 
> - Original Message -
> From: "Woo L.L." 
> To: "gem5 users mailing list" 
> Sent: Thursday, March 2, 2017 6:38:36 PM
> Subject: Re: [gem5-users] Compiled Splash2x benchmarks segfault under FS with 
> X86
> 
> Hi Wei Shu,
> 
> I had similar problems when I tried running benchmarks from MiBench in FS 
> mode using X86 architecture. The problem I think was because all the 
> benchmarks were compiled statically. Once I recompiled those benchmarks 
> dynamically, it solved the segmentation fault problem. 
> 
> Perhaps you can try to recompile your benchmarks dynamically. 
> Thanks.
> 
> Regards,
> Elena Woo
> 
>> On 2 Mar 2017, at 9:53 PM, Wei Shu  wrote:
>> 
>> Hi all,
>> 
>> I compiled all the benchmarks of Splash2x statically from the PARSEC 3.0 
>> package. All of them can be run successfully on my native X86 machine. 
>> However, when I run these 

Re: [gem5-users] Compiled Splash2x benchmarks segfault under FS with X86

2017-03-02 Thread Woo L . L .
Hi Wei Shu,

I had similar problems when I tried running benchmarks from MiBench in FS mode 
using X86 architecture. The problem I think was because all the benchmarks were 
compiled statically. Once I recompiled those benchmarks dynamically, it solved 
the segmentation fault problem. 

Perhaps you can try to recompile your benchmarks dynamically. 
Thanks.

Regards,
Elena Woo

> On 2 Mar 2017, at 9:53 PM, Wei Shu  wrote:
> 
> Hi all,
> 
> I compiled all the benchmarks of Splash2x statically from the PARSEC 3.0 
> package. All of them can be run successfully on my native X86 machine. 
> However, when I run these binaries in gem5 (built with X86 ISA, and run with 
> FS.py with single core either with or without caches), I see all of the 
> benchmarks have segfault:
> 
> exeuting barnes 1 < barnes_input_test
> barnes[952]: segfault at 4d218fe8 ip 00400ec4 sp 7fff4d218ff0 
> error 6 in barnes[40+116000]
> Segmentation fault
> 
> exeuting ./fmm 1 < fmm_input_test1
> fmm[953]: segfault at 2caf38c8 ip 00400c14 sp 7fff2caf38d0 error 
> 6 in fmm[40+13]
> Segmentation fault
> 
> exeuting ./ocean_cp -n258 -p1 -e1e-07 -r2 -t28800
> ocean_cp[954]: segfault at 24cafa38 ip 00402084 sp 7fff24cafa40 
> error 6 in ocean_cp[40+161000]
> Segmentation fault
> 
> exeuting ./ocean_ncp -n258 -p1 -e1e-07 -r2 -t28800
> ocean_ncp[955]: segfault at 86e6bbf8 ip 00402454 sp 7fff86e6bc00 
> error 6 in ocean_ncp[40+146000]
> Segmentation fault
> 
> exeuting ./radiosity -bf 1.5e-1 -batch -room -p 1
> radiosity[956]: segfault at 8f72a4b8 ip 00401614 sp 7fff8f72a4c0 
> error 6 in radiosity[40+102000]
> Segmentation fault
> 
> exeuting ./raytrace -s -p1 -a4 teapot.env
> raytrace[957]: segfault at 4f8ef698 ip 004010d4 sp 7fff4f8ef6a0 
> error 6 in raytrace[40+13e000]
> Segmentation fault
> 
> exeuting ./volrend 1 head-scaleddown4 4
> volrend[958]: segfault at c4797548 ip 00400bc4 sp 7fffc4797550 
> error 6 in volrend[40+12f000]
> Segmentation fault
> 
> exeuting ./water_nsquared < water_nsquared_input_1
> water_nsquared[959]: segfault at e6defbc8 ip 00401434 sp 
> 7fffe6defbd0 error 6 in water_nsquared[40+12e000]
> Segmentation fault
> 
> exeuting .water_spatial 1 < water_spatial_input_1
> water_spatial[960]: segfault at 4bc8ea58 ip 00401d44 sp 
> 7fff4bc8ea60 error 6 in water_spatial[40+12e000]
> Segmentation fault
> 
> exeuting ./cholesky < cholesky_tk14.O
> /tmp/script: line 21: can't open tk14.O: no such file
> exeuting ./fft -m18 -p1
> 
> fft[961]: segfault at 7fe73ba8 ip 00401724 sp 7fff7fe73bb0 error 
> 6 in fft[40+f2000]
> Segmentation fault
> 
> exeuting ./lu_cb -p1 -n512 -b16
> Segmentation fault
> 
> exeuting ./lu_ncb -p1 -n512 -b16
> Segmentation fault
> 
> exeuting ./radix -p1 -r4096 -n262144 -m524288
> Segmentation fault
> 
> I searched a little bit and found that this segfault might be due to cache 
> alignment issue, and proper src modification is required:
> http://www.mail-archive.com/gem5-users@gem5.org/msg05592.html
> But overall there's no solution yet.
> 
> I am confused on how to solve this. Did I missed something when compiling? 
> Anyone solved this problem? I am using GLIC 2.24 and GCC 4.8.5.
> 
> Thanks for your help!
> 
> Wei
> ___
> 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] Error with GLIBC 2.7 while trying to run C program in FS Mode

2017-02-08 Thread Woo L . L .
Dear Ferran,

Thank you so much for all your insights. 
I managed to re-compile the benchmark after chroot to the image.
I also solved the external libraries issues and managed to run it on both Gem5 
original and the other version of Gem5. 
Thanks so much!

Regards,
Elena

-Original Message-
From: gem5-users [mailto:gem5-users-boun...@gem5.org] On Behalf Of Ferran Olid
Sent: 03 February 2017 14:26
To: gem5-users@gem5.org
Subject: Re: [gem5-users] Error with GLIBC 2.7 while trying to run C program in 
FS Mode

Hi Elena,

I'm afraid I've never used this version of gem5, but if these calls to external 
libraries are calls to the m5 functions (such as m5_exit and
so) you will need to copy some files from gem5/util/m5 to the chroot as well. 
Think that, when you are inside a chroot, the shell you are using can "see" 
nothing outside the directory you have chrooted to, so anything the benchmark 
needs in order for it to be compiled has to be somewhere inside the chroot 
directory.

Cheers,
Ferran O.


On 03/02/17 14:54, Woo L.L. wrote:
> Hi Ferran,
>
> I did as per your suggestions.
> Initially, I was still facing with errors /bin/bash: /lib32/libc.so.6: 
> version 'GLIBC_2.11' not found as I am using the image that comes with GemFI 
> (Gem5 with Fault Injection).
>
> I redo the steps with the image downloaded from official gem5 web and I 
> managed to chroot to the image. So, I recompile the original benchmark and it 
> works fine. I also have a modified version of the benchmark source program 
> where it includes calling external library. But when I tried to compile it 
> with the following command:
>
> Gcc -I/home/llw1n14/RTS/runtime/gemfi/ 
> -L/home/llw1n14/RTS/runtime/gemfi/ qsort_small_fi.c -o qsort_small_fi 
> -lm5
>
> It gives me errors of being unable to read the header file (m5op.h) Do 
> I need to mount the external library as well unto the image?
>
> Thanks.
> Elena
>
> -Original Message-
> From: gem5-users [mailto:gem5-users-boun...@gem5.org] On Behalf Of 
> Ferran Olid
> Sent: 03 February 2017 12:58
> To: gem5-users@gem5.org
> Subject: Re: [gem5-users] Error with GLIBC 2.7 while trying to run C 
> program in FS Mode
>
> Hi Elena,
>
> I assume that, in order to do full system simulation you have downloaded one 
> of the images from the gem5 official web, right? What you have to do then is 
> the following:
>
> sudo su
> cd /directory/where/your/image/is/located/
>
> mkdir tmp_mnt
>
> mount -o loop,offset=32256 x86root.img ./tmp_mnt # assuming your
> image is called x86root.img
> mkdir -p ./tmp_mnt/benchmarks
> cp -r /your/benchmark/sources  ./tmp_mnt/benchmarks
>
> # Now time to mount /proc, /sys and /dev mount -o bind /proc 
> ./tmp_mnt/proc mount -o bind /dev ./tmp_mnt/dev mount -o bind /sys 
> ./tmp_mnt/sys
>
> # Chroot to the image
> chroot ./tmp_mnt
>
>
> Once you've done this, you will be chrooted to your image. Just navigate to 
> your benchmark directory (/benchmarks in the case above) and compile as you 
> would normally do. Once everything is done, use `exit` to go back to your 
> system. Remember to unmount proc, dev and sys from your image once you've 
> exited the chroot (`umount ./tmp_mnt/proc` and so on). If compilation went 
> ok, then your benchmarks should work.
>
>
> Cheers,
> Ferran O
>
>
> On 03/02/17 13:09, Woo L.L. wrote:
>> Hi Ferran,
>>
>> I have never done chroot before, so this was my first attempt. What I did 
>> was:
>> a) Install schroot and debootstrap
>> b) Creating a chroot at my mounted image
>> c) Edit the schroot.conf
>> d) Created basic installation of Ubuntu 14.04 in the chroot
>>
>> But I encountered errors while trying to create a basic installation of 
>> Ubuntu - all on GLIBC
>>  - Failure trying to run: chroot 
>> /home/llw1n14RTS/gemfi/x86/disks/mountpoint mount -t proc proc /proc
>>  -   mount: /lib32/libc.so.6: version 'GLIBC_2.7' not found 
>> (required by mount)
>>  -   mount: /lib32/libc.so.6: version 'GLIBC_2.7' not found 
>> (required by /lib/i386-linux-gnu/libblkid.so.1)
>>  -   mount: /lib32/libc.so.6: version 'GLIBC_2.7' not found 
>> (required by /lib/i386-linux-gnu/libselinux.so.1)
>>  -   mount: /lib32/libc.so.6: version 'GLIBC_2.8' not found 
>> (required by /lib/i386-linux-gnu/libblkid.so.1)
>>  -   mount: /lib32/libc.so.6: version 'GLIBC_2.8' not found 
>> (required by /lib/i386-linux-gnu/libmount.so.1)
>>  -   mount: /lib32/libc.so.6: version 'GLIBC_2.7' not found 
>> (required by /lib/i386-linux-gnu/libmount.so.1)
>>
>> I can't create a basic installation of Ubuntu in my mounted image, 
>> and I can chroot to my mounted image. All due to the issue of libc.so.6 A 
>> check in the folder /lib32, /lib64 and /lib, I found that libc.so.6 is a 
>> link to libc-2.19.so.
>> I don't understand what happen. If it is link to libc-2.19.so (which is the 
>> EGLIBC 2.19 I presume), then logically it shouldn’t have any error on GLIBC.
>>
>> Really needed help here.
>> Thanks.
>>

Re: [gem5-users] Error with GLIBC 2.7 while trying to run C program in FS Mode

2017-02-03 Thread Woo L . L .
By the way,

The original benchmark which compiled successfully, when run with Gem5 in FS 
mode, the program was aborted. The error message received was:

Build/XC86/arch/xc86/tlb.cc.351: Fault XC86ISA::TLB::translate(RequestPtr, 
ThreadContext*, BaseTLB::Translation*, BaseTLB::Mode, bool&, bool): Assertion 
entry failed

--- BEGIN LIBC BACKTRACE --- shows issues with libpthread.so.0, libc.so.6, 
libpython2.7.so.1.0

So, in conclusion, although I was able to compile it in chroot, the program was 
not able to run in Gem5. 
Any thoughts on that?

Regards,
Elena

-Original Message-
From: gem5-users [mailto:gem5-users-boun...@gem5.org] On Behalf Of Woo L.L.
Sent: 03 February 2017 13:54
To: gem5 users mailing list 
Subject: Re: [gem5-users] Error with GLIBC 2.7 while trying to run C program in 
FS Mode

Hi Ferran,

I did as per your suggestions.
Initially, I was still facing with errors /bin/bash: /lib32/libc.so.6: version 
'GLIBC_2.11' not found as I am using the image that comes with GemFI (Gem5 with 
Fault Injection).

I redo the steps with the image downloaded from official gem5 web and I managed 
to chroot to the image. So, I recompile the original benchmark and it works 
fine. I also have a modified version of the benchmark source program where it 
includes calling external library. But when I tried to compile it with the 
following command:

Gcc -I/home/llw1n14/RTS/runtime/gemfi/ -L/home/llw1n14/RTS/runtime/gemfi/ 
qsort_small_fi.c -o qsort_small_fi -lm5

It gives me errors of being unable to read the header file (m5op.h) Do I need 
to mount the external library as well unto the image?

Thanks.
Elena

-Original Message-
From: gem5-users [mailto:gem5-users-boun...@gem5.org] On Behalf Of Ferran Olid
Sent: 03 February 2017 12:58
To: gem5-users@gem5.org
Subject: Re: [gem5-users] Error with GLIBC 2.7 while trying to run C program in 
FS Mode

Hi Elena,

I assume that, in order to do full system simulation you have downloaded one of 
the images from the gem5 official web, right? What you have to do then is the 
following:

sudo su
cd /directory/where/your/image/is/located/

mkdir tmp_mnt

mount -o loop,offset=32256 x86root.img ./tmp_mnt # assuming your 
image is called x86root.img
mkdir -p ./tmp_mnt/benchmarks
cp -r /your/benchmark/sources  ./tmp_mnt/benchmarks

# Now time to mount /proc, /sys and /dev mount -o bind /proc ./tmp_mnt/proc 
mount -o bind /dev ./tmp_mnt/dev mount -o bind /sys ./tmp_mnt/sys

# Chroot to the image
chroot ./tmp_mnt


Once you've done this, you will be chrooted to your image. Just navigate to 
your benchmark directory (/benchmarks in the case above) and compile as you 
would normally do. Once everything is done, use `exit` to go back to your 
system. Remember to unmount proc, dev and sys from your image once you've 
exited the chroot (`umount ./tmp_mnt/proc` and so on). If compilation went ok, 
then your benchmarks should work.


Cheers,
Ferran O


On 03/02/17 13:09, Woo L.L. wrote:
> Hi Ferran,
>
> I have never done chroot before, so this was my first attempt. What I did was:
> a) Install schroot and debootstrap
> b) Creating a chroot at my mounted image
> c) Edit the schroot.conf
> d) Created basic installation of Ubuntu 14.04 in the chroot
>
> But I encountered errors while trying to create a basic installation of 
> Ubuntu - all on GLIBC
>   - Failure trying to run: chroot 
> /home/llw1n14RTS/gemfi/x86/disks/mountpoint mount -t proc proc /proc
>   -   mount: /lib32/libc.so.6: version 'GLIBC_2.7' not found 
> (required by mount)
>   -   mount: /lib32/libc.so.6: version 'GLIBC_2.7' not found 
> (required by /lib/i386-linux-gnu/libblkid.so.1)
>   -   mount: /lib32/libc.so.6: version 'GLIBC_2.7' not found 
> (required by /lib/i386-linux-gnu/libselinux.so.1)
>   -   mount: /lib32/libc.so.6: version 'GLIBC_2.8' not found 
> (required by /lib/i386-linux-gnu/libblkid.so.1)
>   -   mount: /lib32/libc.so.6: version 'GLIBC_2.8' not found 
> (required by /lib/i386-linux-gnu/libmount.so.1)
>   -   mount: /lib32/libc.so.6: version 'GLIBC_2.7' not found 
> (required by /lib/i386-linux-gnu/libmount.so.1)
>
> I can't create a basic installation of Ubuntu in my mounted image, and 
> I can chroot to my mounted image. All due to the issue of libc.so.6 A check 
> in the folder /lib32, /lib64 and /lib, I found that libc.so.6 is a link to 
> libc-2.19.so.
> I don't understand what happen. If it is link to libc-2.19.so (which is the 
> EGLIBC 2.19 I presume), then logically it shouldn’t have any error on GLIBC.
>
> Really needed help here.
> Thanks.
>
> Elena
>
>
> -Original Message-
> From: gem5-users [mailto:gem5-users-boun...@gem5.org] On Behalf Of 
> Ferran Olid
> Sent: 03 February 2017 10:38
> To: gem5-users@gem5.org
> Subject: Re: [gem5-users] Error with GLIBC 2.7 while trying to run C 
> program in FS Mode
>
> Hi Elena,
>
> Maybe you could try to mount the image you are using to run the 

Re: [gem5-users] Error with GLIBC 2.7 while trying to run C program in FS Mode

2017-02-03 Thread Woo L . L .
Hi Ferran,

I did as per your suggestions.
Initially, I was still facing with errors /bin/bash: /lib32/libc.so.6: version 
'GLIBC_2.11' not found as I am using the image that comes with GemFI (Gem5 with 
Fault Injection).

I redo the steps with the image downloaded from official gem5 web and I managed 
to chroot to the image. So, I recompile the original benchmark and it works 
fine. I also have a modified version of the benchmark source program where it 
includes calling external library. But when I tried to compile it with the 
following command:

Gcc -I/home/llw1n14/RTS/runtime/gemfi/ -L/home/llw1n14/RTS/runtime/gemfi/ 
qsort_small_fi.c -o qsort_small_fi -lm5

It gives me errors of being unable to read the header file (m5op.h)
Do I need to mount the external library as well unto the image?

Thanks.
Elena

-Original Message-
From: gem5-users [mailto:gem5-users-boun...@gem5.org] On Behalf Of Ferran Olid
Sent: 03 February 2017 12:58
To: gem5-users@gem5.org
Subject: Re: [gem5-users] Error with GLIBC 2.7 while trying to run C program in 
FS Mode

Hi Elena,

I assume that, in order to do full system simulation you have downloaded one of 
the images from the gem5 official web, right? What you have to do then is the 
following:

sudo su
cd /directory/where/your/image/is/located/

mkdir tmp_mnt

mount -o loop,offset=32256 x86root.img ./tmp_mnt # assuming your 
image is called x86root.img
mkdir -p ./tmp_mnt/benchmarks
cp -r /your/benchmark/sources  ./tmp_mnt/benchmarks

# Now time to mount /proc, /sys and /dev mount -o bind /proc ./tmp_mnt/proc 
mount -o bind /dev ./tmp_mnt/dev mount -o bind /sys ./tmp_mnt/sys

# Chroot to the image
chroot ./tmp_mnt


Once you've done this, you will be chrooted to your image. Just navigate to 
your benchmark directory (/benchmarks in the case above) and compile as you 
would normally do. Once everything is done, use `exit` to go back to your 
system. Remember to unmount proc, dev and sys from your image once you've 
exited the chroot (`umount ./tmp_mnt/proc` and so on). If compilation went ok, 
then your benchmarks should work.


Cheers,
Ferran O


On 03/02/17 13:09, Woo L.L. wrote:
> Hi Ferran,
>
> I have never done chroot before, so this was my first attempt. What I did was:
> a) Install schroot and debootstrap
> b) Creating a chroot at my mounted image
> c) Edit the schroot.conf
> d) Created basic installation of Ubuntu 14.04 in the chroot
>
> But I encountered errors while trying to create a basic installation of 
> Ubuntu - all on GLIBC
>   - Failure trying to run: chroot 
> /home/llw1n14RTS/gemfi/x86/disks/mountpoint mount -t proc proc /proc
>   -   mount: /lib32/libc.so.6: version 'GLIBC_2.7' not found 
> (required by mount)
>   -   mount: /lib32/libc.so.6: version 'GLIBC_2.7' not found 
> (required by /lib/i386-linux-gnu/libblkid.so.1)
>   -   mount: /lib32/libc.so.6: version 'GLIBC_2.7' not found 
> (required by /lib/i386-linux-gnu/libselinux.so.1)
>   -   mount: /lib32/libc.so.6: version 'GLIBC_2.8' not found 
> (required by /lib/i386-linux-gnu/libblkid.so.1)
>   -   mount: /lib32/libc.so.6: version 'GLIBC_2.8' not found 
> (required by /lib/i386-linux-gnu/libmount.so.1)
>   -   mount: /lib32/libc.so.6: version 'GLIBC_2.7' not found 
> (required by /lib/i386-linux-gnu/libmount.so.1)
>
> I can't create a basic installation of Ubuntu in my mounted image, and 
> I can chroot to my mounted image. All due to the issue of libc.so.6 A check 
> in the folder /lib32, /lib64 and /lib, I found that libc.so.6 is a link to 
> libc-2.19.so.
> I don't understand what happen. If it is link to libc-2.19.so (which is the 
> EGLIBC 2.19 I presume), then logically it shouldn’t have any error on GLIBC.
>
> Really needed help here.
> Thanks.
>
> Elena
>
>
> -Original Message-
> From: gem5-users [mailto:gem5-users-boun...@gem5.org] On Behalf Of 
> Ferran Olid
> Sent: 03 February 2017 10:38
> To: gem5-users@gem5.org
> Subject: Re: [gem5-users] Error with GLIBC 2.7 while trying to run C 
> program in FS Mode
>
> Hi Elena,
>
> Maybe you could try to mount the image you are using to run the experiments 
> in FS mode, chroot to it and compile these benchmarks there.
> You'll also have to mount /proc, /dev and /sys to your mounte image before 
> chrooting.
>
> Hope this helps,
> Ferran O.
>
> On 03/02/17 11:30, Woo L.L. wrote:
>> Hi Pierre-Yves,
>>
>> I did tried compiling it with the -static flag for the first few benchmarks 
>> that I have run, but I got a segmentation fault. So, I tried compiling it 
>> without the -static flag, and it works.
>>
>> But for this benchmark (QSort and Dijkstra) from MiBench, I tried to compile 
>> without the -static flag, and I got the error /lib/libc.so.6: version 
>> 'GLIBC_2.7' not found. If I compile it with the -static flag, I got 
>> segmentation error.
>>
>> So I am really stuck at this. Please help.
>> Thanks.
>>
>> Regards,
>> Elena
>>
>> -Original Message-
>> From: 

Re: [gem5-users] Error with GLIBC 2.7 while trying to run C program in FS Mode

2017-02-03 Thread Woo L . L .
Hi Ferran,

I have never done chroot before, so this was my first attempt. What I did was:
a) Install schroot and debootstrap
b) Creating a chroot at my mounted image
c) Edit the schroot.conf
d) Created basic installation of Ubuntu 14.04 in the chroot

But I encountered errors while trying to create a basic installation of Ubuntu 
- all on GLIBC
- Failure trying to run: chroot 
/home/llw1n14RTS/gemfi/x86/disks/mountpoint mount -t proc proc /proc
-   mount: /lib32/libc.so.6: version 'GLIBC_2.7' not found 
(required by mount)
-   mount: /lib32/libc.so.6: version 'GLIBC_2.7' not found 
(required by /lib/i386-linux-gnu/libblkid.so.1)
-   mount: /lib32/libc.so.6: version 'GLIBC_2.7' not found 
(required by /lib/i386-linux-gnu/libselinux.so.1)
-   mount: /lib32/libc.so.6: version 'GLIBC_2.8' not found 
(required by /lib/i386-linux-gnu/libblkid.so.1)
-   mount: /lib32/libc.so.6: version 'GLIBC_2.8' not found 
(required by /lib/i386-linux-gnu/libmount.so.1)
-   mount: /lib32/libc.so.6: version 'GLIBC_2.7' not found 
(required by /lib/i386-linux-gnu/libmount.so.1)

I can't create a basic installation of Ubuntu in my mounted image, and I can 
chroot to my mounted image. All due to the issue of libc.so.6
A check in the folder /lib32, /lib64 and /lib, I found that libc.so.6 is a link 
to libc-2.19.so.
I don't understand what happen. If it is link to libc-2.19.so (which is the 
EGLIBC 2.19 I presume), then logically it shouldn’t have any error on GLIBC. 

Really needed help here.
Thanks.

Elena


-Original Message-
From: gem5-users [mailto:gem5-users-boun...@gem5.org] On Behalf Of Ferran Olid
Sent: 03 February 2017 10:38
To: gem5-users@gem5.org
Subject: Re: [gem5-users] Error with GLIBC 2.7 while trying to run C program in 
FS Mode

Hi Elena,

Maybe you could try to mount the image you are using to run the experiments in 
FS mode, chroot to it and compile these benchmarks there. 
You'll also have to mount /proc, /dev and /sys to your mounte image before 
chrooting.

Hope this helps,
Ferran O.

On 03/02/17 11:30, Woo L.L. wrote:
> Hi Pierre-Yves,
>
> I did tried compiling it with the -static flag for the first few benchmarks 
> that I have run, but I got a segmentation fault. So, I tried compiling it 
> without the -static flag, and it works.
>
> But for this benchmark (QSort and Dijkstra) from MiBench, I tried to compile 
> without the -static flag, and I got the error /lib/libc.so.6: version 
> 'GLIBC_2.7' not found. If I compile it with the -static flag, I got 
> segmentation error.
>
> So I am really stuck at this. Please help.
> Thanks.
>
> Regards,
> Elena
>
> -Original Message-
> From: gem5-users [mailto:gem5-users-boun...@gem5.org] On Behalf Of 
> Pierre-Yves Péneau
> Sent: 03 February 2017 10:14
> To: gem5-users@gem5.org
> Subject: Re: [gem5-users] Error with GLIBC 2.7 while trying to run C 
> program in FS Mode
>
> Hi Elena,
>
> You should try to compile with the -static flag.
>
> On 02/03/2017 11:09 AM, Woo L.L. wrote:
>> Hi there,
>>
>> I run a couple of benchmarks from MiBench Automotive package under FS Mode 
>> successfully.
>> I wanted to test other benchmarks from the same MiBench, so I compiled those 
>> C programs as usual using GCC (I have GCC 4.8.4 in my Ubuntu). No errors in 
>> compiling and even running it from the terminal.
>>
>> However, when I try to run it with Gem5 un FS Mode, it gives me the problem 
>> /lib/libc.so.6: version 'GLIBC_2.7' not found. In my system, I had EGLIBC 
>> 2.19 installed (I checked using ldd -version). I tried to search for some 
>> solutions, where most users suggest to recompile again with the newer GLIBC 
>> (which I did), but it didn't solve the problem. I am able to run it from the 
>> terminal, but not from Gem5.
>>
>> Has anyone ever encounter this issue and is there a solution to it?
>> Appreciate all your help.
>> Thanks.
>>
>> Thanks and Regards,
>>
>> Elena Woo Lai Leng
>> Faculty of Electronic and Computer Science (ECS) University of 
>> Southampton
>>
>> Email: l.l@soton.ac.uk
>> Website: www.ecs.soton.ac.uk
>>
>>
>>
>>
>> ___
>> gem5-users mailing list
>> gem5-users@gem5.org
>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>


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

Re: [gem5-users] Error with GLIBC 2.7 while trying to run C program in FS Mode

2017-02-03 Thread Woo L . L .
Hi Pierre-Yves,

I did tried compiling it with the -static flag for the first few benchmarks 
that I have run, but I got a segmentation fault. So, I tried compiling it 
without the -static flag, and it works.

But for this benchmark (QSort and Dijkstra) from MiBench, I tried to compile 
without the -static flag, and I got the error /lib/libc.so.6: version 
'GLIBC_2.7' not found. If I compile it with the -static flag, I got 
segmentation error. 

So I am really stuck at this. Please help.
Thanks.

Regards,
Elena

-Original Message-
From: gem5-users [mailto:gem5-users-boun...@gem5.org] On Behalf Of Pierre-Yves 
Péneau
Sent: 03 February 2017 10:14
To: gem5-users@gem5.org
Subject: Re: [gem5-users] Error with GLIBC 2.7 while trying to run C program in 
FS Mode

Hi Elena,

You should try to compile with the -static flag.

On 02/03/2017 11:09 AM, Woo L.L. wrote:
> Hi there,
> 
> I run a couple of benchmarks from MiBench Automotive package under FS Mode 
> successfully.
> I wanted to test other benchmarks from the same MiBench, so I compiled those 
> C programs as usual using GCC (I have GCC 4.8.4 in my Ubuntu). No errors in 
> compiling and even running it from the terminal.
> 
> However, when I try to run it with Gem5 un FS Mode, it gives me the problem 
> /lib/libc.so.6: version 'GLIBC_2.7' not found. In my system, I had EGLIBC 
> 2.19 installed (I checked using ldd -version). I tried to search for some 
> solutions, where most users suggest to recompile again with the newer GLIBC 
> (which I did), but it didn't solve the problem. I am able to run it from the 
> terminal, but not from Gem5.
> 
> Has anyone ever encounter this issue and is there a solution to it?
> Appreciate all your help.
> Thanks.
> 
> Thanks and Regards,
> 
> Elena Woo Lai Leng
> Faculty of Electronic and Computer Science (ECS) University of 
> Southampton
> 
> Email: l.l@soton.ac.uk
> Website: www.ecs.soton.ac.uk
> 
> 
> 
> 
> ___
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
> 

-- 
+-+
| Pierre-Yves Péneau - PhD student |  first.last at lirmm.fr  |
| LIRMM / CNRS - SYSMIC team   |+ 33 4 67 41 86 33|
| Building 4 Office H2.2   |http://walafc0.org|
+-+

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

[gem5-users] Error with GLIBC 2.7 while trying to run C program in FS Mode

2017-02-03 Thread Woo L . L .
Hi there,

I run a couple of benchmarks from MiBench Automotive package under FS Mode 
successfully.
I wanted to test other benchmarks from the same MiBench, so I compiled those C 
programs as usual using GCC (I have GCC 4.8.4 in my Ubuntu). No errors in 
compiling and even running it from the terminal.

However, when I try to run it with Gem5 un FS Mode, it gives me the problem 
/lib/libc.so.6: version 'GLIBC_2.7' not found. In my system, I had EGLIBC 2.19 
installed (I checked using ldd -version). I tried to search for some solutions, 
where most users suggest to recompile again with the newer GLIBC (which I did), 
but it didn't solve the problem. I am able to run it from the terminal, but not 
from Gem5.

Has anyone ever encounter this issue and is there a solution to it?
Appreciate all your help.
Thanks.

Thanks and Regards,

Elena Woo Lai Leng
Faculty of Electronic and Computer Science (ECS)
University of Southampton

Email: l.l@soton.ac.uk
Website: www.ecs.soton.ac.uk

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