Sample Header Ad - 728x90

How to sort correctly the processes hungry of ram?

0 votes
1 answer
34 views
With this cmd line I see processes and use of ram in mb ps aux | awk '{print $6/1024 " MB\t\t" $11}' | sort -rn|less The problem is the sort 9.95703 MB /usr/lib/systemd/systemd-journald 9.89062 MB /usr/sbin/winbindd 9.76953 MB /usr/sbin/winbindd 9.69922 MB php-fpm: 9.69922 MB php-fpm: 9.69531 MB php-fpm: 9.69531 MB php-fpm: 9.69531 MB php-fpm: 93.4297 MB db_arc1_FREE 9.31641 MB winbindd: 9.31641 MB /usr/sbin/snmpd How to sort correctly so the output became like this? 93.4297 MB db_arc1_FREE 9.95703 MB /usr/lib/systemd/systemd-journald 9.89062 MB /usr/sbin/winbindd 9.76953 MB /usr/sbin/winbindd 9.69922 MB php-fpm: 9.69922 MB php-fpm: 9.69531 MB php-fpm: 9.69531 MB php-fpm: 9.69531 MB php-fpm: 9.31641 MB winbindd: 9.31641 MB /usr/sbin/snmpd
Asked by elbarna (13690 rep)
Nov 29, 2024, 08:18 PM
Last activity: Nov 30, 2024, 09:39 AM