Skip to content
created by tte_773283 at 2021-08-13
last modified by tte_773283 at 2021-09-01
revision: 2

swap

1. swap memory

  • 윈도우의 가상 메모리와 같음.
  • swap 메모리를 설정하는 방법은 두 가지가 있음.
    • 스왑 파티션을 사용하는 방법
    • 스왑 파일을 만들어서 사용하는 방법

2. swap file setting

  • init swap memory
    sudo fallocate -l 4G /swapfile
    sudo chmod 600 /swapfile
    sudo mkswap /swapfile
    sudo swapon /swapfile
  • auto mount swap memory after reboot
    sudo vi /etc/fstab
    /swapfile swap swap default 0 0

3. remove swap memory

  • disable auto mount for swap memory
    sudo vi /etc/fstab
  • disable swap memory
    sudo swapoff -v /swapfile
    sudo swapoff on /swapfile
    sudo rm -r /swapfile

4. See Also

4.2. Similar Pages

Similar pages by cosine similarity. Words after page name are term frequency.

4.3. Adjacent Pages

Control
≤ 32
all
1.0x
1.0x
80
-120
ON
Metrics
Nodes(visible/total)0/0
Links(visible/total)0/0
Avg degree0.00
Depth coverage0
Queue(fetch/graph)0 / 0
Zoom(scale)1.00x
Ctrl/⌘ + Scroll: Zoom
Root 1-hop 2-hop+