Total usage memory by user

Hi,

When running top on linux redhat machine , i see that i have 16gb of memory
in my machine and about 14.5gb of memory are in use:

Mem: 16395780k total, 14970960k used, 1424820k free, 370264k buffers
Swap: 4192956k total, 25824k used, 4167132k free, 12029400k cached

How can i sum the size of memory in use by USER.

Thanks
Yoav:confused:

It is not that plain easy; you might want to read this article to see why:

Virtual Threads: Understanding memory usage on Linux

Hello,

Try this command:

ps aux | awk '$1 == "reddybs" {sum +=$4}; END {print sum}'

reddybs is the user name.

OR

When you execute top command, press u and then type the username.
This will give you top processes owned by the user.

Cheers,
Sai

Hi zaxxon,

Many thanks for the info. I found many new things going through the link as i just started my carrier with UNIX.:slight_smile: