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/03 14:00] – 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 23: | Ligne 24: | ||
| Linux Memory Management : | Linux Memory Management : | ||
| + | * https:// | ||
| * https:// | * https:// | ||
| * https:// | * https:// | ||
| Ligne 176: | 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 190: | Ligne 196: | ||
| ps -eo comm, | ps -eo comm, | ||
| ~~~ | ~~~ | ||
| + | |||
| + | |||
| ~~~bash | ~~~bash | ||
| Ligne 291: | 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 311: | Ligne 326: | ||
| TLB hit TLB miss | TLB hit TLB miss | ||
| + | ~~~bash | ||
| sudo perf stat -e dTLB-loads, | sudo perf stat -e dTLB-loads, | ||
| - | |||
| perf list | grep -i tlb | perf list | grep -i tlb | ||
| - | Slub | + | ~~~ |
| + | Slub | ||
| + | ~~~bash | ||
| slabtop --sort=1 | slabtop --sort=1 | ||
| + | ~~~ | ||
| + | ~~~bash | ||
| slabinfo -v | slabinfo -v | ||
| + | ~~~ | ||
| + | |||
| 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.1785758414.txt.gz · Dernière modification : de Jean-Baptiste
