1. Check your swap space:
/usr/sbin/swap -l
or just
swap -l
2 Considering your file system space think of how much space you want to use. We use mkfile command to create file for swap indicating the path. I create 2Gb swap file here:
/usr/sbin/mkfile 2048m /myswap
where /myswap is the name of the file. You can create it in any path. Use (k) for kilobite, (b) for block or (m) for megabites.
3. We add the file to system to start using it as a swap:
/usr/sbin/swap -a /myswap
4. Verify that swap file is used as a swap:
swap -l
or
/usr/sbin/swap -l
No comments:
Post a Comment