428 Star 1.5K Fork 1.6K

GVPopenEuler/kernel

 / 详情

使能filescgroup

已完成
需求
创建于  
2023-12-11 15:26

【特性描述】
使能filescgroup,对于cgroup级别打开文件句柄数进行控制
Add a lockless resource controller for limiting the number of open
file handles. This allows us to catch misbehaving processes
and return EMFILE instead of ENOMEM for kernel memory limits.

如果打开的文件超过限制:错误码返回如下
bash: fork: Too many open files

【硬件架构】
NA
【特性约束】
NA
【涉及仓库】
https://gitee.com/openeuler/kernel
【交付个人/团队】
huawei sig

评论 (9)

chenridong 创建了需求 1年前

Hi chenridong, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: Kernel, and any of the maintainers.

cgroups: Resource controller for open files
Merge OLK-5.10 fix: e2b24a5adac6 filescontrol: silence suspicious RCU warning
Merge OLK-5.10 fix: 7e485fecbd7f files_cgroup: Fix soft lockup when refcnt overflow.
Merge OLK-5.10 fix: a466f5dda467 fs/filescontrol.c: fix warning:large integer implicitly truncated to unsigned type
Merge OLK-5.10 fix: 338fc539bb48 fs: fix files.usage bug when move tasks
Merge OLK-5.10 fix: 1951d5627095 files_cgroup: fix error pointer when kvm_vm_worker_thread
Merge OLK-5.10 fix: 0b7329771d3d cgroup/files: use task_get_css() to get a valid css during dup_fd()
Merge OLK-5.10 fix: 87056bf28510 cgroups: Resource controller for open files

conflict:
patch不能直接打,手动增加
输入图片说明

filescontrol-silence-suspicious-RCU-warning
不能patch,手动增加:
输入图片说明
修改后:
输入图片说明

chenridong 修改了描述 1年前
chenridong 修改了描述 1年前
chenridong 通过合并 Pull Request !3588: files cgroups任务状态新建 修改为已完成 1年前

24.03执行ltp测试cgroup的失败,查看/proc/cgroups 时候发现files未启用,当前是否预期行为

#subsys_name    hierarchy       num_cgroups     enabled
files   0       1       0  

登录 后才可以发表评论

状态
负责人
项目
预计工期 (小时)
开始日期   -   截止日期
-
置顶选项
优先级
分支
参与者(3)
5329419 openeuler ci bot 1632792936 chenridong-chenridong yang_chenguang-yangchen_guang
C
1
https://gitee.com/openeuler/kernel.git
git@gitee.com:openeuler/kernel.git
openeuler
kernel
kernel

搜索帮助