-
Bug
-
Resolution: Duplicate
-
Undefined
-
None
-
rhel-9.3.0
-
None
-
None
-
Moderate
-
rhel-sst-cs-plumbers
-
ssg_core_services
-
None
-
False
-
-
None
-
Red Hat Enterprise Linux
-
None
-
None
-
None
-
-
All
-
None
Issue:
while inside top, M will sort the output by memory usage.
If you select a user, then sort by M, the output goes away
If you sort by Memory first, then filter by user, it works.
Output Seen
# top -u user
top - 11:13:49 up 1 day, 22:41, 2 users, load average: 0.00, 0.00, 0.00
Tasks: 147 total, 1 running, 146 sleeping, 0 stopped, 0 zombie
%Cpu(s): 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
MiB Mem : 1763.6 total, 1066.8 free, 361.7 used, 491.0 buff/cache
MiB Swap: 2100.0 total, 2100.0 free, 0.0 used. 1402.0 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
7451 user 20 0 8368 5060 3536 S 0.0 0.3 0:00.01 bash
7476 user 20 0 5584 1016 928 S 0.0 0.1 0:00.00 sleep
####Press "M"
top - 11:14:06 up 1 day, 22:42, 2 users, load average: 0.00, 0.00, 0.00
Tasks: 146 total, 1 running, 145 sleeping, 0 stopped, 0 zombie
%Cpu(s): 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
MiB Mem : 1763.6 total, 1066.8 free, 361.7 used, 491.0 buff/cache
MiB Swap: 2100.0 total, 2100.0 free, 0.0 used. 1402.0 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
Reproducer steps:
Open a second shell and login as user. I ran a sleep 1000 as that user. Then from the first shell, as root, checked top.
top -u user > M > output is gone
top > u > user > M > output is gone
top > M > u > user > output stays
Additional Notes:
top > M > output is all present (I can see the user processes)
This behaviour is not present in RHEL 8
- is duplicated by
-
RHEL-16278 top fails to display processes for a specific user if sorting by memory with M
- Closed