« Linux Utilisation RAM » : différence entre les versions
Page créée avec « ==== RAM de tous les processus associés d'un programme ==== <syntaxhighlight lang="bash" line copy> ps aux | grep chrome | awk '{print $4, $6/1024 " MB"}' </syntaxhighlight> ==== Somme la RAM de tous les processus associés d'un programme. ==== <syntaxhighlight lang="bash" line copy> ps aux | grep chrome | awk '{print $4, $6/1024 " MB"}' </syntaxhighlight> ou <syntaxhighlight lang="bash" line copy> pmap -x $(pgrep chrome) | grep -v "total" | awk '{sum+=$3} END... » |
Aucun résumé des modifications |
||
| Ligne 25 : | Ligne 25 : | ||
sudo smem -t -k -P chrome | sudo smem -t -k -P chrome | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==== Trier ==== | |||
<syntaxhighlight lang="bash" line copy> | |||
ps aux --sort=+%mem | head -n 20 # Tri croissant (moins gourmand en haut) | |||
</syntaxhighlight> | |||
<syntaxhighlight lang="bash" line copy> | |||
ps aux --sort=-%mem | head -n 20 # Tri décroissant (plus gourmand en haut) | |||
</syntaxhighlight> | |||
[[Catégorie:Linux]] [[Catégorie:Debian]] | [[Catégorie:Linux]] [[Catégorie:Debian]] | ||