htop icon indicating copy to clipboard operation
htop copied to clipboard

COMM not shown in merged command

Open eworm-de opened this issue 2 years ago • 4 comments

I noticed that COMM is never shown in merged command for root, but sometimes for other users. Looks like It is shown only if EXE is not available. Screenshot_2022-05-24_09-47-08

eworm-de avatar May 24 '22 07:05 eworm-de

This seems to affect the display of thread names. Can you include your htoprc for reference?

BenBE avatar May 27 '22 05:05 BenBE

Sure, here we go - including a tab I took the screenshot with:

# Beware! This file is rewritten by htop when settings are changed in the interface.
# The parser is also very primitive, and not human-friendly.
htop_version=3.2.0
config_reader_min_version=3
fields=0 48 17 18 38 39 40 2 46 47 49 1
hide_kernel_threads=1
hide_userland_threads=0
shadow_other_users=0
show_thread_names=0
show_program_path=1
highlight_base_name=1
highlight_deleted_exe=1
highlight_megabytes=1
highlight_threads=1
highlight_changes=1
highlight_changes_delay_secs=2
find_comm_in_cmdline=1
strip_exe_from_cmdline=1
show_merged_command=0
header_margin=0
screen_tabs=0
detailed_cpu_time=1
cpu_count_from_one=0
show_cpu_usage=1
show_cpu_frequency=0
show_cpu_temperature=1
degree_fahrenheit=0
update_process_names=0
account_guest_in_cpu_meter=1
color_scheme=0
enable_mouse=1
delay=15
hide_function_bar=1
header_layout=two_50_50
column_meters_0=Hostname System Systemd Tasks LoadAverage DiskIO NetworkIO Uptime Battery Blank CPU AllCPUs2 Memory Swap
column_meter_modes_0=2 2 2 2 2 2 2 2 2 2 1 1 1 1
column_meters_1=CPU Blank AllCPUs2 Zram
column_meter_modes_1=3 2 3 1
tree_view=0
sort_key=46
tree_sort_key=46
sort_direction=-1
tree_sort_direction=-1
tree_view_always_by_pid=0
all_branches_collapsed=0
screen:Main=PID USER PRIORITY NICE M_VIRT M_RESIDENT M_SHARE STATE PERCENT_CPU PERCENT_MEM TIME Command
.sort_key=PERCENT_CPU
.tree_sort_key=PERCENT_CPU
.tree_view=0
.tree_view_always_by_pid=0
.sort_direction=-1
.tree_sort_direction=-1
.all_branches_collapsed=0
screen:Test=PID COMM EXE Command
.sort_key=COMM
.tree_sort_key=PID
.tree_view=0
.tree_view_always_by_pid=0
.sort_direction=1
.tree_sort_direction=1
.all_branches_collapsed=0
screen:I/O=PID USER IO_PRIORITY IO_RATE IO_READ_RATE IO_WRITE_RATE PERCENT_SWAP_DELAY PERCENT_IO_DELAY Command
.sort_key=IO_RATE
.tree_sort_key=PID
.tree_view=0
.tree_view_always_by_pid=0
.sort_direction=-1
.tree_sort_direction=1
.all_branches_collapsed=0

eworm-de avatar May 27 '22 09:05 eworm-de

You have show_thread_names and show_merged_command set to 0. When setting them COMM is included.

cgzones avatar Aug 09 '22 20:08 cgzones

Well, show_merged_command is set to 1... I managed to paste that after I broke my config I guess. 😝 But you are right that setting show_thread_names to 1 changes the behavior... Well keep an eye on the results.

eworm-de avatar Aug 09 '22 20:08 eworm-de

Works as expected with show_thread_names=1... So closing.

eworm-de avatar Jan 31 '23 16:01 eworm-de