https://github.com/sprookie/monitor
user-wise kmod to monitor the CPU usage, memory usage, and I/O usage for a specified user
https://github.com/sprookie/monitor
c cgroup kernel-5-10 kernel-module monitor
Last synced: 8 months ago
JSON representation
user-wise kmod to monitor the CPU usage, memory usage, and I/O usage for a specified user
- Host: GitHub
- URL: https://github.com/sprookie/monitor
- Owner: sprookie
- Created: 2024-11-01T05:58:01.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-01T06:05:02.000Z (over 1 year ago)
- Last Synced: 2025-04-01T12:51:25.544Z (about 1 year ago)
- Topics: c, cgroup, kernel-5-10, kernel-module, monitor
- Language: C
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
**资源限制思路**:用户态程序利用cgroupv2,自动为每个登录上来要被监控的用户创建cgroup,根据文件限制对应资源的多少
**资源监控:**
内核模块维护一个需要被监控用户链表,并设置定时器,定时循环链表计算或者读取cpu、io、memory资源信息