Sponsored Content
Top Forums Shell Programming and Scripting what would a script include to find CPU's %system time high and user time high? Post 302630131 by sushwey on Wednesday 25th of April 2012 12:16:25 PM
Old 04-25-2012
Question hi

Thanks for your reply , I am like just few days of research new to scripting . I have Ubuntu installed (VirtualBox) and i need to create a simple script that would drive the system time , the user time , and elapsed time without affecting the first two (i.e. system time & user time) . Not sure how to start with this .

A part of my script where i need help is
case $choice in
1)
echo "Hi $USER"
echo ""
echo "Cpu's system time"
echo "---------------------------------------------"
This is where i need help ;; Smilie

I went through google and it says to use top or vmstat to know the cpu's system time .Not sure how Right i m . I have sysstat package installed ..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script with high CPU utilization

Hi All, i have a script that finds the file with .txt .zip .Z .gzip that are 3 days old in directory /abc/def and removes them find /abc/def -name '0*.txt' -mtime +6 -exec rm {} \; find /abc/def -name '0*.zip' -mtime +6 -exec rm {} \; find /abc/def -name '0*.gzip' -mtime +6... (3 Replies)
Discussion started by: mad_man12
3 Replies

2. Shell Programming and Scripting

script to generate core if cpu is high

Hi guys, I need a script that will generate a core of a process when the process uses high cpu for a sustained period? So for example if a process is using greater than 80% cpu for more than 30 minutes do "gcore /var/tmp/process.core pid" (1 Reply)
Discussion started by: borderblaster
1 Replies

3. Shell Programming and Scripting

High CPU Utilization of the script

There is a script which processes the incoming files from a particular directory and sleeps if it doesnt find any. Currently, i have been told that eventhough there are no files to process, the CPU utilization is very high. An independent evaluation by advisory specialist has found this script does... (2 Replies)
Discussion started by: nandu
2 Replies

4. 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

5. Solaris

Find why CPU utlization WAS high yesterday

I want to investigate why CPU utilization was high yesterday on my solaris 10 machine. I have been reported this problem but how can I investigate why CPU utilization went high at that time? :confused: (4 Replies)
Discussion started by: kashif_islam
4 Replies

6. Red Hat

apache high cpu load on high traffic

i have a Intel Quad Core Xeon X3440 (4 x 2.53GHz, 8MB Cache, Hyper Threaded) with 16gig and 1tb harddrive with a 1gb port and my apache is causing my cpu to go up to 100% on all four cores heres my http.config <IfModule prefork.c> StartServers 10 MinSpareServers 10 MaxSpareServers 15... (4 Replies)
Discussion started by: awww
4 Replies

7. 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

8. Shell Programming and Scripting

Shell script to monitor process with high CPU

Hi, Linux redhat 5.5 I need to write a kshell script that shows all the process that consume 100% CPU (or more. strange but there are time that top shows higger value that 100) and they are active more than 5 minute. The top command shows all the relevat information: The PID of the cpu ,... (0 Replies)
Discussion started by: yoavbe
0 Replies

9. AIX

Wait time shows high CPU usage

Hi, I can't seem to make sense of this. My wait time is showing really high but vmstat's and topas are showing normal usage. ps aux USER PID %CPU %MEM SZ RSS TTY STAT STIME TIME COMMAND root 9961810 5680.7 0.0 448 384 - A Dec 16 6703072:12 wait ... (2 Replies)
Discussion started by: techy1
2 Replies

10. 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
cm(5)								File Formats Manual							     cm(5)

NAME
cm - cluster monitor for high availability clusters Remarks Cluster operations require the installation of the optional Serviceguard or Serviceguard Extension for RAC software, which is not included in the standard HP-UX operating system. DESCRIPTION
Serviceguard and Serviceguard Extension for RAC are high availability products which provide an environment such that after a failure of a node, services (applications) can be up and running again on another node within a very short amount of time. In addition, Serviceguard Extension for RAC is the enabling software for the Real Application Clusters (RAC). Working with the basic Serviceguard product, Service- guard Extension for Faster Failover allows configuration of clusters for optimized failover. Commands The following set of commands is used to configure a high availability cluster: cmquerycl(1M) cmmakepkg(1M) cmcheckconf(1M) cmapplyconf(1M) The following commands are used to run or halt a cluster: cmruncl(1M) cmhaltcl(1M) cmrunnode(1M) cmhaltnode(1M) cmviewcl(1M) Once a cluster is formed, the following commands are provided for manual operation on high availability packages: cmrunpkg(1M) cmhaltpkg(1M) cmmodpkg(1M) The following commands are used within a package control script to control the services and networks configured for a package: cmrunserv(1M) cmhaltserv(1M) cmmodnet(1M) A command is provided to aid in migrating from a SwitchOver/UX configuration to a Serviceguard cluster: cmmigrate(1M) This command is not applicable with Serviceguard Extension for RAC. SEE ALSO
Managing Serviceguard. Configuring RAC Clusters with Serviceguard Extension for RAC. Requires Optional Serviceguard Software cm(5)
All times are GMT -4. The time now is 06:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy