Hi Christophe,

> There are Many interresting things in your log:
> First, I think we are exceeding the (currentely 500Mb) limit of shmem
> allocated with singleVA flag set here. In the test 1/3 of the CPU
> allocates 64M, 1/3 allocate 8M and 1/3 8K.
> 
> I don't have you settings, but if you don't mind running the following
> simple tests for me:
> Either
> Double the shm space for singleVA flag:
>     File:platform/linux-generic/include/odp_config_internal.h: line 121:
>     #define ODP_CONFIG_ISHM_VA_PREALLOC_SZ (536870912L)
>     (Multiply by 2 or 4)

After increasing ODP_CONFIG_ISHM_VA_PREALLOC_SZ size to 2X the test passes.
However, it's still printing a lot of permission denied errors (~13 000 times):
        _ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-21556-ishm-00000095: Permission denied. 

Running the as root removes the error messages.

> Or reduce the memory allocated by the test:
>     File: odp/test/common_plat/validation/drv/drvshmem/drvshmem.c
> line: 19: #define BIG_MEM 16777216
>     (devide it by 2 or 4, as can be fragmentation)

This alone also fixes the crash (still a lot of error messages).

> 
> I hope that this should solve "your" crash (which is more mine) :-)
> But please send the logs anyway.  If you confirm that this is the
> problem, I send a patch to make the tests less greedy.
> But I am still interested by the logs because I do not explain the
> mmap failures when running as root:
> 
> From you boot parameter, I understand that you had 4GB of huge pages, right?

In have mapped 512 x 2MB pages to use.

> This mmap failure tells it failed with the Huge pages, and back-off
> using normal pages. Not really sure what is happening there: It feels
> your machine should have enough HP for all.... Any other thing
> consuming Huges pages that you can thing about?

No other application is using hugepages and /proc/meminfo looks as it should.

Just let me know if you need more test logs.

-Matias


Test log with ODP_CONFIG_ISHM_VA_PREALLOC_SZ (2 * 536870912L)
=====================================================

$ ./test/common_plat/validation/drv/drvshmem/drvshmem_main
 
 PKTIO: initialized loop interface.
 PKTIO: initialized dpdk pktio, use export ODP_PKTIO_DISABLE_DPDK=1 to disable.
 PKTIO: initialized netmap pktio, use export ODP_PKTIO_DISABLE_NETMAP=1 to 
disable.
 Netmap prefixes are netmap:eth0 or vale:eth0. Refer to Netmap documentation 
for usage information.
 PKTIO: initialized pcap interface.
 PKTIO: initialized socket mmap, use export ODP_PKTIO_DISABLE_SOCKET_MMAP=1 to 
disable.
 PKTIO: initialized socket mmsg,use export ODP_PKTIO_DISABLE_SOCKET_MMSG=1 to 
disable.
        ODP API version: 1.10.1
        ODP implementation name:    odp-linux
        ODP implementation version: odp-linux 1.10.1-0 (v1.10.1) 
'https://git.linaro.org/lng/odp.git' (1.10.1.0.git194.gcf6425f.dirty)


     CUnit - A unit testing framework for C - Version 2.1-3
     http://cunit.sourceforge.net/


Suite: Shared Memory
  Test: drvshmem_test_basic ..._ishm.c:944:_odp_ishm_free_by_address():Request 
to free an non existing block... (double free?)
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 1 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 2 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 6 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 7 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 5 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 3 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 13 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 8 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 9 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 10 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 11 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 12 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 24 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 14 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 15 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 16 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 17 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 18 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 19 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 20 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 21 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 22 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 23 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 4 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 25 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 26 starts
passed
  Test: drvshmem_test_reserve_after_fork 
...linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started 
as linux pthread. (pid=21556)
Thread 1 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 2 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 3 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 4 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 5 starts
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-21556-ishm-test_shmem-000000001: Permission denied.
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-21556-ishm-test_shmem-000000004: Permission denied.
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-21556-ishm-test_shmem-000000002: Permission denied.
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 6 starts
In thread: Block index: 1 mapped at 7ffff7fe6000
In thread: Block index: 0 mapped at 7ffff7fea000
In thread: Block index: 3 mapped at 7ffff7fe1000
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 7 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 8 starts
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-21556-ishm-test_shmem-000000005: Permission denied.
In thread: Block index: 4 mapped at 7ffff7fe2000
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 9 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 10 starts
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-21556-ishm-test_shmem-000000007: Permission denied.
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 11 starts
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-21556-ishm-test_shmem-000000008: Permission denied.
In thread: Block index: 6 mapped at 7ffff7fe0000
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 12 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 13 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 14 starts
In thread: Block index: 7 mapped at 7ffff7fdc000
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 15 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 16 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 17 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 18 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 19 starts
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-21556-ishm-test_shmem-000000010: Permission denied.
In thread: Block index: 9 mapped at 7ffff7fdb000
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 20 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 21 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 22 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 23 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 24 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 25 starts
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-21556-ishm-test_shmem-000000011: Permission denied.
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-21556-ishm-test_shmem-000000013: Permission denied.
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-21556-ishm-test_shmem-000000016: Permission denied.
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-21556-ishm-test_shmem-000000019: Permission denied.
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-21556-ishm-test_shmem-000000020: Permission denied.
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-21556-ishm-test_shmem-000000014: Permission denied.
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-21556-ishm-test_shmem-000000022: Permission denied.
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-21556-ishm-test_shmem-000000017: Permission denied.
In thread: Block index: 15 mapped at 7ffff7fcc000
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
In thread: Block index: 21 mapped at 7ffff7fc3000
In thread: Block index: 18 mapped at 7ffff7fc2000
In thread: Block index: 12 mapped at 7ffff7fcd000
Thread 26 starts
In thread: Block index: 10 mapped at 7ffff7fd7000
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-21556-ishm-test_shmem-000000023: Permission denied.
In thread: Block index: 16 mapped at 7ffff7fc8000
In thread: Block index: 13 mapped at 7ffff7fce000
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-21556-ishm-test_shmem-000000025: Permission denied.
In thread: Block index: 22 mapped at 7ffff7fbe000
In thread: Block index: 19 mapped at 7ffff7fc4000
In thread: Block index: 24 mapped at 7ffff7fb9000
In thread: Block index: 25 mapped at 7ffff7fba000
In thread: Block index: 5 mapped at 7fff94000000
In thread: Block index: 20 mapped at 7fff5c000000
In thread: Block index: 17 mapped at 7fff4c000000
In thread: Block index: 14 mapped at 7fff54000000
In thread: Block index: 2 mapped at 7fff9c000000
In thread: Block index: 11 mapped at 7fff64000000
In thread: Block index: 8 mapped at 7fff84000000
In thread: Block index: 23 mapped at 7fff44000000
In main Block index: 0 mapped at 7ffff7fea000
In main Block index: 1 mapped at 7ffff7fe6000
In main Block index: 2 mapped at 7fff9c000000
In main Block index: 3 mapped at 7ffff7fe1000
In main Block index: 4 mapped at 7ffff7fe2000
In main Block index: 5 mapped at 7fff94000000
In main Block index: 6 mapped at 7ffff7fe0000
In main Block index: 7 mapped at 7ffff7fdc000
In main Block index: 8 mapped at 7fff84000000
In main Block index: 9 mapped at 7ffff7fdb000
In main Block index: 10 mapped at 7ffff7fd7000
In main Block index: 11 mapped at 7fff64000000
In main Block index: 12 mapped at 7ffff7fcd000
In main Block index: 13 mapped at 7ffff7fce000
In main Block index: 14 mapped at 7fff54000000
In main Block index: 15 mapped at 7ffff7fcc000
In main Block index: 16 mapped at 7ffff7fc8000
In main Block index: 17 mapped at 7fff4c000000
In main Block index: 18 mapped at 7ffff7fc2000
In main Block index: 19 mapped at 7ffff7fc4000
In main Block index: 20 mapped at 7fff5c000000
In main Block index: 21 mapped at 7ffff7fc3000
In main Block index: 22 mapped at 7ffff7fbe000
In main Block index: 23 mapped at 7fff44000000
In main Block index: 24 mapped at 7ffff7fb9000
In main Block index: 25 mapped at 7ffff7fba000
passed
  Test: drvshmem_test_singleva_after_fork 
...linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started 
as linux pthread. (pid=21556)
Thread 1 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 2 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 3 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 4 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 5 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 19 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 7 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 8 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 10 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-21556-ishm-test_shmem-000000001: Permission denied.
Thread 9 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 11 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 13 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 14 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-21556-ishm-test_shmem-000000007: Permission denied.
Thread 15 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 17 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 18 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 6 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 20 starts
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-21556-ishm-test_shmem-000000008: Permission denied.
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 21 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 16 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 22 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 23 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 12 starts
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-21556-ishm-test_shmem-000000010: Permission denied.
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 24 starts
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-21556-ishm-test_shmem-000000005: Permission denied.
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-21556-ishm-test_shmem-000000002: Permission denied.
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 25 starts
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-21556-ishm-test_shmem-000000014: Permission denied.
In thread: Block index: 10 mapped at 7fffbaa0b000
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-21556-ishm-test_shmem-000000004: Permission denied.
In thread: Block index: 0 mapped at 7fffb6a00000
In thread: Block index: 1 mapped at 7fffb6a02000
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-21556-ishm-test_shmem-000000011: Permission denied.
In thread: Block index: 7 mapped at 7fffb6a06000
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
Thread 26 starts
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-21556-ishm-test_shmem-000000016: Permission denied.
In thread: Block index: 4 mapped at 7fffc6a11000
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-21556-ishm-test_shmem-000000017: Permission denied.
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-21556-ishm-test_shmem-000000019: Permission denied.
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-21556-ishm-test_shmem-000000023: Permission denied.
In thread: Block index: 16 mapped at 7fffcaa15000
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-21556-ishm-test_shmem-000000013: Permission denied.
In thread: Block index: 18 mapped at 7fffcea1a000
In thread: Block index: 9 mapped at 7fffbaa0f000
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-21556-ishm-test_shmem-000000020: Permission denied.
In thread: Block index: 15 mapped at 7fffcaa19000
In thread: Block index: 3 mapped at 7fffb6a01000
In thread: Block index: 6 mapped at 7fffbaa0a000
In thread: Block index: 19 mapped at 7fffcea1b000
In thread: Block index: 13 mapped at 7fffd2a1f000
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-21556-ishm-test_shmem-000000022: Permission denied.
In thread: Block index: 12 mapped at 7fffc6a10000
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-21556-ishm-test_shmem-000000025: Permission denied.
In thread: Block index: 24 mapped at 7fffd6a23000
In thread: Block index: 22 mapped at 7fffd6a24000
In thread: Block index: 21 mapped at 7fffd6a28000
In thread: Block index: 25 mapped at 7fffd6a29000
In thread: Block index: 5 mapped at 7fffbaa10000
In thread: Block index: 2 mapped at 7fffbea10000
In thread: Block index: 23 mapped at 7fffcea1f000
In thread: Block index: 20 mapped at 7fffd2a23000
In thread: Block index: 17 mapped at 7fffcaa1a000
In thread: Block index: 14 mapped at 7fffc2a10000
In thread: Block index: 8 mapped at 7fffb6a0a000
In thread: Block index: 11 mapped at 7fffc6a15000
passed
  Test: drvshmem_test_stress 
...linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started 
as linux pthread. (pid=21556)
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=21556)
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-21556-ishm-00000093: Permission denied.
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-21556-ishm-00000095: Permission denied.
...
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-21556-ishm-00030055: Permission denied.
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-21556-ishm-00030058: Permission denied.
passed

Run Summary:    Type     Total       Ran    Passed Failed Inactive
              suites         1         1       n/a      0        0
               tests         4         4         4      0        0
             asserts 269101383 269101383 269101383      0      n/a

Elapsed time =  117.894 seconds



Test log with BIG_MEM (16777216 / 2)
=====================================================

$ ./test/common_plat/validation/drv/drvshmem/drvshmem_main

PKTIO: initialized loop interface.
 PKTIO: initialized dpdk pktio, use export ODP_PKTIO_DISABLE_DPDK=1 to disable.
 PKTIO: initialized netmap pktio, use export ODP_PKTIO_DISABLE_NETMAP=1 to 
disable.
 Netmap prefixes are netmap:eth0 or vale:eth0. Refer to Netmap documentation 
for usage information.
 PKTIO: initialized pcap interface.
 PKTIO: initialized socket mmap, use export ODP_PKTIO_DISABLE_SOCKET_MMAP=1 to 
disable.
 PKTIO: initialized socket mmsg,use export ODP_PKTIO_DISABLE_SOCKET_MMSG=1 to 
disable.
        ODP API version: 1.10.1
        ODP implementation name:    odp-linux
        ODP implementation version: odp-linux 1.10.1-0 (v1.10.1) 
'https://git.linaro.org/lng/odp.git' (1.10.1.0.git194.gcf6425f.dirty)


     CUnit - A unit testing framework for C - Version 2.1-3
     http://cunit.sourceforge.net/


Suite: Shared Memory
  Test: drvshmem_test_basic ..._ishm.c:944:_odp_ishm_free_by_address():Request 
to free an non existing block... (double free?)
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 1 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 2 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 5 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 4 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 3 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 6 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 7 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 15 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 9 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 18 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 11 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 12 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 13 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 25 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 8 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 16 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 17 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 10 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 19 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 20 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 21 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 22 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 23 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 24 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 14 starts
Thread 26 starts
passed
  Test: drvshmem_test_reserve_after_fork 
...linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started 
as linux pthread. (pid=16994)
Thread 1 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 2 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 3 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 4 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 5 starts
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-16994-ishm-test_shmem-000000001: Permission denied.
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 6 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 7 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 8 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 9 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 10 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 11 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 12 starts
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-16994-ishm-test_shmem-000000002: Permission denied.
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 13 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 14 starts
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-16994-ishm-test_shmem-000000005: Permission denied.
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 15 starts
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-16994-ishm-test_shmem-000000004: Permission denied.
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-16994-ishm-test_shmem-000000007: Permission denied.
Thread 16 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 18 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
In thread: Block index: 3 mapped at 7ffff7fe5000
Thread 19 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 20 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 21 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 17 starts
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-16994-ishm-test_shmem-000000010: Permission denied.
In thread: Block index: 1 mapped at 7ffff7fe6000
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 22 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 23 starts
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-16994-ishm-test_shmem-000000011: Permission denied.
In thread: Block index: 4 mapped at 7ffff7fe1000
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 24 starts
In thread: Block index: 0 mapped at 7ffff7fea000
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-16994-ishm-test_shmem-000000008: Permission denied.
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-16994-ishm-test_shmem-000000016: Permission denied.
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-16994-ishm-test_shmem-000000014: Permission denied.
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 26 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 25 starts
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-16994-ishm-test_shmem-000000019: Permission denied.
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-16994-ishm-test_shmem-000000020: Permission denied.
In thread: Block index: 6 mapped at 7ffff7fdc000
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-16994-ishm-test_shmem-000000022: Permission denied.
In thread: Block index: 18 mapped at 7ffff7fcf000
In thread: Block index: 16 mapped at 7ffff7fcb000
In thread: Block index: 12 mapped at 7ffff7fd7000
In thread: Block index: 22 mapped at 7ffff7fc3000
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-16994-ishm-test_shmem-000000023: Permission denied.
In thread: Block index: 15 mapped at 7ffff7fd0000
In thread: Block index: 9 mapped at 7ffff7fd1000
In thread: Block index: 10 mapped at 7ffff7fd8000
In thread: Block index: 19 mapped at 7ffff7fc7000
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-16994-ishm-test_shmem-000000013: Permission denied.
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-16994-ishm-test_shmem-000000017: Permission denied.
In thread: Block index: 7 mapped at 7ffff7fdd000
In thread: Block index: 21 mapped at 7ffff7fc2000
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-16994-ishm-test_shmem-000000025: Permission denied.
In thread: Block index: 13 mapped at 7ffff7fbe000
In thread: Block index: 24 mapped at 7ffff7fbd000
In thread: Block index: 25 mapped at 7ffff7fb9000
In thread: Block index: 11 mapped at 7fffb4000000
In thread: Block index: 5 mapped at 7fffb6000000
In thread: Block index: 20 mapped at 7fff68000000
In thread: Block index: 14 mapped at 7fff62000000
In thread: Block index: 8 mapped at 7fff6a000000
In thread: Block index: 17 mapped at 7fff4e000000
In thread: Block index: 2 mapped at 7fffbd7ff000
In thread: Block index: 23 mapped at 7fff60000000
In main Block index: 0 mapped at 7ffff7fea000
In main Block index: 1 mapped at 7ffff7fe6000
In main Block index: 2 mapped at 7fffbd7ff000
In main Block index: 3 mapped at 7ffff7fe5000
In main Block index: 4 mapped at 7ffff7fe1000
In main Block index: 5 mapped at 7fffb6000000
In main Block index: 6 mapped at 7ffff7fdc000
In main Block index: 7 mapped at 7ffff7fdd000
In main Block index: 8 mapped at 7fff6a000000
In main Block index: 9 mapped at 7ffff7fd1000
In main Block index: 10 mapped at 7ffff7fd8000
In main Block index: 11 mapped at 7fffb4000000
In main Block index: 12 mapped at 7ffff7fd7000
In main Block index: 13 mapped at 7ffff7fbe000
In main Block index: 14 mapped at 7fff62000000
In main Block index: 15 mapped at 7ffff7fd0000
In main Block index: 16 mapped at 7ffff7fcb000
In main Block index: 17 mapped at 7fff4e000000
In main Block index: 18 mapped at 7ffff7fcf000
In main Block index: 19 mapped at 7ffff7fc7000
In main Block index: 20 mapped at 7fff68000000
In main Block index: 21 mapped at 7ffff7fc2000
In main Block index: 22 mapped at 7ffff7fc3000
In main Block index: 23 mapped at 7fff60000000
In main Block index: 24 mapped at 7ffff7fbd000
In main Block index: 25 mapped at 7ffff7fb9000
passed
  Test: drvshmem_test_singleva_after_fork 
...linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started 
as linux pthread. (pid=16994)
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 1 starts
Thread 2 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 4 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 3 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 5 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 6 starts
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-16994-ishm-test_shmem-000000001: Permission denied.
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-16994-ishm-test_shmem-000000002: Permission denied.
Thread 7 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 9 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 8 starts
In thread: Block index: 0 mapped at 7fffd6a00000
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 10 starts
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-16994-ishm-test_shmem-000000005: Permission denied.
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 12 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 13 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 14 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 15 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 16 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 11 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-16994-ishm-test_shmem-000000008: Permission denied.
Thread 17 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 19 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 18 starts
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-16994-ishm-test_shmem-000000007: Permission denied.
In thread: Block index: 6 mapped at 7fffdaa05000
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 20 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 21 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 22 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 23 starts
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-16994-ishm-test_shmem-000000010: Permission denied.
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-16994-ishm-test_shmem-000000011: Permission denied.
In thread: Block index: 7 mapped at 7fffdca07000
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
In thread: Block index: 3 mapped at 7fffdaa06000
Thread 24 starts
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
Thread 25 starts
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-16994-ishm-test_shmem-000000016: Permission denied.
In thread: Block index: 9 mapped at 7fffdca0b000
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-16994-ishm-test_shmem-000000013: Permission denied.
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-16994-ishm-test_shmem-000000017: Permission denied.
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-16994-ishm-test_shmem-000000020: Permission denied.
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-16994-ishm-test_shmem-000000022: Permission denied.
In thread: Block index: 13 mapped at 7fffdea16000
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-16994-ishm-test_shmem-000000019: Permission denied.
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-16994-ishm-test_shmem-000000004: Permission denied.
In thread: Block index: 16 mapped at 7fffdea12000
In thread: Block index: 18 mapped at 7fffdea11000
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-16994-ishm-test_shmem-000000014: Permission denied.
In thread: Block index: 10 mapped at 7fffdca0c000
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-16994-ishm-test_shmem-000000023: Permission denied.
In thread: Block index: 4 mapped at 7fffe2a23000
In thread: Block index: 19 mapped at 7fffe2a1f000
In thread: Block index: 12 mapped at 7fffe2a1a000
In thread: Block index: 22 mapped at 7fffe2a1b000
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
In thread: Block index: 24 mapped at 7fffe6a28000
In thread: Block index: 1 mapped at 7fffd6a01000
In thread: Block index: 15 mapped at 7fffdea10000
Thread 26 starts
In thread: Block index: 21 mapped at 7fffe6a27000
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-16994-ishm-test_shmem-000000025: Permission denied.
In thread: Block index: 25 mapped at 7fffe6a29000
In thread: Block index: 8 mapped at 7fffdaa07000
In thread: Block index: 5 mapped at 7fffd8a05000
In thread: Block index: 11 mapped at 7fffdca10000
In thread: Block index: 14 mapped at 7fffe2a27000
In thread: Block index: 2 mapped at 7fffd6a05000
In thread: Block index: 20 mapped at 7fffe0a1a000
In thread: Block index: 17 mapped at 7fffdea1a000
In thread: Block index: 23 mapped at 7fffe4a27000
passed
  Test: drvshmem_test_stress 
...linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started 
as linux pthread. (pid=16994)
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as 
linux pthread. (pid=16994)
...
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-16994-ishm-00030294: Permission denied.
_ishm.c:419:create_file():open failed for 
/dev/hugepages/odp-16994-ishm-00030296: Permission denied.
passed

Run Summary:    Type     Total       Ran    Passed Failed Inactive
              suites         1         1       n/a      0        0
               tests         4         4         4      0        0
             asserts 134890809 134890809 134890809      0      n/a

Elapsed time =   82.298 seconds





Reply via email to