7 Star 1 Fork 40

src-openEuler/lcr

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0004-add-swap-usage-fields-in-shim-stats-and-container-in.patch 1.78 KB
一键复制 编辑 原始数据 按行查看 历史
jake 提交于 2024-06-11 08:07 . sync from upstream
From 299f54b13a85855540e6d28e9c9bfefb7bc66f14 Mon Sep 17 00:00:00 2001
From: jikai <[email protected]>
Date: Fri, 12 Jan 2024 11:30:34 +0800
Subject: [PATCH 04/14] add swap usage fields in shim stats and container info
Signed-off-by: jikai <[email protected]>
---
src/json/schema/container/info.json | 6 ++++++
src/json/schema/shim/client/runtime-stats.json | 11 +++++++++++
2 files changed, 17 insertions(+)
diff --git a/src/json/schema/container/info.json b/src/json/schema/container/info.json
index 53d8a91..3bf1033 100644
--- a/src/json/schema/container/info.json
+++ b/src/json/schema/container/info.json
@@ -79,6 +79,12 @@
},
"timestamp": {
"type": "uint64"
+ },
+ "swap_used": {
+ "type": "uint64"
+ },
+ "swap_limit": {
+ "type": "uint64"
}
}
}
diff --git a/src/json/schema/shim/client/runtime-stats.json b/src/json/schema/shim/client/runtime-stats.json
index 35cfe64..9d92a81 100644
--- a/src/json/schema/shim/client/runtime-stats.json
+++ b/src/json/schema/shim/client/runtime-stats.json
@@ -63,6 +63,17 @@
"$ref": "../../defs.json#/definitions/uint64"
}
}
+ },
+ "swap": {
+ "type": "object",
+ "properties": {
+ "usage": {
+ "$ref": "../../defs.json#/definitions/uint64"
+ },
+ "limit": {
+ "$ref": "../../defs.json#/definitions/uint64"
+ }
+ }
}
}
},
--
2.34.1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/lcr.git
[email protected]:src-openeuler/lcr.git
src-openeuler
lcr
lcr
master

搜索帮助