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/08/01 23:19] – Jean-Baptiste | tech:notes_swap_memoire [2026/11/03 11:54] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 7: | Ligne 7: | ||
| * https:// | * https:// | ||
| * https:// | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| ZRAM ZSWAP: | ZRAM ZSWAP: | ||
| Ligne 18: | Ligne 23: | ||
| * https:// | * https:// | ||
| * https:// | * https:// | ||
| + | * https:// | ||
| + | Mesure / Perf : | ||
| + | * https:// | ||
| Voir aussi : | Voir aussi : | ||
| Ligne 31: | Ligne 39: | ||
| Voir : | Voir : | ||
| * [RedHat - What does swappiness do and how does it affect swap_tendency? | * [RedHat - What does swappiness do and how does it affect swap_tendency? | ||
| + | |||
| + | |||
| + | Swap is a memory management technique where idle memory pages are moved to temporary storage | ||
| Swappiness \ | Swappiness \ | ||
| Ligne 142: | Ligne 153: | ||
| Voir : | Voir : | ||
| + | * [Change in swap behavior between RHEL 7 and RHEL 8 kernels ](https:// | ||
| * https:// | * https:// | ||
| * https:// | * https:// | ||
| * https:// | * https:// | ||
| + | |||
| Voir aussi : | Voir aussi : | ||
| Ligne 171: | Ligne 184: | ||
| ~~~ | ~~~ | ||
| + | |||
| + | ### RedHat8 - Premature swapping while there is still plenty of pagecache to be reclaimed | ||
| + | |||
| + | Voir : https:// | ||
| + | |||
| + | |||
| + | Changement de la gestion du SWAP pour RHEL8 | ||
| + | |||
| + | |||
| + | Ajouter dans / | ||
| + | ~~~ | ||
| + | vm.force_cgroup_v2_swappiness = 1 | ||
| + | vm.swappiness = 1 | ||
| + | ~~~ | ||
| + | |||
| + | Puis : | ||
| + | ~~~bash | ||
| + | sysctl -p | ||
| + | ~~~ | ||
| + | |||
| + | Vérif : | ||
| + | ~~~bash | ||
| + | cat / | ||
| + | cat / | ||
| + | ~~~ | ||
| + | |||
| + | Ce changement n’est pas impactant, et le retour arrière est aisé. | ||
| + | |||
| + | Retour arrière : | ||
| + | Commenter les lignes vm.force_cgroup_v2_swappiness et vm.swappiness puis reboot de la VM. | ||
tech/notes_swap_memoire.1785619195.txt.gz · Dernière modification : de Jean-Baptiste
