Sponsored Content
Full Discussion: Total usage memory by user
Top Forums Shell Programming and Scripting Total usage memory by user Post 302309497 by reddybs on Wednesday 22nd of April 2009 03:57:18 AM
Old 04-22-2009
Quote:
Originally Posted by yoavbe
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
YoavSmilie
Hello,

Try this command:
Code:
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
 

10 More Discussions You Might Find Interesting

1. HP-UX

How to determine cpu&memory percentage usage per user

Using HP-UX v11 Need to monitor cpu and memory usage, total for system and separately for each user in command-line mode. Found out next ways to monitor total cpu usage under hp-ux: 1) vmstat, also shows free memory 2) sar -M ps -eo user,pcpu - does not work, means 'user-defined format'... (4 Replies)
Discussion started by: hp-ux-user
4 Replies

2. HP-UX

how can I find cpu usage memory usage swap usage and logical volume usage

how can I find cpu usage memory usage swap usage and I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times my final destination is monitor process logical volume usage above X % and number of Logical voluage above can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies

3. Solaris

How to find Total and Free Physical Memory and Logical Memory in SOLARIS 9

Hi, Im working on Solaris 9 on SPARC-32 bit running on an Ultra-80, and I have to find out the following:- 1. Total Physical Memory in the system(total RAM). 2. Available Physical Memory(i.e. RAM Usage) 3. Total (Logical) Memory in the system 4. Available (Logical) Memory. I know... (4 Replies)
Discussion started by: 0ktalmagik
4 Replies

4. AIX

How to monitor the IBM AIX server for I/O usage,memory usage,CPU usage,network..?

How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies

5. UNIX for Dummies Questions & Answers

determine total memory used by some user/process

HI guys, :confused:i would like to know how can i determine the total/approx memory used by a single user. Example Top output is below =========================================================================== top - 20:00:50 up 24 days, 2:48, 2 users, load average: 0.43, 0.40, 0.37... (3 Replies)
Discussion started by: cromohawk
3 Replies

6. UNIX for Dummies Questions & Answers

HOWTO - Total memory and CPU usage ... without top?

Hi all, Is it possible to get total memory usage and free memory usage without top? By Googling I found for total memory usage, use vmstat, for CPU, use mpstat, for disk I/O use iostat, is this correct? Will using sar gives the same result as ALL of these three (3) commands? What about if I... (2 Replies)
Discussion started by: newbie_01
2 Replies

7. UNIX for Dummies Questions & Answers

Is total CPU usage for sar %user+%system+%iowait?

Hi all Can anyone advise/confirm whether total CPU usage when running sar is %user+%system+%iowait or is it %user+%system only? I want to confirm whether I am having a CPU-bound problem or not. This is a single-CPU VMware machine. $ sar 5 20 Linux 2.6.18-238.5.1.el5... (7 Replies)
Discussion started by: newbie_01
7 Replies

8. UNIX for Advanced & Expert Users

Finding out total memory usage

Hi, I have a server box with 16GB ram in it, within the server box there are 3 VMs running with a total allocation of 9GB. if I add up all the numbers under memory info using vmstat I get 15.8GB so I can say it adds up to 16Gb... Is there a way to see from the command line how much memory... (2 Replies)
Discussion started by: speedhunt3r
2 Replies

9. Solaris

Solaris 10: Listing the memory usage based on UNIX user wise.

Hello All I have a Solaris 10 machine, wherein processes are run in various unix users. a. How do I list the memory usage per user? b. Can I get a top command kind of output per user rather than entire machine? Thanks Sunil Kumar (3 Replies)
Discussion started by: msgforsunil
3 Replies

10. UNIX for Dummies Questions & Answers

Memory usage per user,percent usage,sytem time in ksh

Let's say i have 20 users logged on Server. How can I know how much memory percent used each of them is using with system time in each user? (2 Replies)
Discussion started by: roy1912
2 Replies
vzcalc(8)							    Containers								 vzcalc(8)

NAME
vzcalc - calculate resource usage of a container SYNOPSIS
vzcalc [-v] CTID DESCRIPTION
This utility displays the share of the host system resources a particular container is using. If the container is running, the current usage is displayed. High utilization values (>100%) mean the system is overloaded (or the container has an invalid configuration). Current Shows the amount of the resources consumed by the container at a given time. Promised Shows the resources soft limit values "promised" for a given container. Max Shows the resources hard limit values "promised" for a given container. If the -v option is specified, the following additional information is also displayed: Low Mem The part of memory residing at lower addresses and directly accessed by the kernel (only makes sense for 32-bit architectures). Total RAM Total memory. Mem+Swap Amount of memory available for applications (both RAM and swap space). Alloc Mem Standard memory allocations made for applications in a container. This is a more "virtual" system resource than RAM or RAM and swap. Num. Proc Number of processes. OPTIONS
-v Display additional information. EXIT STATUS
Normally, the exit status is 0. On error, the exit status is 1. LICENSE
Copyright (C) 2000-2009, Parallels, Inc. Licensed under GNU GPL. OpenVZ 10 Dec 2009 vzcalc(8)
All times are GMT -4. The time now is 02:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy