Jus*_*tin 8 osx top sort htop cpu-usage
Sometimes when I\'m trying to diagnose what process is hogging all of my laptop\'s resources, I notice that htop
will sort the CPU% column incorrectly.
Example below:
\n\n\n\nThe \xe2\x80\x9cCPU%\xe2\x80\x9d column is highlighted in the header row, so that means its sorting by that column (right?), yet it\xe2\x80\x99s all out of order. It\xe2\x80\x99s clearly not sorting it numerically, and neither is it sorting it lexicographically. I\'m not sure how else it could be trying to sort it.
\n\nSome Details:
\n\n这是我的~/.config/htop/htoprc
文件的内容。
# Beware! This file is rewritten by htop when settings are changed in the interface.\n# The parser is also very primitive, and not human-friendly.\nfields=0 48 17 18 38 39 2 46 47 49 1\nsort_key=46\nsort_direction=1\nhide_threads=0\nhide_kernel_threads=1\nhide_userland_threads=0\nshadow_other_users=0\nshow_thread_names=0\nshow_program_path=1\nhighlight_base_name=0\nhighlight_megabytes=1\nhighlight_threads=0\ntree_view=0\nheader_margin=1\ndetailed_cpu_time=0\ncpu_count_from_zero=0\nupdate_process_names=0\naccount_guest_in_cpu_meter=0\ncolor_scheme=6\ndelay=15\nleft_meters=AllCPUs Memory Swap\nleft_meter_modes=1 1 1\nright_meters=Tasks LoadAverage Uptime\nright_meter_modes=2 2 2\n
Run Code Online (Sandbox Code Playgroud)\n\n在咨询了谷歌大神后,我找不到太多相关信息。这是一个已知的错误?或者可能是 PEBKAC 错误?(我希望不会,那会很尴尬)。
\n\n\n小智 -1
我在使用 htop 2.0.1 的 Ubuntu 16.04.5 LTS 上遇到了类似的问题。卸载然后重新安装 htop 解决了该问题。当我在 htop 中更改设置时,我的配置设置可能已被搞乱。
归档时间: |
|
查看次数: |
1873 次 |
最近记录: |