Cant make ram disk higher than 40963/1/2023 ![]() To enable it at boot time, edit /etc/fstab (static information about the file system) to include the following where the fields are fs_spec, fs_file, fs_vfstype, fs_mntops, fs_freq and fs_passno, about which you can read by man 5 fstab: $ vi /etc/fstab Verify it is enabled by viewing the output of the command cat /proc/swaps, use free command, or $ swapon -s I recommend you read its manual page, or read this guide on Tecmint website. You can also improve your file security by changing your file attributes using chattr. $ dd if=/dev/zero of=/swapfile bs=20480 count=1MĬhange permission and create/activate swap $ chmod 600 /swapfile To preallocate space to /swapfile, you can use the line below: $ fallocate -l 20G /swapfile To displays the amount of your free and used physical and swap memory: $ free -h To display swap usage summary by your device: $ swapon -s So do not put your swap to outer tracks on SSDs but use defaults,discard options to trim your blocks as proposed by Linux Ubuntu 16.04 64 bit
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |