Skip to content

Commit

Permalink
fix: add information cpu and memory
Browse files Browse the repository at this point in the history
  • Loading branch information
DuanKuanJun committed Jun 6, 2024
1 parent a4fd4b7 commit 6f93351
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/benchInsert.c
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,8 @@ int32_t toolsGetDefaultVGroups() {

int64_t MemKB = 0;
taosGetTotalMemory(&MemKB);

infoPrint("check local machine CPU: %d Memory:%d MB \n", cores, (int32_t)(MemKB/1024));
if (MemKB <= 2*1024*1024) { // 2G
return 1;
} else if (MemKB <= 4*1024*1024) { // 4G
Expand Down

0 comments on commit 6f93351

Please sign in to comment.