Skip to content

Commit 37f19a7

Browse files
committed
fix: enhance system daemon resource management
Add OOMScoreAdjust and Nice settings to improve system daemon stability 1. Set OOMScoreAdjust=-500 to reduce likelihood of OOM killer termination 2. Set Nice=-5 to give the process higher CPU scheduling priority 3. These changes help ensure critical system services remain available 4. Prevents system instability due to resource contention Log: Improved system daemon stability with better resource prioritization Influence: 1. Test system behavior under high memory pressure 2. Verify daemon remains running during system stress 3. Check CPU scheduling priority with nice command 4. Monitor OOM score adjustments during low memory conditions 5. Test overall system stability with multiple resource-intensive applications fix: 增强系统守护进程资源管理 添加 OOMScoreAdjust 和 Nice 设置以提升系统守护进程稳定性 1. 设置 OOMScoreAdjust=-500 降低被 OOM 杀手终止的概率 2. 设置 Nice=-5 给予进程更高的 CPU 调度优先级 3. 这些更改有助于确保关键系统服务保持可用 4. 防止因资源竞争导致的系统不稳定 Log: 通过更好的资源优先级设置提升系统守护进程稳定性 Influence: 1. 在高内存压力下测试系统行为 2. 验证守护进程在系统压力下保持运行 3. 使用 nice 命令检查 CPU 调度优先级 4. 监控低内存条件下的 OOM 分数调整 5. 测试多资源密集型应用下的整体系统稳定性
1 parent b6ba8b0 commit 37f19a7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

misc/systemd/services/system/dde-system-daemon.service

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ ReadWritePaths=-/usr/share/tlp/deepin-system-power-control/
130130
ReadWritePaths=-/etc/tlp.d/
131131
ReadWritePaths=-/run/tlp/
132132

133+
OOMScoreAdjust=-500
134+
Nice=-5
133135
[Install]
134136
# We pull this in by graphical.target instead of waiting for the bus
135137
# activation, to speed things up a little: gdm uses this anyway so it is nice

0 commit comments

Comments
 (0)