previous: >>108644361
#define __NR_swapon 167
#define __NR_swapoff 168
https://man7.org/linux/man-pages/man2/swapon.2.html
tl;dr:
manage swapping
this is funny
>As of Linux 1.3.6, the kernel usually follows these rules, but there are exceptions.
oh, it usually does what it's supposed to, but there are exceptions. what are the exceptions? hey, go fuck yourself!
similarly amusing:
Discard of swap pages was introduced in Linux 2.6.29, then made
conditional on the SWAP_FLAG_DISCARD flag in Linux 2.6.36, which
still discards the entire swap area when swapon() is called, even
if that flag bit is not set.
so yeah. swap is nice and all, but have you ever considered just downloading more RAM?
t 256GB chad
relevant resources:
man man
man syscalls
https://man7.org/linux/man-pages/
https://linux.die.net/man/
https://elixir.bootlin.com/linux/
https://elixir.bootlin.com/musl/
https://elixir.bootlin.com/glibc/