Why is your application calling sys_clone at that point? It can't find any
more thread contexts because you have already used them all.

If you application is using pthread_create() you probably don't need to
execute 4 instances of it.

Jason

On Tue, Oct 25, 2016 at 5:54 PM anoir nechi <anoirne...@gmail.com> wrote:

>
>
> *Hi again*
> *I've tried what you told me about the multi-threaded workload like this:*
>
> for i in xrange(np):
>     p = LiveProcess()
>     p.cmd = ['/home/anoir/m5threads/lock_test/test_lock']
>     system.cpu[i].workload = p
>     system.cpu[i].createThreads()
>
>
>
> *but i get this error message:*Beginning simulation!
> info: Entering event queue @ 0.  Starting simulation...
> warn: CP14 unimplemented crn[0], opc1[6], crm[3], opc2[4]
> [main]a rwlock is initialized
> [main]a rwlock is initialized
> [main]a rwlock is initialized
> [main]a rwlock is initialized
>
>
> 1. read lock test
> 1. read lock test
> 1. read lock test
> 1. read lock test
> [main]a read lock is obtained
> [main]a read lock is obtained
> [main]a read lock is obtained
> [main]a read lock is obtained
> fatal: Called sys_clone, but no unallocated thread contexts found!
>  @ tick 26207000
> [cloneFunc:build/ARM/sim/syscall_emul.cc, line 875]
> Memory Usage: 662792 KBytes
> Program aborted at cycle 26207000
> Aborted (core dumped)
>
>
> *What could be wrong??*
> *Please take a look at the test_lock code *
>
>
> On Wed, Oct 12, 2016 at 4:42 PM, anoir nechi <anoirne...@gmail.com> wrote:
>
> Thank you Jason
>
> On Wed, Oct 12, 2016 at 4:39 PM, Jason Lowe-Power <ja...@lowepower.com>
> wrote:
>
> This should work.
>
> Attached is a diff for the simple.py script in
> configs/learning_gem5/part1/ that has 4 CPUs and runs hello 4 times.
> Hopefully this helps.
>
> For a multithreaded application, I believe you'll use a similar config
> script (instantiate multiple processes all with the same binary file path).
> Then, the binaries should be linked to m5threads instead of pthreads.
>
> Jason
>
> On Mon, Oct 10, 2016 at 8:16 AM anoir nechi <anoirne...@gmail.com> wrote:
>
>
>
> *Hi *
>
> *I wrote a configuration script for a multicore system based on ARM and it
> seems fine except for the workload. i wanted to try testing the
> configuration by assigning a hello world executable for each CPU.*
> *I tried creating different processes but I've got some indexing error
> then i made a for loop like this:*
> i=0
> for i in xrange(np):
>     process = LiveProcess()
>     process.cmd = ['tests/test-progs/hello/bin/arm/linux/hello']
>     system.cpu[i].workload = process
>     system.cpu[i].createThreads()
> *and all i get is this :*
> Global frequency set at 1000000000000 ticks per second
> warn: DRAM device capacity (4096 Mbytes) does not match the address range
> assigned (512 Mbytes)
> 0: system.remote_gdb.listener: listening for remote gdb #0 on port 7000
> 0: system.remote_gdb.listener: listening for remote gdb #1 on port 7001
> 0: system.remote_gdb.listener: listening for remote gdb #2 on port 7002
> 0: system.remote_gdb.listener: listening for remote gdb #3 on port 7003
>
> *it suppose to show 4 x Hello World!. i don't understand the problem!!*
>
> *One other thing, i know that to use a multithreaded application  I have
> to use the m5threads, But, do I have to apply some changes to my
> configuration script to support the multithreaded applications ?*
>
> *Thank you*
>
> *PS : Attached the configuration script*
> --
> *Anouar NECHI*
>
>
> *IT Engineer : Industrial systemsHigher Institute of Computer Science*
>
>
> _______________________________________________
>
> 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
>
>
>
>
> --
> *Anouar NECHI*
>
>
> *IT Engineer : Industrial systemsHigher Institute of Computer ScienceTunis
> - El Manar University*
> *Phone :* *(+216) 50 311 536 <%28%2B216%29%2050%20311%20536>*
> *E-mail :* *anoirne...@gmail.com <anoirne...@gmail.com>*
>
>
>
>
> --
> *Anouar NECHI*
>
>
> *IT Engineer : Industrial systemsHigher Institute of Computer ScienceTunis
> - El Manar University*
> *Phone :* *(+216) 50 311 536 <+216%2050%20311%20536>*
> *E-mail :* *anoirne...@gmail.com <anoirne...@gmail.com>*
> _______________________________________________
> 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

Reply via email to