commit 8e034900a21ee6e2812f4e6c05af5e3b1fcfd4ae
Author: Kamil Páral <kamil.paral(a)gmail.com>
Date: Fri Nov 2 15:55:14 2018 +0100
raise file descriptor limits for esync
This increases limits of number of opened files by a process. The main
benefactor is Proton/Wine esync which uses a lot of file descriptors in
order to work properly. The limit value is raised from 4K to 256K, which
is in line with a future systemd change (256K will be the default since
systemd 240). See the links in the configuration file for more
information.
01-steam.conf | 10 ++++++++++
steam.spec | 19 +++++++++++++++++--
2 files changed, 27 insertions(+), 2 deletions(-)
---
diff --git a/01-steam.conf b/01-steam.conf
new file mode 100644
index 0000000..5c4cc55
--- /dev/null
+++ b/01-steam.conf
@@ -0,0 +1,10 @@
+# A systemd configuration override.
+# This belongs into /usr/lib/systemd/{system,user}.conf.d/
+
+[Manager]
+# Increase the file descriptor limit to make Steam Proton/Wine esync work
+# out of the box. The same limit will be increased by default in systemd 240.
+# More info:
+#
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.o...
+#
https://github.com/systemd/systemd/pull/10244
+DefaultLimitNOFILE=1024:262144
diff --git a/steam.spec b/steam.spec
index 0063c64..382ecdf 100644
--- a/steam.spec
+++ b/steam.spec
@@ -3,7 +3,7 @@
Name: steam
Version: 1.0.0.56
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Installer for the Steam software distribution service
# Redistribution and repackaging for Linux is allowed, see license file
License: Steam License Agreement
@@ -25,8 +25,10 @@ Source4: %{name}.appdata.xml
Source8:
https://raw.githubusercontent.com/denilsonsa/udev-joystick-blacklist/mast...
# First generation Nvidia Shield controller seen as mouse:
Source9:
https://raw.githubusercontent.com/cyndis/shield-controller-config/master/...
-
Source10: README.Fedora
+# Configure limits in systemd
+# This should be only needed with systemd < 240
+Source11: 01-steam.conf
# Remove temporary leftover files after run (fixes multiuser):
#
https://github.com/ValveSoftware/steam-for-linux/issues/3570
@@ -154,6 +156,12 @@ install -pm 644 %{SOURCE1} %{SOURCE2}
%{buildroot}%{_sysconfdir}/profile.d
mkdir -p %{buildroot}%{_datadir}/appdata
install -p -m 0644 %{SOURCE4} %{buildroot}%{_datadir}/appdata/
+# Systemd configuration
+mkdir -p %{buildroot}%{_prefix}/lib/systemd/system.conf.d/
+mkdir -p %{buildroot}%{_prefix}/lib/systemd/user.conf.d/
+install -m 644 -p %{SOURCE11} %{buildroot}%{_prefix}/lib/systemd/system.conf.d/
+install -m 644 -p %{SOURCE11} %{buildroot}%{_prefix}/lib/systemd/user.conf.d/
+
%post
%if 0%{?rhel} == 7
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
@@ -190,8 +198,15 @@ fi
%{_prefix}/lib/firewalld/services/%{name}.xml
%config(noreplace) %{_sysconfdir}/profile.d/%{name}.*sh
%{_udevrulesdir}/*
+%{_prefix}/lib/systemd/system.conf.d/
+%{_prefix}/lib/systemd/system.conf.d/01-steam.conf
+%{_prefix}/lib/systemd/user.conf.d/
+%{_prefix}/lib/systemd/user.conf.d/01-steam.conf
%changelog
+* Fri Nov 02 2018 Kamil Páral <kamil.paral(a)gmail.com> - 1.0.0.56-3
+- add systemd configuration for increasing file descriptor limit (for esync)
+
* Mon Oct 15 2018 Simone Caronni <negativo17(a)gmail.com> - 1.0.0.56-2
- Update Vulkan requirements for CentOS/RHEL 7.
- Update ports list for 11th October 2018 client.