Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
dcore:swap_partition_or_file [2016/08/08 23:01] – [Swap Partition Install] nitram | dcore:swap_partition_or_file [2022/09/21 17:10] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== dCore Swap ===== | ||
+ | |||
+ | ==== Overview ==== | ||
+ | |||
+ | A swap primer for dCore users with minimal Linux or Tiny Core Linux experience. | ||
+ | |||
+ | Depending on intended use, a [[https:// | ||
+ | |||
+ | By default, dCore will seek and utilize any existing swap partition at boot. It also by default utilizes [[https:// | ||
+ | |||
+ | The following commands are useful to confirm swap utilization: | ||
+ | cat /etc/fstab | ||
+ | cat /proc/swaps | ||
+ | dmesg | grep swap | ||
+ | free -m | ||
+ | |||
+ | Example outputs outlined below utilizing a system with 512 MB RAM, 729 MB swap partition plus zswap. Note total swap indicated by '' | ||
+ | < | ||
+ | tc@box:~$ cat /etc/fstab | grep swap | ||
+ | / | ||
+ | / | ||
+ | </ | ||
+ | < | ||
+ | tc@box:~$ cat / | ||
+ | Filename | ||
+ | / | ||
+ | / | ||
+ | </ | ||
+ | < | ||
+ | tc@box:~$ dmesg | grep swap | ||
+ | [ 2.968436] Adding 116524k swap on / | ||
+ | [ | ||
+ | </ | ||
+ | < | ||
+ | tc@box:~$ free -m | ||
+ | | ||
+ | Mem: | ||
+ | -/+ buffers/ | ||
+ | Swap: 843 5 838 | ||
+ | </ | ||
+ | |||
+ | ==== Swap Partition ==== | ||
+ | Setting up a swap partition during a fresh installation using [[http:// | ||
+ | |||
+ | ==== Swap File ==== | ||
+ | If a swap partition was not set up prior to the installation of dCore, it would be easiest to set up a swap file rather than create a new swap partition. From a graphic environment open Control Panel (cpanel) -> Swapfile Tool (swapfile) and enter the desired mounted partition to utilize along with the desired swap file size. Then add the [[http:// | ||
+ | |||
+ | ==== Boot Codes ==== | ||
+ | For more information regarding Tiny Core Linux boot codes review [[wiki: | ||
+ | |||
+ | The following swap related [[http:// | ||
+ | *swapfile: use the specified partition' | ||
+ | *noswap: disable use of any swap partition(s) (eg. noswap). | ||
+ | *nozswap: disable zswap (eg. nozswap). | ||
+ | |||
+ | ==== Miscellaneous ==== | ||
+ | As outlined, dCore automatically seeks available swap partition(s) at boot. If using the swapfile boot code, a swapfile needs to be set up in advance. By default dCore uses zswap, which sets aside a block of RAM to use as compressed swap space, so systems with adequate RAM may not require dedicated swap. Review the Wikipedia zswap link above for more information, | ||
+ | |||
+ | **[[dCore: | ||