mirror of
https://github.com/KDE/kde-linux.git
synced 2026-01-28 17:41:51 -05:00
Increase nofile and memlock limits
Part of https://invent.kde.org/kde-linux/kde-linux/-/issues/282 Increasing nofile limits is required for certain games to work, e.g. Stronghold 2, and increasing memlock limits is required for certain real-time workloads, e.g. the use of DAWs.
This commit is contained in:
committed by
Nate Graham
parent
73b69ed96d
commit
cd534ddea2
@@ -1,7 +1,14 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
# SPDX-FileCopyrightText: 2023 Harald Sitter <sitter@kde.org>
|
||||
# SPDX-FileCopyrightText: 2025 Thomas Duckworth <tduck@filotimoproject.org>
|
||||
|
||||
[Manager]
|
||||
TimeoutStartSec=8s
|
||||
DefaultTimeoutStartSec=16s
|
||||
DefaultTimeoutStopSec=8s
|
||||
# Increase the maximum locked memory limit to allow apps which may require this
|
||||
# to lock more memory, such as digital audio workstations.
|
||||
DefaultLimitMEMLOCK=infinity
|
||||
# Increase the number of file descriptors available to user processes
|
||||
# to allow apps which may require this to open more files simultaneously.
|
||||
DefaultLimitNOFILE=4096:524288
|
||||
@@ -1,7 +1,14 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
# SPDX-FileCopyrightText: 2025 Hadi Chokr <hadichokr@icloud.com>
|
||||
# SPDX-FileCopyrightText: 2025 Thomas Duckworth <tduck@filotimoproject.org>
|
||||
|
||||
[Manager]
|
||||
TimeoutStartSec=8s
|
||||
DefaultTimeoutStartSec=16s
|
||||
DefaultTimeoutStopSec=8s
|
||||
# Increase the maximum locked memory limit to allow apps which may require this
|
||||
# to lock more memory, such as digital audio workstations.
|
||||
DefaultLimitMEMLOCK=infinity
|
||||
# Increase the number of file descriptors available to user processes
|
||||
# to allow apps which may require this to open more files simultaneously.
|
||||
DefaultLimitNOFILE=4096:524288
|
||||
@@ -0,0 +1,18 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
# SPDX-FileCopyrightText: 2025 Thomas Duckworth <tduck@filotimoproject.org>
|
||||
|
||||
# This sets the open file limit and memory lock limit for the users logged in via PAM,
|
||||
# more specifically, users logged in on via SSH or tty (console).
|
||||
# Limits related to terminals in graphical sessions depend on a
|
||||
# change in /usr/lib/systemd/user.conf.d or system.conf.d config files.
|
||||
# This does not affect the open file limit or memory lock limit of system services.
|
||||
|
||||
# Increase the number of file descriptors available to user processes
|
||||
# to allow apps which may require this to open more files simultaneously.
|
||||
* soft nofile 4096
|
||||
* hard nofile 524288
|
||||
|
||||
# Increase the maximum locked memory limit to allow apps which may require this
|
||||
# to lock more memory, such as digital audio workstations.
|
||||
* soft memlock 2147484
|
||||
* hard memlock 2147484
|
||||
Reference in New Issue
Block a user