[暂不合并]fix(dde-dconfig-daemon): disable THP before service startup#150
Open
mhduiy wants to merge 1 commit into
Open
[暂不合并]fix(dde-dconfig-daemon): disable THP before service startup#150mhduiy wants to merge 1 commit into
mhduiy wants to merge 1 commit into
Conversation
1. Added ExecStartPre to disable Transparent Huge Pages before dconfig daemon starts 2. Uses dde-thp-disable script to prevent THP-related memory issues Log: Disable THP before dde-dconfig-daemon startup fix(dde-dconfig-daemon): 服务启动前禁用透明大页 1. 新增 ExecStartPre 在 dconfig daemon 启动前禁用透明大页 2. 通过 dde-thp-disable 脚本避免 THP 导致的内存问题 Log: 在 dde-dconfig-daemon 启动前禁用透明大页 PMS: TASK-390043
Contributor
Author
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: mhduiy The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
deepin pr auto review你好!我是CodeGeeX。我已仔细审查了你提供的 Git Diff 输入。本次修改是在 以下是我从语法逻辑、代码质量、代码性能和代码安全四个维度提出的审查意见和改进建议: 1. 语法逻辑
2. 代码质量
3. 代码性能
4. 代码安全
综合修改建议基于以上分析,建议将 Diff 修改如下: [Unit]
Description=Deepin Dconfig Daemon
After=dbus.socket
[Service]
Type=dbus
User=deepin-daemon
BusName=org.desktopspec.ConfigManager
# Workaround: Disable THP to prevent potential performance latency spikes.
# The '+' prefix ensures this runs as root, as modifying THP requires admin privileges.
# The '-' prefix ignores errors if the script is missing or fails.
ExecStartPre=+-/usr/libexec/dde-thp-disable
ExecStart=/usr/bin/dde-dconfig-daemon
Environment=DSG_DATA_DIRS=/usr/share/dsg:/var/lib/linglong/entries/share/dsg核心改动说明:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Log: Disable THP before dde-dconfig-daemon startup
fix(dde-dconfig-daemon): 服务启动前禁用透明大页
Log: 在 dde-dconfig-daemon 启动前禁用透明大页
PMS: TASK-390043