Editing Swapon
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | |||
<code>swapon</code>/<code>[[swapoff]]</code> enable/disable devices and files for [[paging]] and [[swapping]] and it is included on the <code>[[mount]]</code> package. | <code>swapon</code>/<code>[[swapoff]]</code> enable/disable devices and files for [[paging]] and [[swapping]] and it is included on the <code>[[mount]]</code> package. | ||
− | + | http://man7.org/linux/man-pages/man8/swapon.8.html | |
− | |||
− | * <code> | + | * <code>swapon -s</code> or <code>swapon --show</code> |
− | |||
− | |||
− | |||
swapon --show | swapon --show | ||
Line 17: | Line 12: | ||
(No output if not swap active) | (No output if not swap active) | ||
− | swapon -s | + | swapon -s |
Filename Type Size Used Priority | Filename Type Size Used Priority | ||
− | + | /swap.img file 2023420 104312 -2 | |
* <code>cat [[/proc/swaps]]</code> | * <code>cat [[/proc/swaps]]</code> | ||
− | + | Oct 12 12:55:03 SERVER swapon[449]: [[swapon]]: /swap.img: swapon failed: [[Read-only]] file system | |
− | Oct 12 12:55:03 SERVER swapon[449]: [[swapon]]: / | ||
− | == Related | + | == Related commands == |
* <code>[[free]]</code> | * <code>[[free]]</code> | ||
* [[Memory]]: <code>[[sar -r]]</code> | * [[Memory]]: <code>[[sar -r]]</code> | ||
* [[Swap]]: <code>[[sar -S]]</code> | * [[Swap]]: <code>[[sar -S]]</code> | ||
− | * | + | * [[Sar -W (Swapping)]] |
− | * <code>[[/etc/fstab | + | * <code>[[/etc/fstab]]</code> |
* <code>[[systemctl --type swap]]</code> | * <code>[[systemctl --type swap]]</code> | ||
− | |||
− | |||
== See also == | == See also == |
Advertising: