diff mbox

[API-NEXT] test: drv: shm: decrease test memory requirement

Message ID 1476887413-15272-1-git-send-email-christophe.milard@linaro.org
State New
Headers show

Commit Message

Christophe Milard Oct. 19, 2016, 2:30 p.m. UTC
The memory consumption is proporsional to the number of ODP threads
available. The test failed on systems with large number of CPU, due
to outage ot pre-allocaed address space. This patch shrinks the test
requirement.

Signed-off-by: Christophe Milard <christophe.milard@linaro.org>

---
 test/common_plat/validation/drv/drvshmem/drvshmem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.7.4

Comments

Elo, Matias (Nokia - FI/Espoo) Oct. 21, 2016, 8:21 a.m. UTC | #1
Reviewed-and-tested-by: Matias Elo <matias.elo@nokia.com>

> -----Original Message-----

> From: Christophe Milard [mailto:christophe.milard@linaro.org]

> Sent: Wednesday, October 19, 2016 5:30 PM

> To: bill.fischofer@linaro.org; Elo, Matias (Nokia - FI/Espoo) <matias.elo@nokia-

> bell-labs.com>; lng-odp@lists.linaro.org

> Cc: Christophe Milard <christophe.milard@linaro.org>

> Subject: [API-NEXT PATCH] test: drv: shm: decrease test memory requirement

> 

> The memory consumption is proporsional to the number of ODP threads

> available. The test failed on systems with large number of CPU, due

> to outage ot pre-allocaed address space. This patch shrinks the test

> requirement.

> 

> Signed-off-by: Christophe Milard <christophe.milard@linaro.org>

> ---

>  test/common_plat/validation/drv/drvshmem/drvshmem.c | 2 +-

>  1 file changed, 1 insertion(+), 1 deletion(-)

> 

> diff --git a/test/common_plat/validation/drv/drvshmem/drvshmem.c

> b/test/common_plat/validation/drv/drvshmem/drvshmem.c

> index 5e6d2e5..559c55d 100644

> --- a/test/common_plat/validation/drv/drvshmem/drvshmem.c

> +++ b/test/common_plat/validation/drv/drvshmem/drvshmem.c

> @@ -16,7 +16,7 @@

>  #define TEST_SHARE_BAR (0xf0f0f0f)

>  #define SMALL_MEM 10

>  #define MEDIUM_MEM 4096

> -#define BIG_MEM 16777216

> +#define BIG_MEM 65536

>  #define STRESS_SIZE 32		/* power of 2 and <=256 */

>  #define STRESS_RANDOM_SZ 5

>  #define STRESS_ITERATION 5000

> --

> 2.7.4
Maxim Uvarov Oct. 21, 2016, 12:59 p.m. UTC | #2
Merged,

Maxim.

On 10/21/16 11:21, Elo, Matias (Nokia - FI/Espoo) wrote:
> Reviewed-and-tested-by: Matias Elo <matias.elo@nokia.com>

>

>> -----Original Message-----

>> From: Christophe Milard [mailto:christophe.milard@linaro.org]

>> Sent: Wednesday, October 19, 2016 5:30 PM

>> To: bill.fischofer@linaro.org; Elo, Matias (Nokia - FI/Espoo) <matias.elo@nokia-

>> bell-labs.com>; lng-odp@lists.linaro.org

>> Cc: Christophe Milard <christophe.milard@linaro.org>

>> Subject: [API-NEXT PATCH] test: drv: shm: decrease test memory requirement

>>

>> The memory consumption is proporsional to the number of ODP threads

>> available. The test failed on systems with large number of CPU, due

>> to outage ot pre-allocaed address space. This patch shrinks the test

>> requirement.

>>

>> Signed-off-by: Christophe Milard <christophe.milard@linaro.org>

>> ---

>>   test/common_plat/validation/drv/drvshmem/drvshmem.c | 2 +-

>>   1 file changed, 1 insertion(+), 1 deletion(-)

>>

>> diff --git a/test/common_plat/validation/drv/drvshmem/drvshmem.c

>> b/test/common_plat/validation/drv/drvshmem/drvshmem.c

>> index 5e6d2e5..559c55d 100644

>> --- a/test/common_plat/validation/drv/drvshmem/drvshmem.c

>> +++ b/test/common_plat/validation/drv/drvshmem/drvshmem.c

>> @@ -16,7 +16,7 @@

>>   #define TEST_SHARE_BAR (0xf0f0f0f)

>>   #define SMALL_MEM 10

>>   #define MEDIUM_MEM 4096

>> -#define BIG_MEM 16777216

>> +#define BIG_MEM 65536

>>   #define STRESS_SIZE 32		/* power of 2 and <=256 */

>>   #define STRESS_RANDOM_SZ 5

>>   #define STRESS_ITERATION 5000

>> --

>> 2.7.4
diff mbox

Patch

diff --git a/test/common_plat/validation/drv/drvshmem/drvshmem.c b/test/common_plat/validation/drv/drvshmem/drvshmem.c
index 5e6d2e5..559c55d 100644
--- a/test/common_plat/validation/drv/drvshmem/drvshmem.c
+++ b/test/common_plat/validation/drv/drvshmem/drvshmem.c
@@ -16,7 +16,7 @@ 
 #define TEST_SHARE_BAR (0xf0f0f0f)
 #define SMALL_MEM 10
 #define MEDIUM_MEM 4096
-#define BIG_MEM 16777216
+#define BIG_MEM 65536
 #define STRESS_SIZE 32		/* power of 2 and <=256 */
 #define STRESS_RANDOM_SZ 5
 #define STRESS_ITERATION 5000