
It can be possible that a server has a lack of swap because it seemed to be useless or if it exists it's too small.
It's possible to add swap via the following command :
Some explanations :
- Swap file creation
- Filling the file with the wanted size in ko ( count * bs ) (here 1024ko * 262144 = 256Mo)
- Filesystem synchronization
- Formating the file into swap filesystem (with siez in ko)
- Filesystem synchronization
- Swap on
- Swap off
Articles similaires
| Comments |
|














