Solved Top command - RAM usage

Solved issue

soolan

Member
Joined
Jan 13, 2023
Messages
66
Reaction score
4
Credits
626
Hello.

How can I interfere with the free ram usage zero in the top command output on one of my servers. oracle installed on my device.

How can I see this output in GB or KB.

On another server the top command output is listed as KIB. How can I change them in GB, KIB and MB type


Code:
%Cpu(s): 89.7 us,  5.1 sy,  0.0 ni,  0.0 id,  4.1 wa,  0.5 hi,  0.7 si,  0.0 st
TiB Mem :      1.0 total,      0.0 free,      0.7 used,      0.2 buff/cache
TiB Swap:      0.1 total,      0.0 free,      0.1 used.      0.3 avail Mem
  scroll coordinates: y = 1/23647 (tasks), x = 1/12 (fields)


Bash:
Tasks: 5906 total,   8 running, 5421 sleeping,   0 stopped,   0 zombie
%Cpu(s): 12.5 us,  2.7 sy,  0.0 ni, 78.0 id,  6.2 wa,  0.2 hi,  0.4 si,  0.0 st
KiB Mem : 10565918+total, 28144128 free, 36607718+used, 66237056+buff/cache
KiB Swap: 33554428 total, 30866684 free,  2687744 used. 68156512+avail Mem
 


What linux distro is being used?
I use top here and it gives me output in MiB. Htop gives a better presentation if you can install that. Oracle is very close to Redhat if it remember right so look for an htop .rpm from them. This page may help
Oracle Linux

I ınstall htop.

top command shift + E change KB, MB, GB, TB
 
Last edited:
Well I don't have a lot of experience with Oracle. But you should be able to get help from them. But as I said they are closely tied or were to Redhat enterprise linux and should be close to the same. give htop a try. as mentioned in my first post.
I don't know if Oracle still uses yum as a package manager or DNF or on the server side is strictly terminal. But you should be able to install htop without trouble.
 
Oracle is the same as Redhat, CentOS and Fedora.

If you enable the EPEL repos, you should be able to install htop, btop, glances,

For memory usage of each process, I like btop.

It doesn't work with top, but some commands let you add a "h" to make the output more human readable.

for example instead of df -k, you can use df -h.
instead of ls -l, you can use ls -lh
instead of free -m, you can use free -mh
instead of du *, you can use du -h *
 
Last edited:

Members online


Top