Sponsored Content
Full Discussion: Script for CPU usage -Linux
Top Forums Shell Programming and Scripting Script for CPU usage -Linux Post 302855283 by techy1 on Thursday 19th of September 2013 01:45:54 PM
Old 09-19-2013
download the stress utility

Use this as a reference.

Linux Stress Test - memory, disk, and cpu testing with StressLinux
 

10 More Discussions You Might Find Interesting

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

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

3. UNIX for Advanced & Expert Users

Script to access multiple linux servers to get system details such as CPU usage

Hi Is there any shell script that accesses multiple linux servers to get details such as CPU usage, RAM used etc. The access of the servers must be parallel not serial in the sense it must ping all the servers at a time to get information.The script has to be triggered from a host system and get... (7 Replies)
Discussion started by: mssrivatsa
7 Replies

4. UNIX for Dummies Questions & Answers

100% CPU usage linux commands

hi guys the application guy told me that his server was executing linux commands with some delay...let's say 1-2-3 seconds.... checking the system we found that when the delay took place CPU usage for that command in top was 100%.... this happens for bash, chkconfig, w, df, du among others in... (2 Replies)
Discussion started by: karlochacon
2 Replies

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

6. Shell Programming and Scripting

Please help me to monitor cpu usage vmstat in Redhat Linux .

Hi , Please some one help me How to write a shell script to monitor cpu usage vmstat in Redhat linux . Thanks, (4 Replies)
Discussion started by: saanvi
4 Replies

7. HP-UX

Perl script limit cpu usage

Hi Experts, I am executing multiple instances(in parallel) of perl script on HP-UX box. OS is allocating substantial amount of CPU to these perl processes,resulting higher cpu utilization. Glance always shows perl processes are occupying majority of the CPU resource. It is causing slower... (2 Replies)
Discussion started by: sai_2507
2 Replies

8. Shell Programming and Scripting

Shell script for logging cpu and memory usage of a Linux process

I am looking for a way to log and graphically display cpu and RAM usage of linux processes over time. Since I couldn't find a simple tool to so (I tried zabbix and munin but installation failed) I started writing a shell script to do so The script file parses the output of top command through... (2 Replies)
Discussion started by: andy_dufresne
2 Replies

9. Shell Programming and Scripting

Shell script to calculate the max cpu usage from the main script

Hi All, I have a script which does report the cpu usuage, there are few output parameter/fields displayed from the script. My problem is I have monitor the output and decide which cpu number (column 2) has maximum value (column 6). Since the output is displayed/updated every seconds, it's very... (1 Reply)
Discussion started by: Optimus81
1 Replies

10. Shell Programming and Scripting

CPU usage script

Hello Friends, I am trying to create a shell script which will check the CPU utilization. I use command top to check the %CPU usage. It give s me below output Cpu states: CPU LOAD USER NICE SYS IDLE BLOCK SWAIT INTR SSYS 0 0.31 9.6% 0.0% 6.1% 84.3% 0.0% 0.0%... (3 Replies)
Discussion started by: Nakul_sh
3 Replies
STRESSAPPTEST(1)					      General Commands Manual						  STRESSAPPTEST(1)

NAME
stressapptest - stress test application for simulating high load situations SYNOPSIS
stressapptest [options] DESCRIPTION
This manual page documents briefly the stressapptest command. stressapptest (unix name for Stressful Application Test) is a program that tries to maximize randomized traffic to memory from processor and I/O, with the intent of creating a realistic high load situation in order to test the existing hardware devices in a computer. OPTIONS
This program supports the following options: -A Run in degraded mode on incompatible systems. -C <threads> Number of memory CPU stress threads to run. -d <device> Add a direct write disk thread with block device (or file) 'device'. -f <filename> Add a disk thread with tempfile 'filename'. -F Don't result check each transaction. -i <threads> Number of memory invert threads to run. -l <logfile> Log output to file 'logfile'. -m <threads> Number of memory copy threads to run. -M <mbytes> Megabytes of RAM to test. -n <ipaddr> Add a network thread connecting to system at 'ipaddr'. -p <pagesize> Size in bytes of memory chunks. -s <seconds> Number of seconds to run. -v <level> Verbosity (0-20), default is 8. -W Use more CPU-stressful memory copy. --blocks-per-segment <number> Number of blocks to read/write per segment per iteration (-d). --cache-size <size> Size of disk cache (-d). --cc_inc_count <number> Number of times to increment the cacheline's member. --cc_line_count <number> Mumber of cache line sized datastructures to allocate for the cache coherency threads to operate. --cc_test Do the cache coherency testing. --destructive Write/wipe disk partition (-d). --filesize <size> Size of disk IO tempfiles. --findfiles Find locations to do disk IO automatically. --force_errors Inject false errors to test error handling. --force_errors_like_crazy Inject a lot of false errors to test error handling. --listen Run threads that listen for incoming net connections. --local_numa Choose memory regions associated with each CPU to be tested by that CPU. --max_errors <number> Exit early after finding specified number of errors. --monitor_mode Only do ECC error polling, no stress load. --no_errors Run without checking for ECC or other errors. --paddr_base <address> Allocate memory starting from this address. --pause_delay <seconds> Delay (in seconds) between power spikes. --pause_duration <seconds> Duration (in seconds) of each pause. --random-threads <number> Number of random threads for each disk write thread (-d). --read-block-size <size> Size of block for reading (-d). --read-threshold <time> Maximum time (in us) a block read should take (-d). --remote_numa <time> Choose memory regions not associated with each CPU to be tested by that CPU. --segment-size <size> Size of segments to split disk into (-d). --stop_on_errors Stop after finding the first error. --write-block-size <size> Size of block for writing (-d). If not defined, the size of block for writing will be defined as the size of block for reading. --write-threshold <time> Maximum time (in us) a block write should take (-d). SEE ALSO
http://code.google.com/p/stressapptest/ AUTHOR
stressapptest was written by Nick Sanders and Rapahel Menderico (Google Inc). This manual page was written by Michael Prokop <mika@debian.org> for the Debian project (and may be used by others). 2009-10-20 STRESSAPPTEST(1)
All times are GMT -4. The time now is 01:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy