Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust default process/threads limit #532

Merged
merged 1 commit into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions debian/qubes-core-agent.install
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ etc/qubes/rpc-config/qubes.VMExecGUI
etc/qubes/suspend-post.d/README
etc/qubes/suspend-post.d/*.sh
etc/qubes/suspend-pre.d/README
etc/security/limits.d/90-qubes-core.conf
etc/sudoers.d/qt_x11_no_mitshm
etc/sudoers.d/umask
etc/sysctl.d/20_tcp_timestamps.conf
Expand Down Expand Up @@ -106,6 +107,7 @@ lib/systemd/system/sysinit.target.d/30_qubes.conf
lib/systemd/system/systemd-timesyncd.service.d/30_qubes.conf
lib/systemd/system/systemd-logind.service.d/30_qubes.conf
lib/systemd/resolved.conf.d/30_resolved-no-mdns-or-llmnr.conf
usr/lib/sysctl.d/20-qubes-core.conf
usr/lib/systemd/user/tracker-extract-3.service.d/30_qubes.conf
usr/lib/systemd/user/tracker-miner-fs-3.service.d/30_qubes.conf
usr/lib/systemd/user/tracker-miner-fs-control-3.service.d/30_qubes.conf
Expand Down
5 changes: 5 additions & 0 deletions misc/20-qubes-core.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# With memory hotplug enabled, default value is calculated based on the initial
# memory, and is too low for some heavy multi-threads applications like
# Firefox. Raise the limit

kernel.threads-max = 51200
5 changes: 5 additions & 0 deletions misc/90-qubes-core.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# With memory hotplug enabled, default value is calculated based on the initial
# memory, and is too low (below 1000) for some heavy multi-threads applications
# like Firefox. Raise the limit
@qubes hard nproc 51200
@qubes soft nproc 51200
2 changes: 2 additions & 0 deletions misc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ install:
install -m 0755 -d $(DESTDIR)/etc/xdg/xfce4/xfconf/xfce-perchannel-xml
install -m 0644 -t $(DESTDIR)/etc/xdg/xfce4/xfconf/xfce-perchannel-xml xfce4-notifyd.xml
install -m 0644 -t $(DESTDIR)/etc/xdg/xfce4/xfconf/xfce-perchannel-xml displays.xml
install -m 0644 -D -t $(DESTDIR)/etc/security/limits.d 90-qubes-core.conf
install -m 0644 -D -t $(DESTDIR)/usr/lib/sysctl.d 20-qubes-core.conf

marker-vm: marker-vm.in
printf "$(VERSION)" | cut -f 1,2 -d . | cat $< - > marker-vm
2 changes: 2 additions & 0 deletions rpm_spec/core-agent.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -974,6 +974,8 @@ rm -f %{name}-%{version}
%config(noreplace) /etc/dconf/db/local.d/dpi
%config(noreplace) /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-notifyd.xml
%config(noreplace) /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/displays.xml
%config(noreplace) /etc/security/limits.d/90-qubes-core.conf
/usr/lib/sysctl.d/20-qubes-core.conf
%_udevrulesdir/50-qubes-mem-hotplug.rules
%_unitdir/[email protected]/90-session-stop-timeout.conf
/usr/sbin/qubes-serial-login
Expand Down