Repository navigation
Conversation
1. Add thpMode field to DConfig schema (readwrite, private, default force_enable). 2. Add AppThpMode constant in constant.h. 3. Add cgroupthp module: validate mode, read per-app DConfig override, resolve cgroup path via systemd DBus, write memory.thp_mode. 4. Integrate CgroupThp::applyForUnit() in application launch flow. 5. Add unit tests for mode validation. Log: 为 dde-application-manager 添加大页(THP)配置设置与覆写支持 PMS: TASK-398769 Influence: 应用启动时根据 DConfig 配置设置 cgroup 的 THP 模式,失败不阻断启动
|
Skipping CI for Draft Pull Request. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: BLumia 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 |
Reviewer's GuideSchema and migrationsAdd the per-application
Uses of the APIInvoke THP mode application after the systemd launch job completes, using the resolved unit name and application ID.
ImplementationAdd the internal THP helper and configuration key used to validate per-application modes, resolve systemd cgroups, and write
TestsTest acceptance of supported THP modes and rejection of unknown values.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
变更概述
为 dde-application-manager 添加大页(THP)配置设置与覆写支持。
变更内容
misc/dsg/configs/dde-application-manager/org.deepin.dde.application-manager.json:新增thpMode字段,默认值"force_enable",permissions: "readwrite",visibility: "private"src/constant.h:新增constexpr static auto &AppThpMode = u"thpMode";src/cgroupthp.h+src/cgroupthp.cpp:THP 模式校验、DConfig 读取、cgroup 路径解析、写入memory.thp_mode文件src/dbus/applicationservice.cpp:在应用启动流程中调用CgroupThp::applyForUnit()tests/ut_cgroupthp.cpp:覆盖模式校验场景关联
注意
Summary by Sourcery
Enable configurable transparent huge page modes for launched applications.
New Features:
Enhancements:
Tests: