Ubuntu 24.04 doesn't respect vm.swappiness
My sysctl vm.swappiness returns vm.swappiness = 180.
There’s a ton of unused swap, but my RAM is almost 100% full. I’m using zRAM. This is my main workstation (laptop).
I am running 2 Ubuntu 22.04 LTS servers with this exact setup. The experience regarding vm.swappiness is totally different.
---
Here's my zRAM script:
```
#!/bin/bash
mem_total_kb=$(grep MemTotal /proc/meminfo | grep -E --only-matching '[[:digit:]]+')
mem_total=
modprobe zram
echo zstd > /sys/block/
echo $mem_total > /sys/block/
mkswap /dev/zram0
swapon -p 100 /dev/zram0
```
Here's is the content of my /etc/sysctl.conf
```
vm.swappiness=180
vm.page-cluster=0
vm.watermark_
vm.watermark_
```
I make a fresh install, not upgrading from the previous release.
Is it only me or everyone experiencing this?
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Archer Allstars for more information if necessary.