Sponsored Content
Top Forums UNIX for Advanced & Expert Users How to reduce IOWAIT in linux Post 302126795 by porter on Friday 13th of July 2007 05:34:46 AM
Old 07-13-2007
Not knowing much about your machine here are a few thoughts.

1. Are you using the fastest disks you can, both rotational speed and transfer speed and can your disk controllers support the transfer rates?

2. Consider having a number of disks so binaries live on different disks to data. This will reduce the time spent waiting for seeks to occur.

3. In certain configurations, a RAID arrangement may speed up access to disks.

4, Are you using delayed writes?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

excessive IOWAIT

i have a server constantly have high iowait, but i am not able to tell which process generate the most of io. none commands, such as iostat, sar, top will give me this kind of information. hope there is some command can help me to spot the process generate the most of io let to know input... (1 Reply)
Discussion started by: giantpanda77
1 Replies

2. AIX

reduce available ram

hello, we have a aix 5.2 server with 8GB of ram. is it possible, without actually removing the hardware, to have the O/S think it has only 4GB of ram? We would like to see how the handles and responds if it only had 4Gb instead of the 8GB. Any ideas or suggestions? Thanks Looks like i found... (6 Replies)
Discussion started by: zuessh
6 Replies

3. Shell Programming and Scripting

reduce the or conditions

Hi , how can i reduce the or conditions: if ]; then whatever fi (8 Replies)
Discussion started by: hitmansilentass
8 Replies

4. Linux

how to trace iowait to a certain process

Hi all, Under top command you could see some iowait output. Is any way to locate which process(s) is causing the high percentage of iowait? 17:48:39 up 19 days, 18:54, 3 users, load average: 3.24, 3.14, 3.17 392 processes: 389 sleeping, 1 running, 2 zombie, 0 stopped CPU states: cpu user... (3 Replies)
Discussion started by: will_mike
3 Replies

5. Shell Programming and Scripting

Reduce

printf "\nClosing stats:\n" >> data.txt echo >> data.txt sed 's/^ \t*//;/^#/d;/^$/d' $stats | while read line do close=$(grep -w "^$line" $datafile | sed -e 's/\(.*\),\(.*\),\(.*\)/\2/') if ; then printf "%5d. %-s was not found in file\n"... (3 Replies)
Discussion started by: jafa401
3 Replies

6. Shell Programming and Scripting

How to reduce code.....

Hi All, Could some one help me to reduce the code... if then ./plist -m "$queuename" |grep $2|awk '{print $3}' >unlock.log elif then ./plist -m "$queuename" |grep $2|awk '{print $4}' >unlock.log else ./plist -m "$queuename" |grep $2|awk '{print $5}' >unlock.log . . . . ... (1 Reply)
Discussion started by: harshakusam
1 Replies

7. SuSE

Reduce Size of serveur in LINUX-Suse

Hello, I do not know Linux. It is a black box. We have 2 virtuals servers (SAPVM01 and SAPVM06) in one physical server. The first virtual system (SAPVM01) has a total size of 420 Gb and a free space of 170 GB. A SAP system is running. The second virtual system (SAPVM06) has a total... (3 Replies)
Discussion started by: daniel04
3 Replies

8. UNIX for Dummies Questions & Answers

Is total CPU usage for sar %user+%system+%iowait?

Hi all Can anyone advise/confirm whether total CPU usage when running sar is %user+%system+%iowait or is it %user+%system only? I want to confirm whether I am having a CPU-bound problem or not. This is a single-CPU VMware machine. $ sar 5 20 Linux 2.6.18-238.5.1.el5... (7 Replies)
Discussion started by: newbie_01
7 Replies

9. Shell Programming and Scripting

Script to monitor IOwait

Hello, I need to monitor IOwait on a server and have started this script directly on the ssh prompt. Effectively it almost does what it is supposed to do, but I have no idea how to stop it? How can I make it run it as a file based bash script? ( iostat -xk 1 /dev/sdb2 | \ perl... (10 Replies)
Discussion started by: cuantica
10 Replies

10. Red Hat

Shrink ext4 filesystem and reduce the size of a Logical Volume in Linux

Hello guys, I would like to ask you kindly if you don't know some quick and safe method how to shrink ext4 filesystem and reduce the size of a Logical Volume in Linux, please? Thank you very much. (2 Replies)
Discussion started by: los_bandidos
2 Replies
tunefs(8)						      System Manager's Manual							 tunefs(8)

NAME
tunefs - Tunes an existing UFS file system SYNOPSIS
/usr/sbin/tunefs [-a maxcontig] [-d rotdelay] [-e maxbpg] [-m minfree] [-o optimization_preference] file_system FLAGS
Specifies the maximum number of contiguous blocks that will be laid out before forcing a rotational delay (see the -d flag). The default value is 8. Device drivers that can chain several buffers together in a single transfer should set this to the maximum chain length. Specifies the expected time (in milliseconds) to service a transfer completion interrupt and initiate a new transfer on the same disk. It is used to decide how much rotational spacing to place between successive blocks in a file. Indicates the maximum number of blocks any single file can allocate out of a cylinder group before it is forced to begin allocating blocks from another cylinder group. Typically, you set this value to about one quarter of the total blocks in a cylinder group. The intent is to prevent any single file from using up all the blocks in a single cylinder group, thus degrading access times for all files subsequently allocated in that cylinder group. The effect of this limit is to cause big files to do long seeks more frequently than if they were allowed to allocate all the blocks in a cylinder group before seeking elsewhere. For file systems with exclusively large files, this parameter should be set higher. Specifies the percentage of space held back from normal users; the minimum free space threshold. The default value used is 10%. This value can be set to zero, however up to a factor of three in throughput will be lost over the performance obtained at a 10% threshold. Note that if the value is raised above the current usage level, users will be unable to allocate files until enough files have been deleted to get under the higher threshold. Specifies whether the file system should try to minimize the time spent allocating blocks (-o time) or try to minimize the space fragmentation on the disk (-o space). If the value of minfree (see above) is less than 10%, then the file system should optimize for space to avoid running out of full sized blocks. For values of minfree greater than or equal to 10%, fragmentation is unlikely to be problematical, and the file system can be optimized for time. DESCRIPTION
The tunefs command changes the dynamic parameters of a UFS file system which affect the layout policies. The parameters which are to be changed are indicated by the flags specified. This program should work on mounted and active file systems. Because the superblock is not kept in the buffer cache, the changes will only take effect if the program is run on unmounted file systems. The system must be rebooted after the root file system is tuned. For larger-capacity devices, set minfree to five percent. The rotdelay value is useful for disks that do not have read-ahead cache, such as the RA-series disks. For disks that have read-ahead cache, set rotdelay to zero. When you specifiy an optimization preference, it only comes into play in the following circumstances: when a file is growing; when it is not possible to extend a fragment; and when there is a choice between the following paths: Allocating an exact-sized fragment Allocating a full block and freeing the unused portion of the block When you specify an optimization preference, the system will first try that method when it reaches the minimum reserved space specified in minfree. If you specify space optimization, the system will try that, but switch to time optimization when the file continues to grow and fragmentation is less than half of the minimum free reserve. If you specify time optimization, the system will try that, but switch to space optimization when the file growth causes disk fragmentation to reach within two percent of the minimum free reserve. You must be the root user to use this command. FILES
Specifies the command path RELATED INFORMATION
Commands: newfs(8) delim off tunefs(8)
All times are GMT -4. The time now is 10:58 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy