增加对 1GB Huge Pages 的支持,添加相关服务和配置,优化安装脚本
Build and Release / build-and-test (amd64) (push) Successful in 1m40s
Build and Release / build-and-test (arm64) (push) Successful in 1m40s
Build and Release / release (push) Failing after 4s

This commit is contained in:
2026-08-05 12:50:18 +08:00
parent 99a17f1852
commit b04d41d783
7 changed files with 49 additions and 75 deletions
+9
View File
@@ -0,0 +1,9 @@
[Unit]
Description=Reserve Huge Pages for XXXig
Before=xxxig-daemon.service
ConditionPathExists=/etc/xxxig/1gb-pages.enabled
ConditionPathExists=/sys/kernel/mm/hugepages/hugepages-1048576kB/nr_hugepages
[Service]
Type=oneshot
ExecStart=/usr/libexec/xxxig-enable-1gb-pages