02-08-2010
How can I obtain the consumed memory of a process?
Hi!!!
how can I obtain the consumed memory of a process?
nowadays i'm using ps -efo pid, pmem, comm,args ....
but the information is in percentage, is that correct?
so, i want to know how can obtain the consumed memory of a process in mb?
thanks in advance!
Richard
10 More Discussions You Might Find Interesting
1. Solaris
hello
I am new to the UNIX I want to know what command is used
1.To know the Memory consumed by a process at a time .
2.To know the How many CPU's in a server.
3.To know the RAM size.
4.To know the Hard Disk size. (3 Replies)
Discussion started by: maheshkoushik
3 Replies
2. HP-UX
Hi,
Does anyone know an easy way of getting the memory usage on a UNIX box? I basically want to find the total % available/in use. Running vmstat gives me 'avm' and 'free' but come in bytes and not percents. Didn't see a switch in sar that just gave me the memory stats similar to Sun's -r... (4 Replies)
Discussion started by: jonesin
4 Replies
3. UNIX for Advanced & Expert Users
Hi,
under UNIX AIX how determine the amount of memory consumed per user ?
Many thanks before. (1 Reply)
Discussion started by: big123456
1 Replies
4. HP-UX
Hi! I am new to HP-UX. :o
By using the command glance, I found the user memory usage was very high. I would like to know is there any command can show the process which consume most available memory ? (Just like the command top, but order by memory, not CPU) (1 Reply)
Discussion started by: alfredo
1 Replies
5. Shell Programming and Scripting
Hi All,
I have a simple question on unix command. Here, I need to find the most time consumed process running at present in my HP -UX server.
Though it is possible through top command but to redirect the output I want the same done through some command like ps -aef.
Also I need the user who... (2 Replies)
Discussion started by: Sreejith_VK
2 Replies
6. Emergency UNIX and Linux Support
Can someone please help me with a script that will help in identifying the CPU & memory usage by a process name, rather than a process id.This is to primarily analyze the consumption of resources, for performance tweaking.
G (4 Replies)
Discussion started by: ggayathri
4 Replies
7. Solaris
Hi Experts,
Our servers running Solaris 10 with SAP Application. The memory utilization always >90%, but the process on SAP is too less even nothing.
Why memory utilization on solaris always looks high?
I have statement about memory on solaris, is this true:
Memory in solaris is used for... (4 Replies)
Discussion started by: edydsuranta
4 Replies
8. Solaris
I need to log the size of physical/virtual memory consumed by any given given process using c/c++ code running on solaris and aix without using the proc filesystem. Please advise. (1 Reply)
Discussion started by: Manisha Paul
1 Replies
9. AIX
Hi,
Below is the code snippet I use on Linux (Centos) to retrieve the Process Name, PID and memory consumed on Linux (Centos) host:-
top -b -n 1 | awk -v date="$tdydate" -v ip="$ip" 'NR>7 {print date","ip","$12,","$1,","$10}'
Any idea how the same can be retrieved on an AIX host? This... (1 Reply)
Discussion started by: Vipin Batra
1 Replies
10. UNIX for Advanced & Expert Users
I am trying to check how much memory is consumed by OS Kernel using below command, Is this the correct command that I'm using
grep Slab /proc/meminfo
Output : Slab: 3106824 kB
IF I convert KB to GB, It means 2.9 GB of RAM is consumed
Below details for reference
... (4 Replies)
Discussion started by: sam@sam
4 Replies
LEARN ABOUT SUNOS
setpgid
setpgid(2) System Calls setpgid(2)
NAME
setpgid - set process group ID
SYNOPSIS
#include <sys/types.h>
#include <unistd.h>
int setpgid(pid_t pid, pid_t pgid);
DESCRIPTION
The setpgid() function sets the process group ID of the process with ID pid to pgid.
If pgid is equal to pid, the process becomes a process group leader. See intro(2) for more information on session leaders and process group
leaders.
If pgid is not equal to pid, the process becomes a member of an existing process group.
If pid is equal to 0, the process ID of the calling process is used. If pgid is equal to 0, the process specified by pid becomes a process
group leader.
RETURN VALUES
Upon successful completion, 0 is returned. Otherwise, -1 is returned and errno is set to indicate the error.
ERRORS
The setpgid() function will fail if:
EACCES The pid argument matches the process ID of a child process of the calling process and the child process has successfully
executed one of the exec family of functions (see exec(2)).
EINVAL The pgid argument is less than (pid_t) 0 or greater than or equal to PID_MAX, or the calling process has a controlling ter-
minal that does not support job control.
EPERM The process indicated by the pid argument is a session leader.
EPERM The pid argument matches the process ID of a child process of the calling process and the child process is not in the same
session as the calling process.
EPERM The pgid argument does not match the process ID of the process indicated by the pid argument, and there is no process with
a process group ID that matches pgid in the same session as the calling process.
ESRCH The pid argument does not match the process ID of the calling process or of a child process of the calling process.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
|MT-Level |Async-Signal-Safe |
+-----------------------------+-----------------------------+
SEE ALSO
intro(2), exec(2), exit(2), fork(2), getpid(2), getsid(2), attributes(5), standards(5)
SunOS 5.10 28 Dec 1996 setpgid(2)