[dpdk-dev] Issue while running test/testpmd applications

2013-12-02 Thread Jose Gavine Cueto
Hi,

#2 - It depends on the platform that testpmd is running on.  If it ran
directly on top of the hardware then usually you have fixed lcores.  For
example, in Linux, you can call "nproc" to check how many cores are
available.

Make sure you have sufficient number of cores and set the core mask
appropriately.

Cheers,
Pepe


On Mon, Dec 2, 2013 at 1:45 PM, Surya Nimmagadda wrote:

> Hi,
>
> I am trying to run the test and testpmd applications with dpdk-1.5.0r1,
> using tools/setup.sh
>
> I see two errors in EAL. Can someone please help where I am going wrong.
>
> 1. The test application panics with the following log.
>
> EAL: Master core 0 is ready (tid=b74b5800)
> EAL: Core 7 is ready (tid=733fab40)
> EAL: pthread_setaffinity_np failed
> PANIC in eal_thread_loop():
> cannot set affinity
> 5: [/lib/i386-linux-gnu/libc.so.6(clone+0x5e) [0xb75a901e]]
> 4: [/lib/i386-linux-gnu/libpthread.so.0(+0x6d78) [0xb7671d78]]
> 3: [i686-default-linuxapp-gcc/app/test(eal_thread_loop+0x284) [0x80b9e24]]
> 2: [i686-default-linuxapp-gcc/app/test(__rte_panic+0x5c) [0x804edbb]]
> 1: [i686-default-linuxapp-gcc/app/test(rte_dump_stack+0x1c) [0x80bb92c]]
> EAL: Core 2 is ready (tid=75bffb40)
>
> 2. I cant see lcores other than 0. How can I configure more than 1 lcores?
>
> Option: 11
>
>
>   Enter hex bitmask of cores to execute test app on
>   Example: to execute app on cores 0 to 7, enter 0xff
> bitmask: 0xff
> Launching app
> EAL: Cannot read numa node link for lcore 0 - using physical package id
> instead
> EAL: Detected lcore 0 as core 0 on socket 0
> EAL: Skip lcore 1 (not detected)
> EAL: Skip lcore 2 (not detected)
> EAL: Skip lcore 3 (not detected)
> :::
> EAL: Skip lcore 63 (not detected)
> EAL: Setting up memory...
> EAL: cannot open /proc/self/numa_maps, consider that all memory is in
> socket_id 0
> EAL: Ask a virtual area of 0x2097152 bytes
>
> Any help is greatly appreciated.
>
> Thanks,
> Surya
>
>


-- 
To stop learning is like to stop loving.


[dpdk-dev] Unable to build dpdk : #error "SSSE3 instruction set not enabled"

2013-12-02 Thread Alexander Belyakov
Hi,

On Fri, Nov 29, 2013 at 2:39 PM, Surya Nimmagadda wrote:

> I am seeing the following error when doing make with 1.5.0r2 or 1.5.1r1
>
> == Build lib/librte_meter
> == Build lib/librte_sched
>   CC rte_sched.o
> In file included from
> /home/surya/dpdk/dpdk-1.5.1r1/lib/librte_sched/rte_bitmap.h:77:0,
>  from
> /home/surya/dpdk/dpdk-1.5.1r1/lib/librte_sched/rte_sched.c:47:
> /usr/lib/gcc/x86_64-linux-gnu/4.6/include/tmmintrin.h:31:3: error: #error
> "SSSE3 instruction set not enabled"
> make[3]: *** [rte_sched.o] Error 1
> make[2]: *** [librte_sched] Error 2
> make[1]: *** [lib] Error 2
> make: *** [all] Error 2
>
>
adding the following line to your defconfig would also help
"CONFIG_RTE_BITMAP_OPTIMIZATIONS=0"

Regards,
Alexander


[dpdk-dev] Issue while running test/testpmd applications

2013-12-02 Thread Surya Nimmagadda
Hi,

I am trying to run the test and testpmd applications with dpdk-1.5.0r1, using 
tools/setup.sh

I see two errors in EAL. Can someone please help where I am going wrong.

1. The test application panics with the following log.

EAL: Master core 0 is ready (tid=b74b5800)
EAL: Core 7 is ready (tid=733fab40)
EAL: pthread_setaffinity_np failed
PANIC in eal_thread_loop():
cannot set affinity
5: [/lib/i386-linux-gnu/libc.so.6(clone+0x5e) [0xb75a901e]]
4: [/lib/i386-linux-gnu/libpthread.so.0(+0x6d78) [0xb7671d78]]
3: [i686-default-linuxapp-gcc/app/test(eal_thread_loop+0x284) [0x80b9e24]]
2: [i686-default-linuxapp-gcc/app/test(__rte_panic+0x5c) [0x804edbb]]
1: [i686-default-linuxapp-gcc/app/test(rte_dump_stack+0x1c) [0x80bb92c]]
EAL: Core 2 is ready (tid=75bffb40)

2. I cant see lcores other than 0. How can I configure more than 1 lcores?

Option: 11


  Enter hex bitmask of cores to execute test app on
  Example: to execute app on cores 0 to 7, enter 0xff
bitmask: 0xff
Launching app
EAL: Cannot read numa node link for lcore 0 - using physical package id instead
EAL: Detected lcore 0 as core 0 on socket 0
EAL: Skip lcore 1 (not detected)   
EAL: Skip lcore 2 (not detected)   
EAL: Skip lcore 3 (not detected)  
:::
EAL: Skip lcore 63 (not detected)
EAL: Setting up memory...
EAL: cannot open /proc/self/numa_maps, consider that all memory is in socket_id 0
EAL: Ask a virtual area of 0x2097152 bytes

Any help is greatly appreciated.

Thanks,
Surya