Sponsored Content
Operating Systems AIX Script to identify high CPU usage processes Post 302467730 by arizah on Sunday 31st of October 2010 02:51:24 AM
Old 10-31-2010
but what really is confusing me that even I take the CPU% and then add them all together the number I get is not near close to what I can see in Topas or nmon.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

identify the unix processes performing high disk i/o reads and writes

I would like to write shell/perl script which identifies the top unix processes that are performing high disk I/O's or/and writes If any one knows the solution please help me? -Swamy (0 Replies)
Discussion started by: avsswamy
0 Replies

2. Ubuntu

High System CPU Usage

I am running a Dell PE R815 with 4 x AMD 12 core CPUs with 128GB of RAM and a RAID 5 array of 6 SAS disks. This is an HPC application and is definitely CPU bound, however once I run 16 of these processes (thus pinning 16 cores) the work performed slows down dramatically, to maybe 5 or 10% of what... (2 Replies)
Discussion started by: mowmentous
2 Replies

3. AIX

HELP!!! high CPU usage with ITM kuxagent

ibm tivoli monitor's kuxagent is taking up a lot of cpu usage. anybody has any idea? i attatched a screenshot. (3 Replies)
Discussion started by: curtis911
3 Replies

4. Shell Programming and Scripting

Identify CPU usage on the Linux server

We are using linux server. We have below script running on the crontab and it send the alert if the cpu usage is above 90%. My question is, the below script tells the CPU usage for one CPU or all CPU in the server? sar 1 1 | sed '$!d' | awk '{printf("%d", $8)}' > $SAR_LOG Please let me... (4 Replies)
Discussion started by: govindts
4 Replies

5. Linux

System Went panic after CPU usage high

Hi All, Yesterday my Linux server went panic and even a small command took a lot of time to run. When i monitored pl find the below output Cpu(s): 0.1%us, 98.4%sy, 0.0%ni, 1.5%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st the time spent on kernel mode is 98 % and also idle time is around 1.5 %...... (4 Replies)
Discussion started by: jegaraman
4 Replies

6. AIX

Identify All Processes memory and cpu usage.

Hi All, Anyone has script to monitor AIX total processes memory and cpu usage that contribute to the total memory and CPU utilize so far ? The purpose of this is to analyze process memory trend. Thanks. Best Regards, ckwan (2 Replies)
Discussion started by: ckwan
2 Replies

7. AIX

High CPU Usage , users affected

Dear All, One production Server is affected by high usage. Application is slow now. Please guide me how to solve it? NMON Report shows full cpu usage. Here im posting some server details. bash-3.2# lparstat -i Node Name : ********* Partition Name ... (6 Replies)
Discussion started by: Thala
6 Replies

8. Shell Programming and Scripting

High cpu usage

I have created one script and i have added it into cron to run after 10 mins. However I have noted that whenever that script runs, It causes CPU utilization of server to increase about 10-20 % I have rechecked script and there is no way i can make changes, Script contain only 2-3 commands. So... (4 Replies)
Discussion started by: Nakul_sh
4 Replies

9. Solaris

How can i restrict user high cpu usage?

HI In my M5000 , one of domain is having SAp installed. from today onwards we are facing some stange issue. when we start SAP application, that particular user is taking 95 % of system CP and renaming 5 % is taken by system . because of this reason application is slow. i have 4 CPU(32... (4 Replies)
Discussion started by: bentech4u
4 Replies

10. UNIX for Advanced & Expert Users

Identify cause of high resource usage

hello all, on linux servers sometimes any of these resources (cpu,memory,disk) get a spike when you are not in front of the server. the duration of these spikes might be 5 mins or even whole weekend. my question is there a good way of capturing the events that caused these issues ( cpu or... (5 Replies)
Discussion started by: coolatt
5 Replies
cpusetops(3)						     Library Functions Manual						      cpusetops(3)

NAME
cpusetops, cpuaddset, cpuandset, cpucopyset, cpucountset, cpudelset, cpudiffset, cpuemptyset, cpufillset, cpuisemptyset, cupismember, cpuorset, cpusetcreate, cpusetdestroy, cpuxorset - Perform operations on CPU sets (libc library) SYNOPSIS
#include <cpuset.h> int cpuaddset( cpuset_t set, cpuid_t cpuid ); int cpuandset( cpuset_t set_src1, cpuset_t set_src2, cpuset_t set_dst ); int cpucopyset( cpuset_t set_src, cpuset_t set_dst ); int cpucountset( cpuset_t set ); int cpudelset( cpuset_t set, cpuid_t cpuid ); int cpudiffset( cpuset_t set_src1, cpuset_t set_src2, cpuset_t set_dst ); int cpuemptyset( cpuset_t set ); int cpufillset( cpuset_t set ); int cpuisemptyset( cpuset_t set ); int cpuismember( cpuset_t set, cpuid_t cpuid ); int cpuorset( cpuset_t set_src1, cpuset_t set_src2, cpuset_t set_dst ); int cpusetcreate( cpuset_t *set ); int cpusetdestroy( cpuset_t *set ); int cpuxorset( cpuset_t set_src1, cpuset_t set_src2, cpuset_t set_dst ); PARAMETERS
Identifies a CPU. Specifies or points to a CPU set. Specifies a CPU set that is being copied to or that is the result of a logical OR, XOR, or AND operation on two other CPU sets. Specifies a CPU set that is being copied to another CPU set or that is part of a logical OR, XOR, or AND operation with another CPU set. DESCRIPTION
The cpusetops primitives manipulate sets of CPUs, by operating on data objects (of type cpuset_t) that are created by cpusetcreate(). The cpusetcreate() function allocates, and sets to empty, a CPU set pointed to by set. The cpusetdestroy() function releases the memory that was obtained by cpusetcreate() for the specified CPU set pointed to by set. The cpucountset() function returns the number of members in the CPU set specified by set. The cpuemptyset() function initializes the CPU set specified by set, such that no CPUs are included in the set. The cpufillset() function initializes the CPU set specified by set, such that all CPUs that are currently configured in the caller's parti- tion are included in the set. The cpuismember() function tests whether the CPU specified by the value of cpuid is a member of the CPU set specified by set. The cpuisemptyset() function tests whether the CPU set specified by the set is empty. The cpucopyset() function copies the contents of the CPU set specified by set_src to the CPU set specified by set_dst. The cpuaddset() and cpudelset() functions respectively add or delete the individual CPU specified by the value of cpuid to or from the CPU set specified by set. The cpuandset(), cpuorset(), and cpuxorset() functions perform a logical AND, OR, or XOR operation, respectively, on the CPU sets specified by set_src1 and set_src2, storing the result in the CPU set specified by set_dst. The cpudiffset() function finds the logical difference between the CPU sets specified by set_src1 and set_src2, storing the result in the CPU set specified by set_dst. (The result is made up of members that are included in set_src1 but not in set_src2.) RETURN VALUES
These functions return the following values: Success (returned by all functions). For cpuisemptyset() and cpuismember() only, 0 also means the condition being tested is false; that is, the specified CPU set is not empty or does not contain the specified member. Success (returned by cpuisemptyset() and cpuismember()only). This return value also means the condition being tested is true; that is, the specified CPU set is empty or contains the specified member. Failure (returned by all functions). In this case, errno is set to indicate the error. ERRORS
The cpuaddset(), cpuandset(), cpucopyset(), cpucountset(), cpudelset(), cpudiffset(), cpuemptyset(), cpufillset(), cpuisemptyset(), cpuis- member(), cpuorset(), and cpuxorset() functions set errno to the following value for the corresponding condition: The value of a set or set_* argument is invalid (possibly is not a CPU set created bycpusetcreate()). The cpusetcreate() and cpusetdestroy() functions set errno to one of the the following values for the corresponding condition: The address of the specified CPU set is invalid. For cpusetcreate() only, no memory could be allocated for the specified CPU set. If the cpuaddset(), cpudelset(), and cpuismember() functions fail, they set errno to the following value for the reason specified: The value of cpuid is an invalid or unsupported CPU identifier. EXAMPLES
The following example demonstrates a variety of CPU set operations: #include <cpuset.h> int main() { cpuset_t cpuset, cpuset2; /* Create cpusets - initialized as empty */ cpusetcreate(&cpuset); cpusetcreate(&cpuset2); /* demonstrate cpuset operations */ /* add cpu 0 to cpuset */ if (cpuaddset(cpuset, 0) == -1) { perror("cpuaddset"); return 0; } /* copy cpuset to cpuset2 */ if (cpucopyset(cpuset, cpuset2) == -1) { perror("cpucopyset"); return 0; } if (cpuaddset(cpuset, 1) == -1) { /* add cpu 1 to cpuset */ perror("cpuaddset"); return 0; } /* difference of cpuset and cpuset2, store in cpuset */ if (cpudiffset(cpuset, cpuset2, cpuset) == -1) { perror("cpudiffset"); return 0; } /* Enumerate cpuset. */ while (1) { cpuid_t id; int flags = SET_CURSOR_CONSUME; cpu_cursor_t cpu_cursor = SET_CURSOR_INIT; id = cpu_foreach(cpuset, flags, &cpu_cursor); if (id == CPU_NONE) { printf(" "); break; } else { printf("%3d ", id); } } /* Destroy cpuset */ cpusetdestroy(&cpuset); cpusetdestroy(&cpuset2); return 0; } SEE ALSO
Functions: cpu_foreach(3), numa_intro(3) Files: numa_types(4) cpusetops(3)
All times are GMT -4. The time now is 10:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy