Sponsored Content
Operating Systems AIX Finding process taking up resources Post 302218101 by NycUnxer on Thursday 24th of July 2008 10:54:48 AM
Old 07-24-2008
Finding process taking up resources

I'm assuming that using the PS command would tell me about processes running. But how can I target a process that is taking up too many resources, and slowing down the system. Even an orphan process.
 

9 More Discussions You Might Find Interesting

1. AIX

How to list the resources used for each process

Hi Expert, Can anyone tell what command can list the resources used for each process in AIX, including the following columns: Process ID, Program Name, Resources used(CPU,RAM,SWAP),Start Time Thanks!! Victor Cheung (3 Replies)
Discussion started by: victorcheung
3 Replies

2. Red Hat

login process taking a long time

I'm having a bit of a login performance issue.. wondering if anyone has any ideas where I might look. Here's the scenario... Linux Red Hat ES 4 update 5 regardless of where I login from (ssh or on the text console) after providing the password the system seems to pause for between 30... (4 Replies)
Discussion started by: retlaw
4 Replies

3. Shell Programming and Scripting

Finding the process id of the process using the ports

Hi Any idea how to get the process id of the process using the ports lsof -i :portnumber does not work in my machine. I am on sun Solaris SPARC. Any suggestion is highly appreciated (1 Reply)
Discussion started by: kinny
1 Replies

4. AIX

Process ids consuming huge resources ?

Hi All what is the command to check process ids , which are running from long time and which are consuming more cpu? Also how to check, what a particular PID is running what For Ex: i have a pid :3223722 which is running since from long time, if i want to check what is this... (1 Reply)
Discussion started by: sidharthmellam
1 Replies

5. Ubuntu

Xorg is taking System Resources.

Hi All, I am facing System Speed problem.i saw in top command Xorg process was taking most of the time 20% of CPU and Memory.How to make it normal. Currently i am using AMD Athlon 64 HT technology processor(Socket 939) 512 DDR1 RAM Nvidia 5200 GeForce 128 MB Graphic card. i need help in... (2 Replies)
Discussion started by: arvindk.monu
2 Replies

6. Shell Programming and Scripting

Finding process which ended another process

Hello, The scenario is as follows, I have a background process running initially for which i know the PID on machine1. I use ssh from machine 2 to execute a script in machine 1. For some reason the back ground process is terminated. I would like to know which process caused the... (6 Replies)
Discussion started by: prasbala
6 Replies

7. AIX

AIX resources consumption group by process pattern

Hi, I have AIX processes something as below, how to know the resources consumption group by process pattern "price" and "devdb"? eg: CPU RAM WIO price 20% 250M 5% devdb 30% 1000M 8% oracle 2990122 1 0 10:33:39 - 0:00... (1 Reply)
Discussion started by: victorcheung
1 Replies

8. HP-UX

PID Process Resources

Hi all. I need to get detailed information about a PID. I have an app called Reflection X and it shows many things like Total CPU percent, User CPU (Nice) percent, FS Reads, etc. My question is how can I get all that information on console? Is there an archive with the detailed... (9 Replies)
Discussion started by: the0m3n
9 Replies

9. Shell Programming and Scripting

Process running time by taking user input

Need help in scripting . Below is the situation and need your inputs Checking all the processes, scripts running time based on user input time . Below Example ps -aef -o user,pid,etime,stime,args| grep sleep <user> 28995 01:24 14:14:39 sleep 120 <user> 29385 00:52 14:15:10... (8 Replies)
Discussion started by: ajayram_arya
8 Replies
pool_get_binding(3POOL) 			 Pool Configuration Manipulation Library Functions			   pool_get_binding(3POOL)

NAME
pool_get_binding, pool_set_binding, pool_get_resource_binding - set and query process to resource pool bindings SYNOPSIS
cc [ flag... ] file... -lpool [ library... ] #include <pool.h> char *pool_get_binding(pid_t pid); int pool_set_binding(const char *pool, idtype_t idtype, id_t id); char *pool_get_resource_binding(const char *type, pid_t pid); DESCRIPTION
The pool_get_binding() function returns the name of the pool on the running system that contains the set of resources to which the given process is bound. If no such pool exists on the system or the search returns more than one pool (since the set of resources is referred to by more than one pool), NULL is returned and the pool error value is set to POE_INVALID_SEARCH. It is possible that one of the resources to which the given process is bound is not associated with a pool. This could occur if a processor set was created with one of the pset_() functions and the process was then bound to that set. It could also occur if the process was bound to a resource set not currently associated with a pool, since resources can exist that are not associated with a pool. The pool_set_binding() function binds the processes matching idtype and id to the resources associated with pool on the running system. This function requires the privilege required by the underlying resource types referenced by the pool; generally, this requirement is equivalent to requiring superuser privilege. The idtype parameter can be of the following types: P_PID The id parameter is a pid. P_TASKID The id parameter is a taskid. P_PROJID The id parameter is a project ID. All currently running processes belonging to the given project will be bound to the pool's resources. The pool_get_resource_binding() function returns the name of the resource of the supplied type to which the supplied process is bound. The application must explicity free the memory allocated for the return values for pool_get_binding() and pool_get_resource_binding(). RETURN VALUES
Upon successful completion, pool_get_binding() returns the name of the pool to which the process is bound. Otherwise it returns NULL and pool_error(3POOL) returns the pool-specific error value. Upon successful completion, pool_set_binding() returns PO_SUCCESS. Otherwise, it returns PO_FAIL and pool_error() returns the pool-specific error value. Upon successful completion, pool_get_resource_binding() returns the name of the resource of the specified type to which the process is bound. Otherwise it returns NULL and pool_error() returns the pool-specific error value. ERRORS
The pool_get_binding() function will fail if: POE_INVALID_CONF The configuration is invalid. POE_INVALID_SEARCH It is not possible to determine the binding for this target due to the overlapping nature of the pools configured for this system, or the pool could not be located. POE_SYSTEM A system error has occurred. Check the system error code for more details. The pool_set_binding() function will fail if: POE_INVALID_SEARCH The pool could not be found. POE_INVALID_CONF The configuration is invalid. POE_SYSTEM A system error has occurred. Check the system error code for more details. The pool_get_resource_binding() function will fail if: POE_INVALID_CONF The configuration is invalid. POE_INVALID_SEARCH The target is not bound to a resource of the specified type. POE_SYSTEM A system error has occurred. Check the system error code for more details. EXAMPLES
Example 1 Bind the current process to the pool named "target". #include <sys/types.h> #include <pool.h> #include <unistd.h> ... id_t pid = getpid(); ... if (pool_set_binding("target", P_PID, pid) == PO_FAIL) (void) fprintf(stderr, "pool binding failed (d)0 pool_error()); ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |CSI |Enabled | +-----------------------------+-----------------------------+ |Interface Stability |Unstable | +-----------------------------+-----------------------------+ |MT-Level |Safe | +-----------------------------+-----------------------------+ SEE ALSO
libpool(3LIB), pool_error(3POOL), attributes(5) SunOS 5.11 27 Mar 2007 pool_get_binding(3POOL)
All times are GMT -4. The time now is 07:34 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy