swapon

SWAPON(8)                  Linux Programmer's Manual                 SWAPON(8)



åå
       swapon, swapoff - ããã¤ã¹ããã¡ã¤ã«ã¸ã®ãã¼ã¸ã³ã°ãã¹ã¯ããã³ã°ãæå¹ / ç¡å¹ã«ãã

æ¸å¼
       /sbin/swapon [-h -V]
       /sbin/swapon -a [-v] [-e]
       /sbin/swapon [-v] [-p priority]  specialfile ...
       /sbin/swapon [-s]
       /sbin/swapoff [-h -V]
       /sbin/swapoff -a
       /sbin/swapoff specialfile ...

説æ
       swapon ã¯ããã¼ã¸ã³ã° (paging) ãã¹ã¯ããã³ã° (swapping) ãè¡ãããã¤ã¹ã
       æå®ããããã«ç¨ããããã

       使ç¨ãããããã¤ã¹ã¾ãã¯ãã¡ã¤ã«ã¯ã specialfile å¼ãæ°ã§æå®ãããã -L label ã¾ãã¯
       -U uuid ã¨ããå½¢å¼ã§ãã©ãã«ã¾ã㯠uuid ã§ããã¤ã¹ãæå®ãããã¨ãã§ããã

       swapon ã®å¼ã³åºãã¯ãé常ã·ã¹ãã ããã«ãã¦ã¼ã¶ç¨ã«åæåãããã¡ã¤ã« /etc/rc
       ã§è¡ããããæ®éã¯ããã§ãã¹ã¦ã®ã¹ã¯ããããã¤ã¹ãæå¹ã«ãããã¼ã¸ã³ã°
       ãã¹ã¯ããã³ã°ãè¤æ°ã®ããã¤ã¹ããã¡ã¤ã«ã«ã¾ããã£ã¦ã¤ã³ã¿ã¼ãªã¼ã (interleave)
       åä½ã§ããããã«ããã

       é常㯠swapon -a ã®æ¸å¼ã§å®è¡ããããã¨ãå¤ãã

       -a     /etc/fstab ä¸ã§ ``swap'' ãã¼ã¯ãä»ãã¦ããã¹ã¯ããããã¤ã¹ããã¹ã¦æå¹ã«ããã
              ãã ã ``noauto'' ãªãã·ã§ã³ãä»ãã¦ãããã®ã¯é¤ãã
              ã¹ã¯ããã¨ãã¦æ¢ã«åä½ãã¦ããããã¤ã¹ã¯ãé»ã£ã¦ã¹ããããããã

       -e     swapon ã« -a ãªãã·ã§ã³ãæå®ããã¦ããå ´åã -e ãªãã·ã§ã³ãæå®ãããã¨ãå‐
              å¨ããªãããã¤ã¹ãé»ã£ã¦ã¹ãããããã

       -h     ãã«ãã¡ãã»ã¼ã¸ãå¼ã³åºãã

       -L label
              æå®ããã label ã®ãã¼ãã£ã·ã§ã³ã使ãã (ããã使ç¨ããããã«ã¯
              /proc/partitions ã«ã¢ã¯ã»ã¹ããå¿è¦ãããã)

       -p priority
              swapon ã®åªå度 (priority) ãæå®ããã ãã®ãªãã·ã§ã³ã¯ swapon ã 1.3.2
              以éã®ã«ã¼ãã«ä¸ã§ã³ã³ãã¤ã«ããããã¤ä½¿ç¨ãããå ´åã«ã®ã¿æå¹ã§ããã
              priority 㯠0 ãã 32767 ã®éã®æ°å¤ã§ããã æ°å¤ã大ããã»ã©åªå度ãé«ãã
              ã¹ã¯ããåªå度ã®è©³ç´°ãªèª¬æã«é¢ãã¦ã¯ swapon(2) ãè¦ãã /etc/fstab
              ã®ãªãã·ã§ã³ãã£ã¼ã«ãã« pri=value ãè¨è¿°ããã°ã swapon -a
              ã®éã«ãã®å¤ãç¨ããããã

       -s     ã¹ã¯ããã®ä½¿ç¨ç¶æ³ãããã¤ã¹æ¯ã«è¡¨ç¤ºããã "cat /proc/swaps" ã¨çããã
              Linux 2.1.25 ããåã§ã¯å©ç¨ã§ããªãã

       -U uuid
              æå®ããã uuid ã®ãã¼ãã£ã·ã§ã³ã使ãã (ããã使ç¨ããããã«ã¯
              /proc/partitions ã«ã¢ã¯ã»ã¹ããå¿è¦ãããã)

       -v     詳細ã«è¡¨ç¤ºããã

       -V     ãã¼ã¸ã§ã³ã表示ããã

       swapoff ã¯æå®ããããã¤ã¹ããã¡ã¤ã«ã®ã¹ã¯ããã³ã°ãç¡å¹ã«ããã -a
       ãã©ã°ãæå®ãããå ´åã«ã¯ã (/proc/swaps ã¾ã㯠/etc/fstab ä¸ã®)
       ãã¹ã¦ã®æ¢ç¥ã®ã¹ã¯ããããã¤ã¹ããã¡ã¤ã«ã®ã¹ã¯ããã³ã°ãç¡å¹ã«ããã

注æ
       ãã¼ã«ã®ãããã¡ã¤ã«ã« swapon ãç¨ããã¹ãã§ã¯ãªãã NFS ä¸ã® swap
       ã¯åä½ããªããããããªãã

é¢é£é ç®
       swapon(2), swapoff(2), fstab(5), init(8), mkswap(8), rc(8), mount(8)

ãã¡ã¤ã«
       /dev/hd??  æ¨æºã®ãã¼ã¸ã³ã°ããã¤ã¹
       /dev/sd??  æ¨æºã®ãã¼ã¸ã³ã°ããã¤ã¹ (SCSI)
       /etc/fstab ãã¡ã¤ã«ã·ã¹ãã ã ascii ã§è¨è¿°ãã表ã

å±¥æ´
       swapon ã³ãã³ã㯠4.0BSD ããå°å¥ãããã



Linux 1.x                      25 September 1995                     SWAPON(8)