From 8ecc327cbdd5752b07b463db41584870e9fe707b Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Tue, 13 Aug 2024 16:58:53 +0800 Subject: [PATCH] change default paramete --- source/common/src/tglobal.c | 4 ++-- source/dnode/mgmt/test/sut/src/sut.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/common/src/tglobal.c b/source/common/src/tglobal.c index 2083c7b896..db3b6b5c64 100644 --- a/source/common/src/tglobal.c +++ b/source/common/src/tglobal.c @@ -650,7 +650,7 @@ static int32_t taosAddServerCfg(SConfig *pCfg) { tsNumOfSnodeWriteThreads = tsNumOfCores / 4; tsNumOfSnodeWriteThreads = TRANGE(tsNumOfSnodeWriteThreads, 2, 4); - tsQueueMemoryAllowed = tsTotalMemoryKB * 1024 * 0.2; + tsQueueMemoryAllowed = tsTotalMemoryKB * 1024 * 0.1; tsQueueMemoryAllowed = TRANGE(tsQueueMemoryAllowed, TSDB_MAX_MSG_SIZE * 10LL, TSDB_MAX_MSG_SIZE * 10000LL); // clang-format off @@ -916,7 +916,7 @@ static int32_t taosUpdateServerCfg(SConfig *pCfg) { pItem = cfgGetItem(pCfg, "rpcQueueMemoryAllowed"); if (pItem != NULL && pItem->stype == CFG_STYPE_DEFAULT) { - tsQueueMemoryAllowed = totalMemoryKB * 1024 * 0.2; + tsQueueMemoryAllowed = totalMemoryKB * 1024 * 0.1; tsQueueMemoryAllowed = TRANGE(tsQueueMemoryAllowed, TSDB_MAX_MSG_SIZE * 10LL, TSDB_MAX_MSG_SIZE * 10000LL); pItem->i64 = tsQueueMemoryAllowed; pItem->stype = stype; diff --git a/source/dnode/mgmt/test/sut/src/sut.cpp b/source/dnode/mgmt/test/sut/src/sut.cpp index 15485c6f87..13c8c73f44 100644 --- a/source/dnode/mgmt/test/sut/src/sut.cpp +++ b/source/dnode/mgmt/test/sut/src/sut.cpp @@ -36,7 +36,7 @@ void Testbase::InitLog(const char* path) { tstrncpy(tsLogDir, path, PATH_MAX); taosGetSystemInfo(); - tsQueueMemoryAllowed = tsTotalMemoryKB * 0.2; + tsQueueMemoryAllowed = tsTotalMemoryKB * 0.1; if (taosInitLog("taosdlog", 1, false) != 0) { printf("failed to init log file\n"); }