From d0a1bedd223a592804956402add0e2eee8d39a15 Mon Sep 17 00:00:00 2001 From: Sukchan Lee Date: Mon, 4 Dec 2023 20:46:58 +0900 Subject: [PATCH] [AMF] Increase the number of SLICE 512 to 1024 (#2761)(#2765) --- lib/proto/types.h | 8 +++++++- tests/app/5gc-init.c | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/proto/types.h b/lib/proto/types.h index ae241ac95..78b013a15 100644 --- a/lib/proto/types.h +++ b/lib/proto/types.h @@ -90,11 +90,17 @@ extern "C" { #define OGS_MAX_NUM_OF_SUPPORTED_TA 256 /* maxnoofTACs: 256 */ /* + * * If I set it to 1024, the AMF crashes in the 'meson test -v registration'. * So for now, I will use 512. Once I figure out the cause of this problem, * I will try 1024. + * + * + * After increasing the delay in test/app/5gc-init.c from 300ms to 500ms, + * the problem has been resolved. It seems that as the context memory increases, + * it takes time for the AMF execution to be completed." */ -#define OGS_MAX_NUM_OF_SLICE_SUPPORT 512 /* maxnoofSliceItems: 1024 */ +#define OGS_MAX_NUM_OF_SLICE_SUPPORT 1024 /* maxnoofSliceItems: 1024 */ #define OGS_MAX_NUM_OF_PLMN_PER_MME 32 /* maxnoofPLMNs(MME): 32 */ #define OGS_MAX_NUM_OF_PLMN 12 /* maxnoofPLMNs(AMF): 12 */ diff --git a/tests/app/5gc-init.c b/tests/app/5gc-init.c index 94c19b067..6dda68655 100644 --- a/tests/app/5gc-init.c +++ b/tests/app/5gc-init.c @@ -85,7 +85,7 @@ int app_initialize(const char *const argv[]) * * If freeDiameter is not used, it uses a delay of less than 4 seconds. */ - ogs_msleep(300); + ogs_msleep(500); return OGS_OK;; }