Commit 722bad7
committed
feat: add OOM score adjustment tool for critical DDE services
1. Implement dde-oom-score-adj tool to monitor and adjust OOM scores for
critical DDE services
2. Add DConfig configuration for customizable service monitoring list
and target score
3. Set up systemd signal monitoring to detect service startup and adjust
OOM scores in real-time
4. Include automatic capability management via postinst script for
CAP_SYS_RESOURCE
5. Add autostart desktop file for automatic execution during system
startup
6. The tool automatically exits after 3 minutes to avoid long-running
processes
Log: Added OOM score adjustment feature to protect critical DDE services
from being killed by the system OOM killer
Influence:
1. Test that dde-oom-score-adj starts automatically during system boot
2. Verify critical DDE services (dde-session-manager, dde-session@x11)
have adjusted OOM scores
3. Check that the tool exits after 3 minutes as expected
4. Test configuration changes through DConfig interface
5. Verify capability assignment works correctly during package
installation
6. Monitor system logs for any OOM adjustment related errors
feat: 为关键 DDE 服务添加 OOM 分数调整工具
1. 实现 dde-oom-score-adj 工具来监控和调整关键 DDE 服务的 OOM 分数
2. 添加 DConfig 配置用于可自定义的服务监控列表和目标分数
3. 设置 systemd 信号监控以实时检测服务启动并调整 OOM 分数
4. 包含通过 postinst 脚本自动管理 CAP_SYS_RESOURCE 能力
5. 添加自动启动桌面文件用于系统启动时自动执行
6. 工具在 3 分钟后自动退出,避免长时间运行的进程
Log: 新增 OOM 分数调整功能,保护关键 DDE 服务不被系统 OOM killer 终止
Influence:
1. 测试 dde-oom-score-adj 在系统启动时是否自动启动
2. 验证关键 DDE 服务(dde-session-manager, dde-session@x11)是否具有调整
后的 OOM 分数
3. 检查工具是否在 3 分钟后按预期退出
4. 通过 DConfig 接口测试配置更改
5. 验证包安装期间的能力分配是否正确工作
6. 监控系统日志中是否有 OOM 调整相关的错误1 parent c2d4798 commit 722bad7
File tree
12 files changed
+521
-2
lines changed- debian
- misc
- dconf
- src
- tools
- dde-oom-score-adj
12 files changed
+521
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
0 commit comments