tech:memoire_linux
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:memoire_linux [2026/08/06 17:07] – Jean-Baptiste | tech:memoire_linux [2026/09/18 10:19] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 6: | Ligne 6: | ||
| Voir : | Voir : | ||
| * [[Supervision - sonde Nagios - Memoire Linux]] | * [[Supervision - sonde Nagios - Memoire Linux]] | ||
| + | * psacct [[Suivre la conso CPU par utilisateurs]] | ||
| * https:// | * https:// | ||
| * https:// | * https:// | ||
| Ligne 177: | Ligne 178: | ||
| - memCached // free = total - used | - memCached // free = total - used | ||
| ~~~ | ~~~ | ||
| + | |||
| + | |||
| ## Exemple | ## Exemple | ||
| + | Voir psacct [[Suivre la conso CPU par utilisateurs]] | ||
| ~~~bash | ~~~bash | ||
| free -mt | free -mt | ||
| + | ps aux --sort=-%mem | head -n 11 | ||
| vmstat -SM 45 10 | vmstat -SM 45 10 | ||
| vmstat -SM -a 45 10 | vmstat -SM -a 45 10 | ||
| Ligne 191: | Ligne 196: | ||
| ps -eo comm, | ps -eo comm, | ||
| ~~~ | ~~~ | ||
| + | |||
| + | |||
| ~~~bash | ~~~bash | ||
| Ligne 292: | Ligne 299: | ||
| OOM | OOM | ||
| + | ~~~bash | ||
| echo -1000 > / | echo -1000 > / | ||
| cat / | cat / | ||
| echo -1000 > / | echo -1000 > / | ||
| + | ~~~ | ||
| Or in a specific cgroup, set oom_kill_disable to 1. | Or in a specific cgroup, set oom_kill_disable to 1. | ||
| + | ~~~bash | ||
| echo 1000 > / | echo 1000 > / | ||
| + | ~~~ | ||
| - | For systemd services, use OOMScoreAdjust=-1000 in the unit file to protect critical processes. | + | For systemd services, use `OOMScoreAdjust=-1000` in the unit file to protect critical processes. |
| - | cgroup_enable=memory swapaccount=1 | + | `cgroup_enable=memory swapaccount=1` |
| + | |||
| + | ~~~ | ||
| $ echo $(($(cat / | $ echo $(($(cat / | ||
| 11389 MB | 11389 MB | ||
| $ cat / | $ cat / | ||
| + | ~~~ | ||
| + | |||
| ---- | ---- | ||
| Ligne 329: | Ligne 343: | ||
| access.redhat.com/ | access.redhat.com/ | ||
| page_owner=on | page_owner=on | ||
| - | Premature swapping while there is still plenty of pagecache to be reclaimed | ||
| - | Cgroup v1 | ||
| - | https:// | ||
| - | https:// | ||
| - | https:// | + | ## Premature swapping while there is still plenty of pagecache to be reclaimed |
| - | https:// | + | Cgroup v1 |
| - | + | ||
| - | https:// | + | |
| - | https:// | + | * https:// |
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * [Change in swap behavior between RHEL 7 and RHEL 8 kernels](https:// | ||
| - | Change in swap behavior between RHEL 7 and RHEL 8 kernels | ||
| - | https:// | ||
tech/memoire_linux.1786028831.txt.gz · Dernière modification : de Jean-Baptiste
