Feature Request: consider supporting 'top -M' as in previous versions of procps
-M command line switch for
top seems to have been removed in procps-ng. It was supported in the original procps.
The reason for adding back support is because you cannot get the full memory displayed as follows:
top - 07:11:10 up 453 days, 2:31, 3 users, load average: 0.21, 0.29, 0.23 Tasks: 478 total, 1 running, 477 sleeping, 0 stopped, 0 zombie %Cpu(s): 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st *KiB Mem : 26384872+total, 20850545+free, 1814520 used, 53528748 buff/cache *KiB Swap: 33554428 total, 33546452 free, 7976 used. 26082822+avail Mem
The total memory is truncated with a '+' on the end. If you could specify '-M' at the command line then you wouldn't get this truncation. We have an application which parses the output of 'top', and there is no way to get the total memory from top anymore. You can use a .toprc file to save preferences, but we have hundreds of machines and users which would need a toprc file specified, it would be better if it was supported natively.