From 27013543141e7364417a57bd7f690c9583103cf5 Mon Sep 17 00:00:00 2001 From: JiDe Zhang Date: Thu, 4 Jun 2026 15:02:43 +0800 Subject: [PATCH] chore: raise treeland service priority Keep the compositor responsive under CPU, I/O, and memory pressure by giving the critical display and input path realtime round-robin scheduling. Own the dde-seatd socket setting in Treeland so it no longer depends on a DDM-installed drop-in. --- misc/systemd/treeland.service.in | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/misc/systemd/treeland.service.in b/misc/systemd/treeland.service.in index 4799742042..8c4d54408f 100644 --- a/misc/systemd/treeland.service.in +++ b/misc/systemd/treeland.service.in @@ -13,6 +13,7 @@ RuntimeDirectory=treeland RuntimeDirectoryMode=0700 Environment="XDG_RUNTIME_DIR=%t/treeland" Environment=LIBSEAT_BACKEND=seatd +Environment=SEATD_SOCK=/run/dde-seatd.sock Environment=DSG_APP_ID=org.deepin.dde.treeland Environment=ASAN_SYMBOLIZER_PATH=/usr/bin/llvm-symbolizer # For Debug: if enable asan, you can't get it's log from journalctl, so ensure the log to a file @@ -27,8 +28,14 @@ StandardOutput=null StandardError=null NoNewPrivileges=true -OOMScoreAdjust=-300 -Nice=-15 +OOMScoreAdjust=-1000 +Nice=-20 +CPUWeight=10000 +CPUSchedulingPolicy=rr +CPUSchedulingPriority=20 +IOWeight=10000 +IOSchedulingClass=realtime +IOSchedulingPriority=0 # Enable MemoryDenyWriteExecute will cause Treeland crash in certain # condition (observed on arm64 virtual machine). The coredump indicate