Skip to content

Commit 7199a91

Browse files
committed
Increase default initial memory for Whonix workstation
It appears that Whonix workstation starts more things on boot, and with default 400M initial memory it's swapping quite a bit, resulting in slow startup. Increase default memory for it, but only if user hasn't modified it before already. The template's value is used as default for app qubes based on it, so it's enough to adjust on the template. Note this will also apply to existing templates, at next update, as features are re-requested on each update.
1 parent ed32c42 commit 7199a91

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

qubeswhonix/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,10 @@ def on_features_request(self, vm, _event, untrusted_features):
133133
if 'whonix-ws' in untrusted_features:
134134
vm.features['whonix-ws'] = True
135135
vm.tags.add('whonix-updatevm')
136+
if vm.property_is_default("memory"):
137+
# Whonix workstation starts more things on boot and as such
138+
# needs more memory to properly start (without excessive swapping):
139+
vm.memory = 500
136140

137141
@qubes.ext.handler('domain-load')
138142
def on_domain_load(self, vm, _event):

0 commit comments

Comments
 (0)