03-09-2017, 05:34 PM
(This post was last modified: 03-09-2017, 05:37 PM by kenneth558.)
(03-09-2017, 02:52 PM)martinayotte Wrote: More "standard way" to create swap files is :Thank you, martinayotte. I suppose the DietPi devs had some sort of reason to go the other route.
Code:$ dd if=/dev/zero of=/path/to/swapfile bs=1M count=512 # For 512MB swap file
$ mkswap /path/to/swapfile
$ swapon /path/to/swapfile
"free" command will shows both real memory and swap.
In the course of trying to watch youtube videos, I notice that if I let them load while I put them on pause some (at least) will actually play normally (no stop-and-go/buffer catchup) eventually. I'm still trying to figure out how the OP did it.