Sponsored Content
Operating Systems AIX Hard disk usage is 100 Percent Busy for any command Post 302145409 by bakunin on Wednesday 14th of November 2007 05:18:50 AM
Old 11-14-2007
Sorry, but i can't tell you "how to improve the performance" because i don't know why the performance is bad - i simply do not know your system!

I take your word that CPU and memory is not an issue (wonder how you came to this conclusion, but anyways) and will concentrate on what else might be the culprit. Possible reasons include (but are in no way limited to):

Maybe your SAN-subsystem has a problem. If it is a ESS look into the errorlog of the system: the SSA-adapters there have batteries supporting the fast-write-cache, these batteries need to be changed from time to time and empty batteries shut down the FW-cache. This could also be watched by dramatically low write-performance together with a normal read-performance.

Maybe you have native SSA-loops, then the problem directly arises with the cache of the adapter. Look in the error-log it should be mentioned there.

Maybe your filesystem has hotspots, get a trace of the filesystem. Use "vmstat -v" to get a first impression or "filemon"/"trcstop" to get a report. A typical trace would look like:

filemon -u -O all -o /tmp/filemon.out ; sleep 10 ; trcstop

If you see in the output that the trace buffers are too small make them bigger by using the -T option:

filemon -u -O all -T 512000 .....

The output is pretty self-explanatory.

If it is an internal disk look into your errorlog for disk failures. Usually this starts with hdisk3-type errors, which are temporary and ends in hdisk4-type errors, which are permanent. The reason is that disks have some spare blocks and bad block relocation takes place first - temporary errors - but once the spare blocks are exhausted damage for the PP can't be prevented - permanent error.

Maybe you are slowing down your filesystem by bad layout - use LVM tools to get map files of all the filesystems and analyze them.

Maybe your system is slow because it is swapping all the time - have a look at the output of "svmon -G" and compare the memory pages "inuse" and "virtual". If "virtual" is much bigger than "inuse" that hints to more memory needed by the running applications than there is. Multiply the number by 4k (size of a memory page) to get a rough estimation of how much more memory you need.

and, and, and .... I could go on for hours with similar considerations, all starting with "maybe". Unless you provide no data nobody can tell you anything about your system.

bakunin
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

disk usage command on unix?

hi, Can anyone tell me how I make a tree on the console showing the largest folders on my UNIX system? I want to know where are located the biggest files so I can free some disk space. thanks a lot. (3 Replies)
Discussion started by: gandoura
3 Replies

2. HP-UX

how can i get hard disk usage

I want to get hard disk usage hard disk usage= already allocated/total allocated first I use ioscan -kfnC disk get disk name c#t#d# then I use diskinfo /dev/rdsk/c#t#d# but this command can only get total disk size,not disk usage has any command can get that thanks:) (2 Replies)
Discussion started by: alert0919
2 Replies

3. Solaris

Command to List Hard Disk Information

I have a SparcStation5 that is making sounds that make me think the disk drive(s) may be on the verge of quiting. What is the command to list the disk types and sizes? I'm thinking I can possibly pick up another drive or two and compy the exisiting drives while they are still working. (1 Reply)
Discussion started by: muletrainman
1 Replies

4. Shell Programming and Scripting

Unix - Disk usage command

Hi, I need a command that gives me the user who is using more space in the unix box (1 Reply)
Discussion started by: abinaya
1 Replies

5. UNIX for Dummies Questions & Answers

Total cpu usage in percent(%)

How to determine the total percentage cpu usage of a server having 4 cpu cores(quad core)? (3 Replies)
Discussion started by: proactiveaditya
3 Replies

6. Linux

C++ Code to Access Linux Hard Disk Sectors (with a LoopBack Virtual Hard Disk)

Hi all, I'm kind of new to programming in Linux & c/c++. I'm currently writing a FileManager using Ubuntu Linux(10.10) for Learning Purposes. I've got started on this project by creating a loopback device to be used as my virtual hard disk. After creating the loop back hard disk and mounting it... (23 Replies)
Discussion started by: shen747
23 Replies

7. Linux

How to Calculate Disk Queue length and Disk Busy Time

Hi, Am doing an enhancements related to monitoring a Linux disk I/O statistics. The /proc/diskstats file is used to get the each disk I/O statistics. But, It returns the raw value. How to calculate the Disk Queue Length and Disk Busy time from the raw values. Guide me. (1 Reply)
Discussion started by: maruthu
1 Replies

8. AIX

Command to check the busy % for a hard disk device like hdisk5

Please help with command to check the busy % for a hard disk device like hdisk5 Best regards, Vishal (7 Replies)
Discussion started by: Vishal_dba
7 Replies

9. UNIX for Dummies Questions & Answers

Memory usage per user,percent usage,sytem time in ksh

Let's say i have 20 users logged on Server. How can I know how much memory percent used each of them is using with system time in each user? (2 Replies)
Discussion started by: roy1912
2 Replies

10. Shell Programming and Scripting

Need Generic command for disk space usage

Given this directory /web I need to get the current usage (in %) on Linux and Unix both using the same command on bash shell ? The command i tried was working on Unix (solaris) but does not filter the desired same value when run of Linux. My command df -h /web | awk '{print $5}' | sed -n... (5 Replies)
Discussion started by: mohtashims
5 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 02:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy