summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLu Qiuwen <[email protected]>2021-05-17 15:38:58 +0800
committerLu Qiuwen <[email protected]>2021-05-17 15:38:58 +0800
commitf7d0f6c30c644dd96bceef2d45e6808c423bf6e4 (patch)
tree88373fb7acd282215a5434f329e1db6d7c00d524
parent21fa879a84c4efa086a95cd0844dc4220176aae7 (diff)
增加限制每个NUMA节点最大大页内存大小的功能。
-rw-r--r--service/src/core.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/service/src/core.c b/service/src/core.c
index abce8f3..44734e9 100644
--- a/service/src/core.c
+++ b/service/src/core.c
@@ -348,6 +348,17 @@ static void sc_eal_init(struct sc_main * sc, const char * cmd)
WRITE_ARG(str_mem);
}
+ char str_socket_mem[MR_STRING_MAX];
+ ret = MESA_load_profile_string_nodef(sc->local_cfgfile, "eal", "socket-mem",
+ str_socket_mem, sizeof(str_socket_mem));
+
+ if (ret > 0)
+ {
+ WRITE_ARG("--socket-mem");
+ WRITE_ARG(str_socket_mem);
+ }
+
+
char str_file_prefix[MR_STRING_MAX];
ret = MESA_load_profile_string_nodef(sc->local_cfgfile, "eal", "file-prefix",
str_file_prefix, sizeof(str_file_prefix));