________________________________
From: "[email protected]" <[email protected]>
To: [email protected]
Sent: Thursday, July 11, 2013 10:52 AM
Subject: gem5-users Digest, Vol 84, Issue 24
Send gem5-users mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of gem5-users digest..."
Today's Topics:
1. x86 dual system - test system kernel panic in detailed mode
(Fangfei Liu)
2. Re: x86 dual system - test system kernel panic in detailed
mode (Fangfei Liu)
3. Re: Multiple Workloads in FS mode....... (Mahshid Sedghi)
----------------------------------------------------------------------
Message: 1
Date: Wed, 10 Jul 2013 19:22:25 +0000
From: Fangfei Liu <[email protected]>
To: "[email protected]" <[email protected]>
Subject: [gem5-users] x86 dual system - test system kernel panic in
detailed mode
Message-ID:
<4fb8a4a21e21aa4d9843c655644d31342d498...@csgmbx200w.pu.win.princeton.edu>
Content-Type: text/plain; charset="iso-8859-1"
Hello,
I'm running apache server and apache benchmark in x86 dual system. It works
well in atomic mode with default configuration. I take a checkpoint before
client sending request. When the simulator restores from the checkpoint and
runs in detailed mode, the test system (server) gets a kernel panic upon
receiving packets from the clients:
build/X86/gem5.opt configs/example/fs.py --kernel=vmlinux --disk-image=big.img
--dual -r 1 --caches --cpu-type=detailed
BUG: unable to handle kernel NULL pointer dereference at 0000000000000710
IP: [<ffffffff803fed22>] rx_irq+0x32/0x250
PGD 72d6067 PUD 72d7067 PMD 0
Oops: 0000 [#1]
last sysfs file:
CPU 0
Modules linked in:
Pid: 0, comm: swapper Tainted: G W 2.6.28.4-dirty #5
RIP: 0010:[<ffffffff803fed22>] [<ffffffff803fed22>] rx_irq+0x32/0x250
RSP: 0018:ffffffff8083beb0 EFLAGS: 000000a8
RAX: 0000000000000000 RBX: ffff88000706e640 RCX: 000000000000023c
RDX: ffff88000706e940 RSI: 0000000000000000 RDI: ffff88000706e000
RBP: ffffffff80892968 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000064 R11: ffffffff8021afc0 R12: ffff88000706e000
R13: ffff88000706e640 R14: ffff88000706e710 R15: 0000000000000000
FS: 000000004e7fb950(0000) GS:ffffffff80844020(0000) knlGS:0000000000000000
CS: 0010 DS: 0018 ES: 0018 CR0: 000000008005003b
CR2: 0000000000000710 CR3: 00000000072d3000 CR4: 00000000000006e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 0000000000000000 DR7: 0000000000000000
Process swapper (pid: 0, threadinfo ffffffff807e6000, task ffffffff8076d380)
Stack:
ffffffff802108e9 0000000000000000 00000000000002a8 ffff88000706e640
ffffffff80892968 ffff88000706e000 0000000000000100 000000000000000a
0000000000000000 ffffffff803fef5d ffffffff803ff438 0000000000000000
Call Trace:
<IRQ> <0> [<ffffffff802108e9>] ? read_tsc+0x9/0x20
[<ffffffff803fef5d>] ? rx_action+0x1d/0x70
[<ffffffff803ff438>] ? ns83820_irq+0x1c8/0x2b0
[<ffffffff80232c59>] ? tasklet_action+0x39/0x80
[<ffffffff80232e8c>] ? __do_softirq+0x7c/0x130
[<ffffffff8020c19c>] ? call_softirq+0x1c/0x30
[<ffffffff8020d015>] ? do_softirq+0x35/0x70
[<ffffffff8020d0f9>] ? do_IRQ+0xa9/0x1a0
[<ffffffff8020b996>] ? ret_from_intr+0x0/0xa
<EOI> <0> [<ffffffff80209d32>] ? __exit_idle+0x12/0x30
[<ffffffff8020a23a>] ? cpu_idle+0x2a/0x50
Code: 49 81 c6 10 07 00 00 41 55 49 89 fd 49 81 c5 40 06 00 00 41 54 55 53 48
83 ec 18 48 89 7c 24 08 9c 8f 44 24 10 fa 48 8b 44 24 08 <8b> 88 10 07 00 00 85
c9 0f 84 cb 01 00 00 49 8b 96 10 02 00 00
RIP [<ffffffff803fed22>] rx_irq+0x32/0x250
RSP <ffffffff8083beb0>
CR2: 0000000000000710
Kernel panic - not syncing: Fatal exception in interrupt
I'm using kernel v2.6.28.4 and NSGigE Ethernet card. I found a similar kernel
panic in previous post but my problem is a little bit different. I tried the
checkpoint restore to atomic mode and it works well. I tried other kernel and
Ethernet card combination and met different errors. For example, when I use
kernel v2.6.22.9 and E1000, there is no kernel panic but with an assertion
error:
build/X86/dev/i8254xGBe.cc:177: virtual Tick IGbE::read(PacketPtr): Assertion
`pkt->getSize() == 4' failed.
Program aborted at cycle 5470903108500
./run_fs_test: line 6: 12004 Aborted (core dumped)
build/X86/gem5.opt configs/example/fs.py --kernel=x86_64-vmlinux-2.6.22.9
--disk-image=big.img --dual --checkpoint-dir=apache-e1000 -r 1
--cpu-type=detailed --caches
Does anyone know how to solve this problem? Thanks!
Best regards
Fangfei
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://m5sim.org/cgi-bin/mailman/private/gem5-users/attachments/20130710/6cab972d/attachment-0001.html>
------------------------------
Message: 2
Date: Wed, 10 Jul 2013 23:35:55 +0000
From: Fangfei Liu <[email protected]>
To: gem5 users mailing list <[email protected]>
Subject: Re: [gem5-users] x86 dual system - test system kernel panic
in detailed mode
Message-ID:
<4fb8a4a21e21aa4d9843c655644d31342d499...@csgmbx200w.pu.win.princeton.edu>
Content-Type: text/plain; charset="gb2312"
I also tried to run the dual system directly in detailed mode and met the same
problem. It seems that this is not a problem with checkpoint restore but a
problem with detailed mode. Does anyone have any suggestions? Thanks!
Best regards
Fangfei
From: [email protected] [mailto:[email protected]] On
Behalf Of Fangfei Liu
Sent: 2013?7?10? 15:22
To: [email protected]
Subject: [gem5-users] x86 dual system - test system kernel panic in detailed
mode
Hello,
I'm running apache server and apache benchmark in x86 dual system. It works
well in atomic mode with default configuration. I take a checkpoint before
client sending request. When the simulator restores from the checkpoint and
runs in detailed mode, the test system (server) gets a kernel panic upon
receiving packets from the clients:
build/X86/gem5.opt configs/example/fs.py --kernel=vmlinux --disk-image=big.img
--dual -r 1 --caches --cpu-type=detailed
BUG: unable to handle kernel NULL pointer dereference at 0000000000000710
IP: [<ffffffff803fed22>] rx_irq+0x32/0x250
PGD 72d6067 PUD 72d7067 PMD 0
Oops: 0000 [#1]
last sysfs file:
CPU 0
Modules linked in:
Pid: 0, comm: swapper Tainted: G W 2.6.28.4-dirty #5
RIP: 0010:[<ffffffff803fed22>] [<ffffffff803fed22>] rx_irq+0x32/0x250
RSP: 0018:ffffffff8083beb0 EFLAGS: 000000a8
RAX: 0000000000000000 RBX: ffff88000706e640 RCX: 000000000000023c
RDX: ffff88000706e940 RSI: 0000000000000000 RDI: ffff88000706e000
RBP: ffffffff80892968 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000064 R11: ffffffff8021afc0 R12: ffff88000706e000
R13: ffff88000706e640 R14: ffff88000706e710 R15: 0000000000000000
FS: 000000004e7fb950(0000) GS:ffffffff80844020(0000) knlGS:0000000000000000
CS: 0010 DS: 0018 ES: 0018 CR0: 000000008005003b
CR2: 0000000000000710 CR3: 00000000072d3000 CR4: 00000000000006e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 0000000000000000 DR7: 0000000000000000
Process swapper (pid: 0, threadinfo ffffffff807e6000, task ffffffff8076d380)
Stack:
ffffffff802108e9 0000000000000000 00000000000002a8 ffff88000706e640
ffffffff80892968 ffff88000706e000 0000000000000100 000000000000000a
0000000000000000 ffffffff803fef5d ffffffff803ff438 0000000000000000
Call Trace:
<IRQ> <0> [<ffffffff802108e9>] ? read_tsc+0x9/0x20
[<ffffffff803fef5d>] ? rx_action+0x1d/0x70
[<ffffffff803ff438>] ? ns83820_irq+0x1c8/0x2b0
[<ffffffff80232c59>] ? tasklet_action+0x39/0x80
[<ffffffff80232e8c>] ? __do_softirq+0x7c/0x130
[<ffffffff8020c19c>] ? call_softirq+0x1c/0x30
[<ffffffff8020d015>] ? do_softirq+0x35/0x70
[<ffffffff8020d0f9>] ? do_IRQ+0xa9/0x1a0
[<ffffffff8020b996>] ? ret_from_intr+0x0/0xa
<EOI> <0> [<ffffffff80209d32>] ? __exit_idle+0x12/0x30
[<ffffffff8020a23a>] ? cpu_idle+0x2a/0x50
Code: 49 81 c6 10 07 00 00 41 55 49 89 fd 49 81 c5 40 06 00 00 41 54 55 53 48
83 ec 18 48 89 7c 24 08 9c 8f 44 24 10 fa 48 8b 44 24 08 <8b> 88 10 07 00 00 85
c9 0f 84 cb 01 00 00 49 8b 96 10 02 00 00
RIP [<ffffffff803fed22>] rx_irq+0x32/0x250
RSP <ffffffff8083beb0>
CR2: 0000000000000710
Kernel panic - not syncing: Fatal exception in interrupt
I'm using kernel v2.6.28.4 and NSGigE Ethernet card. I found a similar kernel
panic in previous post but my problem is a little bit different. I tried the
checkpoint restore to atomic mode and it works well. I tried other kernel and
Ethernet card combination and met different errors. For example, when I use
kernel v2.6.22.9 and E1000, there is no kernel panic but with an assertion
error:
build/X86/dev/i8254xGBe.cc:177: virtual Tick IGbE::read(PacketPtr): Assertion
`pkt->getSize() == 4' failed.
Program aborted at cycle 5470903108500
./run_fs_test: line 6: 12004 Aborted (core dumped)
build/X86/gem5.opt configs/example/fs.py --kernel=x86_64-vmlinux-2.6.22.9
--disk-image=big.img --dual --checkpoint-dir=apache-e1000 -r 1
--cpu-type=detailed --caches
Does anyone know how to solve this problem? Thanks!
Best regards
Fangfei
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://m5sim.org/cgi-bin/mailman/private/gem5-users/attachments/20130710/37dad456/attachment-0001.html>
------------------------------
Message: 3
Date: Wed, 10 Jul 2013 21:29:36 -0400
From: Mahshid Sedghi <[email protected]>
To: gem5 users mailing list <[email protected]>
Subject: Re: [gem5-users] Multiple Workloads in FS mode.......
Message-ID:
<ca+lielasxar5t9bthhegdlg0iqctcvcdxr6zmgdhoxluys7...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Hi Mohammadsadegh & Mahshid Sedghi....
thanks for clearing my doubt regarding multi-core or multi-processors.
I have other doubt regarding how to give multiple workloads in FS mode as we
have -c hello;hello option in SE mode but how to do in FS mode? do we have to
run multiple scripts? and also how to cross check that statistics file which
has been generated gives the correct data?
any comments will be appreciated...
Thanks..
Amanpreet
IIT Delhi
*
*
Hi Mohammadsadegh
I think he is talking about the second scenario, which is in fact
multiprogramming. At least this is what I am trying
to do. I need to run several benchmarks on a CMP, such that each benchmark
runs on one or two cores. It seem
pretty straightforward in SE mode, but since my benchmarks are
multi-threaded, I need to run in FS mode. So,
I am not sure how to do this. So, can you please give some hints about how
to do this?
Thanks.
On Wed, Jul 10, 2013 at 7:19 AM, Mohammadsadegh Sadri <
[email protected]> wrote:
> Hi, I personally think you are not clear with your question.
> gem5 runs on only one CPU core. Now if you have a server, or a cluster or
> a computer in your university which has N CPU cores and you want to use all
> of them, you can simply run N instances of gem5 and the OS will put each
> gem5 on a separate core automatically. Then on each instance of running
> gem5 , execute a different benchmark and capture statistics and ...
> don't worry about port numbers, gem5 will automatically detect another
> instance of gem5 is running. So it increases the port numbers (for VNC and
> m5term connection) automatically. Just be careful about the m5out folder,
> in case you are producing a kind log or saving snapshots , they will all go
> to one m5out folder which is not good. I personally have created multiple
> physical copies of gem5 with separate m5out folders and run multiple
> instances of gem5 on our cluster.
>
> But if your question is, you have created a FS gem5 platform which
> contains N cores (with -n N option when running gem5) and then you want to
> run one separate benchmark on every of these cores, then again it shouldn't
> be a problem since the Linux OS running on your gem5 virtual platform
> handles this for you automatically. (well at least I am pretty sure for
> gem5.ARM platform it works fine, for the X86 I have never tried)
> also have a look here
> http://stackoverflow.com/questions/3203831/how-to-specify-a-cpu-core-to-run-a-program-in-linux
>
> ________________________________
> From: [email protected] [[email protected]] on behalf
> of Mahshid Sedghi [[email protected]]
> Sent: Tuesday, July 09, 2013 6:20 PM
> To: gem5 users mailing list
> Subject: Re: [gem5-users] Multiple Workloads in FS mode.......
>
> Hello,
>
> I am also interested in this topic. I'd appreciate if someone can provide
> some insight.
>
> Thanks.
>
>
> On Mon, Jul 8, 2013 at 8:53 PM, Zheng Wu <[email protected]<mailto:
> [email protected]>> wrote:
> Hi all,
>
> I am also curious to know the answer to this question.
>
> Thanks
>
> On 2013-07-07, at 2:08 PM, Amanpreet Kaur <[email protected]
> <mailto:[email protected]>> wrote:
>
> hello...
>
> I am new to gem5 and also from electronics background, so can anybody tell
> me what is the command for running multiple applications on multi core or
> multi-processors for X86 FS mode? like if I have to run 4 benchmarks on 4
> cores than what flags I need to set, or what all changes I have to make in
> script file please elaborate bcoz this will help me to understand it
> clearly.....also how to confirm that it is working properly? do I have to
> see simulation time that it should remain same or if I will run 8
> benchmarks on 4 cores than time should be double,what I am thinking is
> correct? please tell me the steps because I am struggling so much(read
> documentation,gone through all archive mails) it would be great if anybody
> can help me at the earliest.......actually I tried running commands without
> making any changes in the source code, but in the statistics file only one
> CPU is getting active, so how to assign workloads to other CPU's ?please
> tell me which all source file I have to ch
> eck out.....
>
> thanks in advance..
>
> Amanpreet kaur
> M'tech
> IIT Delhi
>
> _______________________________________________
> gem5-users mailing list
> [email protected]<mailto:[email protected]>
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
>
> _______________________________________________
> gem5-users mailing list
> [email protected]<mailto:[email protected]>
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
> _______________________________________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://m5sim.org/cgi-bin/mailman/private/gem5-users/attachments/20130710/44dda891/attachment.html>
------------------------------
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
End of gem5-users Digest, Vol 84, Issue 24
******************************************
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users