Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
AI teammates
Sign in
Sign up
Fetch the repository succeeded.
description of repo status
Open Source
>
Other
>
Operation System
&&
Donate
Please sign in before you donate.
Cancel
Sign in
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
Watch
Unwatch
Watching
Releases Only
Ignoring
458
Star
1.7K
Fork
1.9K
GVP
openEuler
/
kernel
Closed
Code
Issues
1271
Pull Requests
991
Wiki
Insights
Pipelines
Service
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
DevLens
Don’t show this again
Update failed. Please try again later!
Remove this flag
Content Risk Flag
This task is identified by
as the content contains sensitive information such as code security bugs, privacy leaks, etc., so it is only accessible to contributors of this repository.
free看到的总内存比/sys/fs/cgroup/memory/memory.stat中total_rss看到的内存小
Done
#I3IJ9I
Bug
jpzhang187
Opened this issue
2021-04-13 10:54
内核版本 4.19.90 安装了一套Kubernetes系统(简称k8s集群),该集群包括7个节点,其中3台服务器做为master节点,也做为node节点,其余4台服务器为node节点。 其中集群中第1台mster节点在运行2个月后,发现master节点上安装的pod被驱逐。经查看系统cgroup memory子系统的统计结果,发现/sys/fs/cgroup/memory/memory.usage_in_bytes的值比free统计的memory总计值还要大。 随后查看/sys/fs/cgroup/memory/memory.stat的统计值,发现其中total_rss值也是大于总的物理内存 因为k8s集群根据total_rss来判断内存已经超限,从而引起master节点上的pod被驱逐。导致业务不能够正常运行 /sys/fs/cgroup/memory/memory.stat total_rss 319230640128 free -m 看到 total内存为 261016 需要解释一下total_rss为什么大于实际物理内存 通过分析total_rss,解决环境中节点的pod不再被驱逐,不影响业务使用
内核版本 4.19.90 安装了一套Kubernetes系统(简称k8s集群),该集群包括7个节点,其中3台服务器做为master节点,也做为node节点,其余4台服务器为node节点。 其中集群中第1台mster节点在运行2个月后,发现master节点上安装的pod被驱逐。经查看系统cgroup memory子系统的统计结果,发现/sys/fs/cgroup/memory/memory.usage_in_bytes的值比free统计的memory总计值还要大。 随后查看/sys/fs/cgroup/memory/memory.stat的统计值,发现其中total_rss值也是大于总的物理内存 因为k8s集群根据total_rss来判断内存已经超限,从而引起master节点上的pod被驱逐。导致业务不能够正常运行 /sys/fs/cgroup/memory/memory.stat total_rss 319230640128 free -m 看到 total内存为 261016 需要解释一下total_rss为什么大于实际物理内存 通过分析total_rss,解决环境中节点的pod不再被驱逐,不影响业务使用
Comments (
7
)
Sign in
to comment
Status
Done
Backlog
已挂起
Fixing
Confirmed
Done
Accepted
Canceled
Assignees
Not set
成坚 (CHENG Jian)
gatieme
Assignee
Collaborator
+Assign
+Mention
Labels
Not set
Projects
Unprojected
Unprojected
Pull Requests
None yet
None yet
Successfully merging a pull request will close this issue.
Branches
No related branch
Branches (
-
)
Tags (
-
)
Planed to start   -   Planed to end
-
Top level
Not Top
Top Level: High
Top Level: Medium
Top Level: Low
Priority
Not specified
Serious
Main
Secondary
Unimportant
Duration
(hours)
参与者(4)
C
1
https://gitee.com/openeuler/kernel.git
git@gitee.com:openeuler/kernel.git
openeuler
kernel
kernel
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register