From c7c3ef87af5939fcec0edf382c47c4b6f723778d Mon Sep 17 00:00:00 2001 From: twagner12 Date: Fri, 8 May 2026 06:22:29 -0500 Subject: [PATCH] Fix DefaultLimitNOFILE typo so fd-limit raise actually applies (#5661) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `DefaultLimitNOFILESoft` is not a valid systemd configuration key. systemd silently ignores it and emits this warning on every boot, for both the system manager (PID 1) and the user manager: Unknown key 'DefaultLimitNOFILESoft' in section [Manager], ignoring. The consequence is that the script's stated goal of raising the soft fd limit from 1024 to 65536 has not actually been happening: dev tools (VS Code, Docker, dev servers, databases) continue to run with systemd's default 1024 soft limit. The valid key is `DefaultLimitNOFILE`, which accepts either a single value (sets both soft and hard) or `SOFT:HARD`. Using `65536:524288` raises the soft limit while preserving systemd's typical 524288 hard-limit default — using the bare `=65536` form would lower the hard limit, which would be a regression. After this change and `systemctl daemon-reexec` on both managers, `systemctl show | grep DefaultLimitNOFILE` reports: DefaultLimitNOFILE=524288 (hard) DefaultLimitNOFILESoft=65536 (soft, derived display attribute) and the boot-time "Unknown key" warnings disappear. (The typo likely originated from someone reading `systemctl show` output, where `DefaultLimitNOFILESoft=` appears as a read-only display attribute for the soft component of the parsed limit. It looks like a config key but isn't.) --- install/config/increase-fd-limit.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/config/increase-fd-limit.sh b/install/config/increase-fd-limit.sh index 45f1e2ea..eb35c0af 100644 --- a/install/config/increase-fd-limit.sh +++ b/install/config/increase-fd-limit.sh @@ -4,7 +4,7 @@ sudo mkdir -p /etc/systemd/system.conf.d /etc/systemd/user.conf.d sudo tee /etc/systemd/system.conf.d/99-omarchy-nofile.conf >/dev/null <<'EOF' [Manager] -DefaultLimitNOFILESoft=65536 +DefaultLimitNOFILE=65536:524288 EOF sudo cp /etc/systemd/system.conf.d/99-omarchy-nofile.conf \