-
-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust default process/threads limit
When VM is started with memory hotplug, the initial memory size is quite small. It is used for calculating default threads limit, and that in turns is used to calculate default process count limit per user. For a VM started with 400MB (the default) both limits are too low for some threads/processes-heavy applications like Firefox. Adjust the limits to a static higher value, based on defaults when memory hotplug is disabled (and rounded to a nice number). Fixes QubesOS/qubes-issues#8960 (cherry picked from commit cefe875)
- Loading branch information
Showing
5 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|