我尝试根据此网站启用交换:https://linuxize.com/post/create-a-linux-swap-file/
当我运行sudo swapon /swapfile时,它返回此错误:
sudo swapon /swapfile
swapon: /swapfile: swapon failed: Function not implemented
看来您正在使用的内核中未启用CONFIG_SWAP。请启用它,然后尝试。