Always thought top was one of those programs frozen in time since the 70s, but apparently, it has a feature set comparable to htop and the like. The default configuration just doesn’t show much of it…

  • Ephera@lemmy.mlOP
    link
    fedilink
    English
    arrow-up
    3
    ·
    14 days ago

    Yeah, I would often just grab htop because I had no idea how to read the CPU usage out of top.
    For example, for me it says:

    %Cpu(s):  0,4 us,  0,4 sy,  0,0 ni, 98,8 id,  0,0 wa,  0,3 hi,  0,0 si,  0,0 st
    

    Now that I look at it, I can guess that us and sy are supposed to be user and system time. And I guess id is supposed to be idle.
    I have no guess what the other numbers might be, though. And well, I would often like to see the CPU usage per core.
    Now I know that I can just press 1t and get effectively the same view as in htop.

    I might learn top’s filtering workflow, too. But so far, I always killed processes with ps -ef | grep <process-name> and then kill <pid>, which isn’t particularly more cumbersome, so will see…

    • Shadow@lemmy.ca
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      14 days ago

      Wa is IO Wait. CPU time burned spent waiting for disk

      Hi is hardware irq, similar concept but for hardware devices.

      • Ephera@lemmy.mlOP
        link
        fedilink
        English
        arrow-up
        1
        ·
        14 days ago

        Ah, that was a brainfart. I do use pkill primarily. I just use the other command, when I’m not sure what the process is called…

    • paequ2@lemmy.today
      link
      fedilink
      arrow-up
      0
      ·
      14 days ago

      I would often just grab htop because I had no idea how to read the CPU usage out of top.

      lol, same! 1t gets me 90% of the functionality I use in htop.