How to create and use a Swap file December 27, 2022 03:55PM |
Admin Registered: 13 years ago Posts: 19,016 |
apt-get install dphys-swapfileAnd then adjust the swap factor in /etc/dphys-swapfile to 4.
CONF_SWAPFACTOR=4
cd / dd if=/dev/zero of=swapfile1 bs=1024 count=524288 mkswap swapfile1 chmod 0600 swapfile1
swapon /swapfile1
total used free shared buff/cache available ..... Swap: 511Mi 0B 511Mi
NAME TYPE SIZE USED PRIO /swapfile1 file 512M 0B -2
# /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> LABEL=rootfs / ext3 noatime,user_xattr,acl,errors=remount-ro 0 1 /swapfile1 swap swap defaults 0 0 tmpfs /tmp tmpfs defaults 0 0
Re: How to create and use a Swap file January 07, 2024 11:19AM |
Registered: 7 years ago Posts: 184 |
Re: How to create and use a Swap file January 07, 2024 10:52PM |
Admin Registered: 13 years ago Posts: 19,016 |
Re: How to create and use a Swap file January 08, 2024 01:16AM |
Registered: 7 years ago Posts: 184 |
Re: How to create and use a Swap file July 25, 2024 02:06PM |
Registered: 4 years ago Posts: 32 |
Re: How to create and use a Swap file July 25, 2024 02:52PM |
Admin Registered: 13 years ago Posts: 19,016 |
Quote
Flash drives issues
How to prolong the life of your rootfs USB thumb drive
Memory & Swap Settings
Tuning for low RAM boxes. Also read several posts after for setups for logging to RAM.