Sponsored Content
Top Forums Shell Programming and Scripting 30 Load average with fping script Post 302382071 by charlscross on Tuesday 22nd of December 2009 05:27:47 AM
Old 12-22-2009
30 Load average with fping script

Hi! I've make a script that gets a list of 200 Ip's and calls another script once per ip in a infinite loop with a pause of 10 seconds. So It calls over 200 times every 10 seconds the second script (that makes a fping). But this cause a load average of 30. I've been reading about this and I undestand that the load average is high because there are a lot of processes (the second script I guess) waiting to be executed. My server has a good performance so, is possible that this high load will become a problem in the future or is it a normal behavior when you run such scripts as I do?

My top info:
Code:
top - 11:27:01 up  2:36,  2 users,  load average: 27.23, 28.56, 28.74
Tasks: 281 total,  32 running, 248 sleeping,   0 stopped,   1 zombie
Cpu(s):  1.4%us, 97.1%sy,  0.5%ni,  0.0%id,  0.0%wa,  0.0%hi,  1.0%si,  0.0%st
Mem:   3115860k total,   588408k used,  2527452k free,   104720k buffers
Swap:  5177336k total,        0k used,  5177336k free,   278932k cached


Last edited by charlscross; 12-22-2009 at 06:30 AM.. Reason: Add
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

load average

we have an unix system which has load average normally about 20. but while i am running a particular unix batch which performs heavy operations on filesystem and database average load reduces to 15. how can we explain this situation? while running that batch idle cpu time is about %60-65... (0 Replies)
Discussion started by: gfhgfnhhn
0 Replies

2. UNIX for Dummies Questions & Answers

Load Average

Hello all, I have a question about load averages. I've read the man pages for the uptime and w command for two or three different flavors of Unix (Red Hat, Tru64, Solaris). All of them agree that in the output of the 2 aforementioned commands, you are given the load average for the box, but... (3 Replies)
Discussion started by: Heathe_Kyle
3 Replies

3. Solaris

load average query.

Hi, i have installed solaris 10 on t-5120 sparc enterprise. I am little surprised to see load average of 2 or around on this OS. when checked with ps command following process is using highest CPU. looks like it is running for long time and does not want to stop, but I do not know... (5 Replies)
Discussion started by: upengan78
5 Replies

4. UNIX for Dummies Questions & Answers

Please Help me in my load average

Hello AlL,.. I want from experts to help me as my load average is increased and i dont know where is the problem !! this is my top result : root@a4s # top top - 11:30:38 up 40 min, 1 user, load average: 3.06, 2.49, 4.66 Mem: 8168788k total, 2889596k used, 5279192k free, 47792k... (3 Replies)
Discussion started by: black-code
3 Replies

5. UNIX for Dummies Questions & Answers

Load Average threshold

What should be the threshold for load average of a quad core processor? What constitutes "good" and "bad" load average values? (2 Replies)
Discussion started by: proactiveaditya
2 Replies

6. UNIX for Advanced & Expert Users

Load average in UNIX

Hi , I am using 48 CPU sunOS server at my work. The application has facility to check the current load average before starting a new process to control the load. Right now it is configured as 48. So it does mean that each CPU can take maximum one proces and no processe is waiting. ... (2 Replies)
Discussion started by: kumaran_5555
2 Replies

7. UNIX for Dummies Questions & Answers

Help with load average?

how load average is calculated and what exactly is it difference between cpu% and load average (9 Replies)
Discussion started by: robo
9 Replies

8. HP-UX

Load average unit

Hi, On load average graph, unit is 100m, 200m, 300...800m. I don't understand what it means. Thx for helping (3 Replies)
Discussion started by: Michenux
3 Replies

9. Shell Programming and Scripting

Script to load daily average I/O stats from a .ksh file into Oracle db

Hi can anyone help me with a script to load output of the .ksh file into an Oracle database. I have attached sample output of the information that i need to load to the database (2 Replies)
Discussion started by: LucyYani
2 Replies

10. Shell Programming and Scripting

Bash script affect load average

Hello I have created next scritpt to do the next: chekp if host is alive. When the host down, launch telnet other equip to do checks. When execute the script the load average of the machines increase. For example: Before launch script top - 11:14:56 up 14 days, 18:06, 3 users, load... (3 Replies)
Discussion started by: capilla
3 Replies
MD-MX-CTRL(8)						      System Manager's Manual						     MD-MX-CTRL(8)

NAME
md-mx-ctrl - Control mimedefang-multiplexor SYNOPSIS
md-mx-ctrl [options] command DESCRIPTION
md-mx-ctrl is a command-line tool for communicating with mimedefang-multiplexor(8). OPTIONS
-h Displays usage information. -s path Specifies the path to the mimedefang-multiplexor socket. If not specified, defaults to /var/spool/MIMEDefang/mimedefang-multi- plexor.sock. -i This flag causes md-mx-ctrl to sit in a loop, reading commands on standard input and printing results to standard output. It is intended for use by a monitoring program such as watch-mimedefang. COMMANDS
The following commands are available: status Prints the status of all slave Perl processes in human-readable format. rawstatus Prints the status of all slave Perl processes in a format easy to parse by computer. The result is a single line with six words on it. The words are separated by a single space character. Each character in the first word corresponds to a slave, and is "I" for an idle slave, "B" for a busy slave, "S" for a slave which is not running, and "K" for a slave which has been killed, but has not yet exited. A slave is "idle" if there is a running Perl process waiting to do work. "Busy" means the Perl process is currently filtering a message. "S" means there is no associated Perl process with the slave, but one can be started if the load warrants. Finally, "K" means the slave Perl process has been killed, but has yet to terminate. The second word is the total number of messages processed since the multiplexor started up. The third word is the total number of slaves which have been activated since the multiplexor started up. (That is, it's a count of the number of times the multiplexor has forked and exec'd the Perl filter.) The fourth word is the size of the queue for request queuing, and the fifth word is the actual number of requests in the queue. The sixth word is the number of seconds elapsed since the multiplexor was started. barstatus Prints the status of busy slaves and queued requests in a nice "bar chart" format. This lets you keep an eye on things with a script like this: while true ; do md-mx-ctrl barstatus sleep 1 done histo Prints a histogram showing the number of slaves that were busy each time a request was processed. A single line is printed for the numbers from 1 up to the maximum number of slaves. Each line contains the count of busy slaves (1, 2, 3 up to MX_MAXIMUM), a space, and the number of times that many slaves were busy when a request was processed. load Prints a table showing "load averages" for the last 10 seconds, 1 minute, 5 minutes and 10 minutes. Each row in the table corresponds to a time interval, displayed in the first column. The remaining columns in the table are: Msgs: The number of messages scanned within the row's time interval. Msgs/Sec: The average number of messages scanned per second within the row's time interval. Avg Busy Slaves: The average number of busy slaves whenever a message was scanned. (If you are processing any mail at all, this number will be at least 1, because there is always 1 busy slave when a message is scanned.) If you have the watch(1) command on your system, you can keep an eye on the load with this command: watch -n 10 md-mx-ctrl load If you do not have watch, the following shell script is a less fancy equivalent: #!/bin/sh while true; do clear date md-mx-ctrl load sleep 10 done rawload Prints the load averages in computer-readable format. The format consists of twenty-nine space-separated numbers: The first four are integers representing the number of messages scanned in the last 10 seconds, 1 minute, 5 minutes and 10 minutes. The second four are floating-point numbers representing the average number of busy slaves in the last 10 seconds, 1 minute, 5 min- utes and 10 minutes. The third four are floating-point numbers representing the average time per scan in milliseconds over the last 10 seconds, 1 minute, 5 minutes and 10 minutes. The fourth four are the number of slave activations (new slaves started) over the last 10 seconds, 1 minute, 5 minutes and 10 min- utes. The fifth four are the number of slaves reaped (slaves that have exited) over the last 10 seconds, 1 minute, 5 minutes and 10 min- utes. The sixth four are the number of busy, idle, stopped and killed slaves. The seventh four are the number of messages processed, the number of slave activations, the size of the request queue, and the num- ber of requests actually on the queue. The final number is the number of seconds since the multiplexor was started. load-relayok Similar to load, but shows timings for filter_relay calls. load-senderok Similar to load, but shows timings for filter_sender calls. load-recipok Similar to load, but shows timings for filter_recipient calls. rawload-relayok Similar to rawload, but shows timings for filter_relay calls. Note that the slave activation and reap statistics are present, but always 0. They are only valid in a rawload command. rawload-senderok Similar to rawload, but shows timings for filter_sender calls. Note that the slave activation and reap statistics are present, but always 0. They are only valid in a rawload command. rawload-recipok Similar to rawload, but shows timings for filter_recipient calls. Note that the slave activation and reap statistics are present, but always 0. They are only valid in a rawload command. slaves Displays a list of slaves and their process IDs. Each line of output consists of a slave number, a status (I, B, K, or S), and for idle or busy slaves, the process-ID of the slave. For busy slaves, the line may contain additional information about what the slave is doing. busyslaves Similar to slaves, but only outputs a line for each busy slave. slaveinfo n Displays information about slave number n. reread Forces mimedefang-multiplexor to kill all idle slaves, and terminate and restart busy slaves when they become idle. This forces a reread of filter rules. msgs Prints the total number of messages scanned since the multiplexor started. ADDITIONAL COMMANDS
You can supply any other command and arguments to md-mx-ctrl. It percent-encodes each command-line argument, glues the encoded arguments together with a single space between each, and sends the result to the multiplexor as a command. This allows you to send arbitrary com- mands to your Perl slaves. See the section "EXTENDING MIMEDEFANG" in mimedefang-filter(5) for additional details. PERMISSIONS
md-mx-ctrl uses the multiplexor's socket; therefore, it probably needs to be run as root or the same user as mimedefang-multiplexor. AUTHOR
md-mx-ctrl was written by David F. Skoll <dfs@roaringpenguin.com>. The mimedefang home page is http://www.mimedefang.org/. SEE ALSO
mimedefang.pl(8), mimedefang-filter(5), mimedefang(8), mimedefang-protocol(7), watch-mimedefang(8) 4th Berkeley Distribution 8 February 2005 MD-MX-CTRL(8)
All times are GMT -4. The time now is 06:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy