29 lines
1.1 KiB
Diff
29 lines
1.1 KiB
Diff
From e61687773922c3aaae63a8cd7b4f488bf6c967b6 Mon Sep 17 00:00:00 2001
|
|
From: WangFengTu <wangfengtu@huawei.com>
|
|
Date: Wed, 12 May 2021 11:31:01 +0800
|
|
Subject: [PATCH 097/104] fix memory usage of stats not right when runtime is
|
|
kata
|
|
|
|
Signed-off-by: WangFengTu <wangfengtu@huawei.com>
|
|
---
|
|
src/daemon/modules/runtime/isula/isula_rt_ops.c | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
diff --git a/src/daemon/modules/runtime/isula/isula_rt_ops.c b/src/daemon/modules/runtime/isula/isula_rt_ops.c
|
|
index 3b55ac88..f6067ca1 100644
|
|
--- a/src/daemon/modules/runtime/isula/isula_rt_ops.c
|
|
+++ b/src/daemon/modules/runtime/isula/isula_rt_ops.c
|
|
@@ -562,6 +562,9 @@ static int runtime_call_stats(const char *workdir, const char *runtime, const ch
|
|
info->mem_used = stats->data->memory->usage->usage;
|
|
info->mem_limit = stats->data->memory->usage->limit;
|
|
}
|
|
+ if (stats != NULL && stats->data != NULL && stats->data->memory != NULL && stats->data->memory->raw) {
|
|
+ info->inactive_file_total = stats->data->memory->raw->total_inactive_file;
|
|
+ }
|
|
|
|
out:
|
|
free_shim_client_runtime_stats(stats);
|
|
--
|
|
2.25.1
|
|
|