Document remaining neon customizations from shell history; fix zram loose ends
Persist vm.swappiness=100 in /etc/sysctl.d/99-zram.conf and delete the unused /swapfile. New NEON-CUSTOMIZATIONS.md covers keyd, USB-C DP modules, HWE-edge kernel, tmpfs /tmp and localepurge, r8152 DKMS history, tailscale, and third-party repos/tools. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
637dd035cc
commit
7b64fdb539
@@ -56,22 +56,17 @@ zram-related on the kernel command line.
|
||||
4. **Raised `vm.swappiness` to 100**, at runtime only
|
||||
(`sudo sysctl vm.swappiness=100`). See the loose ends below.
|
||||
|
||||
## Loose ends (as of 2026-09-27)
|
||||
## Loose ends (fixed 2026-09-27)
|
||||
|
||||
- **`vm.swappiness=100` was never made persistent.** It's back to the
|
||||
default **60** now: no `swappiness` line in `/etc/sysctl.conf`,
|
||||
`/etc/sysctl.d/` or `/usr/lib/sysctl.d/`. To keep it (a common choice
|
||||
with zram-only swap, since swapping to zram is cheap):
|
||||
```
|
||||
echo 'vm.swappiness=100' | sudo tee /etc/sysctl.d/99-zram.conf
|
||||
sudo sysctl --system
|
||||
```
|
||||
Some zram guides also set `vm.page-cluster=0` (currently `3`), because
|
||||
zram has no seek cost and readahead just wastes work.
|
||||
- **`/swapfile` still exists**: 512MiB, `root:root 0600`, dated
|
||||
2026-03-04. It's unused since its fstab line is commented out. Remove
|
||||
it with `sudo rm /swapfile` to get the space back, or keep it as a
|
||||
low-priority fallback.
|
||||
- **`vm.swappiness=100` hadn't been made persistent**: it had been set
|
||||
with `sysctl` at runtime only and was back to the default 60. Now
|
||||
persisted in `/etc/sysctl.d/99-zram.conf` (`vm.swappiness=100`) and
|
||||
applied live. Swapping to zram is cheap, so a high swappiness is the
|
||||
usual choice. Not changed: `vm.page-cluster` (still `3`). Some zram
|
||||
guides set it to `0`, since zram has no seek cost and readahead just
|
||||
wastes work.
|
||||
- **The unused `/swapfile`** (512MiB, dated 2026-03-04, fstab line
|
||||
commented out) was deleted.
|
||||
|
||||
## Reapplying on a fresh neon install
|
||||
|
||||
@@ -86,7 +81,7 @@ EOF
|
||||
sudo systemctl enable --now zramswap
|
||||
# comment out any /swapfile line in /etc/fstab, then:
|
||||
sudo swapoff /swapfile
|
||||
# optional: persist swappiness
|
||||
# persist swappiness
|
||||
echo 'vm.swappiness=100' | sudo tee /etc/sysctl.d/99-zram.conf && sudo sysctl --system
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user