当在我的RHEL5框上发出命令htop时,我会得到一个正常的视图,但是当我向下滚动时,我有几个“空白”命令范围,如下所示:

有人能解释一下这是怎么发生的吗?
我的.htoprc文件:
# Beware! This file is rewritten every time htop exits.
# The parser is also very primitive, and not human-friendly.
# (I know, it's in the todo list).
fields=0 48 17 18 38 39 40 2 46 47 49 1
sort_key=46
sort_direction=1
hide_threads=0
hide_kernel_threads=1
hide_userland_threads=0
shadow_other_users=0
show_thread_names=0
highlight_base_name=0
highlight_megabytes=1
highlight_threads=0
tree_view=0
header_margin=1
detailed_cpu_time=0
color_scheme=0
delay=15
left_meters=AllCPUs Memory Swap
left_meter_modes=1 1 1
right_meters=Tasks LoadAverage Uptime
right_meter_modes=2 2 2发布于 2014-04-24 08:23:14
应该在. .config/htop/htoprc或类似的内容中。
我认为您的配置文件中有这一行
shadow_other_users=1你应该把它写在0。否则,如果您与用户一起启动htop,它将隐藏其他用户的进程。如果不工作,你能把你的htoprc文件寄出去吗?
发布于 2014-09-14 04:20:11
我发现,对于Red 5和htop 1.0.3,我必须对下面的代码进行更改,才能获得用于根进程的命令。我不需要对红帽6EL做这个改动。
--- Process.c 2014-01-01 12:00:00.000000000 -0400
+++ Process.c.patched 2014-01-01 12:00:00.000000000 -0400
@@ -52,7 +52,7 @@
#define PROCESS_FLAG_CGROUP 16
#ifndef Process_isKernelThread
-#define Process_isKernelThread(_process) (_process->pgrp == 0)
+#define Process_isKernelThread(_process) (_process->pgrp == 1)
#endif
#ifndef Process_isUserlandThreadhttps://serverfault.com/questions/591001
复制相似问题