tech:notes_swap_memoire
Différences
Ci-dessous, les différences entre deux révisions de la page.
| tech:notes_swap_memoire [2025/03/24 15:06] – créée - modification externe 127.0.0.1 | tech:notes_swap_memoire [2025/12/15 11:58] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 5: | Ligne 5: | ||
| Voir : | Voir : | ||
| * https:// | * https:// | ||
| + | * https:// | ||
| Ligne 21: | Ligne 22: | ||
| # sysctl -w vm.vfs_cache_pressure=50 | # sysctl -w vm.vfs_cache_pressure=50 | ||
| </ | </ | ||
| + | |||
| + | <code bash> | ||
| + | # Allocate storage and restrict access | ||
| + | fallocate --length 4GiB /swapfile | ||
| + | chmod 600 /swapfile | ||
| + | |||
| + | # Format the swap space | ||
| + | mkswap /swapfile | ||
| + | |||
| + | # Activate the swap space for paging | ||
| + | swapon /swapfile | ||
| + | </ | ||
| + | |||
| == Analyse consommation | == Analyse consommation | ||
tech/notes_swap_memoire.1742825205.txt.gz · Dernière modification : de 127.0.0.1
