1
0
mirror of https://github.com/tommytran732/QubesOS-Scripts synced 2025-01-07 14:41:48 -05:00

Add memory configuration

This commit is contained in:
Tommy 2024-12-22 14:09:15 -07:00 committed by GitHub
parent a00bff2fd5
commit 92c9259e46
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -213,4 +213,16 @@ Add this to the Linux karg:
```
xen-pciback.hide=(01:00.0)(01:00.1)(01:00.2)(01:00.3)(00:14.0)(00:1f.6)(2c:00.0)(54:00.0)
```
```
### Memory configuration
Default Qubes allocates 4GB to dom0, and creates a 4GB SWAP partition. Since I have much better hardware, I opt to allocate 8GB to dom0 and use ZRAM instead.
Increase dom0 memory by editing `/etc/default/grub` and changing dom0_mem=max:8192M.
To use zram:
- `qubes-dom0-update zram-generator`
- Type the following file to `/etc/systemd/zram-generator`: https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/systemd/zram-generator.conf
Reboot to apply the changes.