tech:notes_swap_memoire
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| tech:notes_swap_memoire [2026/06/17 10:07] – Jean-Baptiste | tech:notes_swap_memoire [2026/07/20 09:51] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 5: | Ligne 5: | ||
| Voir : | Voir : | ||
| + | * https:// | ||
| * https:// | * https:// | ||
| * https:// | * https:// | ||
| Ligne 63: | Ligne 64: | ||
| ~~~ | ~~~ | ||
| + | ou | ||
| + | |||
| + | ~~~bash | ||
| + | for file in / | ||
| + | ~~~ | ||
| Ligne 70: | Ligne 76: | ||
| dphys-swapfile swapoff | dphys-swapfile swapoff | ||
| ~~~ | ~~~ | ||
| + | |||
| ## Recommandations SWAP | ## Recommandations SWAP | ||
| Ligne 120: | Ligne 127: | ||
| * zramctl | * zramctl | ||
| - | ~~~ | + | ~~~bash |
| cat / | cat / | ||
| Ligne 129: | Ligne 136: | ||
| ~~~ | ~~~ | ||
| - | + | Voir VmSwap ou VmSize | |
| - | ~~~ | + | ~~~bash |
| - | ps -eo pmem, | + | ps -eo pmem, |
| grep VmSwap / | grep VmSwap / | ||
| grep Vm / | grep Vm / | ||
| ~~~ | ~~~ | ||
| + | |||
| + | |||
| + | ## Tests SWAP | ||
| + | |||
| + | |||
| + | Utiliser 2 giga de mémoire | ||
| + | ~~~bash | ||
| + | stress --vm 1 --vm-bytes 2G --timeout 30 | ||
| + | ~~~ | ||
| + | |||
| + | Vérif | ||
| + | ~~~bash | ||
| + | journalctl -k | grep -i "out of memory" | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | Autres test | ||
| ~~~c | ~~~c | ||
| #include < | #include < | ||
tech/notes_swap_memoire.1781683642.txt.gz · Dernière modification : de Jean-Baptiste
