Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5381

Troubleshooting • Re: Swap usage at almost 100% - What could be wrong??

$
0
0
It seems I had an error in my swapfile configuration. "1GB" is not correct syntax. I discovered this when I changed to "8GB". Size have to be specified as MB. I tried CONF_SWAPSIZE=1024 and now swap is much lower. Grafana says between 0%-10%
The size is still the same as far as I can see, just that you re-initiated swap (or rebooted) so starts with low usage.
You were correct.

I tried to raise to 8 GB, but it seems 2 GB is max:
$ sudo dphys-swapfile setup
want /var/swap=8192MByte, restricting to config limit: 2048MBytes, checking existing: deleting wrong size file (1073741824), generating swapfile ... of 2048MBytes

Statistics: Posted by niska — Fri Dec 15, 2023 6:31 am



Viewing all articles
Browse latest Browse all 5381

Trending Articles