hishamhm / htop

htop is an interactive text-mode process viewer for Unix systems. It aims to be a better 'top'.
GNU General Public License v2.0
5.84k stars 581 forks source link

Feature request: Automatically change Mem and Swp units #966

Open mmtrebuchet opened 4 years ago

mmtrebuchet commented 4 years ago

I'm running on a machine with 15 TB of swap space (stupid huge biological datasets), and the Swp bar displays available memory in MB. It's difficult to read the numbers once they're over five digits wide. It would be nice if this automatically switched to GB once the numbers got big enough, as they do in the Text and LED display modes. (as well as the VIRT and RES and similar columns) Alternatively, maybe there could be an option to add commas to the memory numbers, so that 15 TB displays as 15,728,640MB.

TakuyaSama commented 4 years ago

@mmtrebuchet That's what i would love, in fact. I opened a issue (https://github.com/hishamhm/htop/issues/939/) a few months ago, but i was not exact at the description (i mean, i wrote what i was meaning to say, but i wanted, as you request, a human legible format/unit, not Bytes/KiB, when we're on MiB, GiB and even, as you say, on specific cases, with TiB amounts, so it's only natural to adapt the software to modern (or better said, actual) times.

I really hope the dev would listen to us, cause i really love htop, but i have to resort to KSysGuard (KDE System Monitor) sometimes to check what amount of RAM is using an specific process, not to mention, that on a system without GUI, i really doubt you have a better option than htop to monitor your system, but it's an annoying miss, IMHO.

Bests ^^.