Sponsored Content
Top Forums UNIX for Advanced & Expert Users How to reduce IOWAIT in linux Post 302126953 by porter on Saturday 14th of July 2007 11:45:41 PM
Old 07-15-2007
Here is an interesting article regarding performance tweaks for Linux...

http://www.linux.com/feature/116693

Quote:
The hdparm command ("hdparm" stands for "hard disk parameters") allows you to examine and modify drive configuration. Not all modifications are good: some will lower the performance, and some can even be wildly destructive, leading to data loss. The man hdparm command shows you all the options, and highlights the dangerous ones.
 

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
hdparm.conf(5)						     hdparm configuration file						    hdparm.conf(5)

NAME
hdparm.conf - Debian configuration file for hdparm DESCRIPTION
This is the default configuration for hdparm for Debian. It is a rather simple script, so please follow the following guidelines :) Any line that begins with a comment is ignored - add as many as you like. Note that an in-line comment is not supported. If a line consists of whitespace only (tabs, spaces, carriage return), it will be ignored, so you can space control fields as you like. ANYTHING ELSE IS PARSED!! This means that lines with stray characters or lines that use non # comment characters will be interpreted by the initscript. This has probably minor, but potentially serious, side effects for your hard drives, so please follow the guidelines. Patches to improve flexibilty welcome. Please read /usr/share/doc/hdparm/README.Debian for notes about known issues, especially if you have an MD array. Note that if the init script causes boot problems, you can pass 'nohdparm' on the kernel command line, and the script will not be run. Setting an option outside of one of the stanzas enables it for all drives. If an option is listed twice, the second instance replaces the first. /sbin/hdparm is not run unless a block of the form: DEV { option option } exists. This blocks will cause /sbin/hdparm OPTIONS DEV to be run. Where OPTIONS is the concatenation of all options previously defined outside of a block and all options defined with in the block. OPTIONS
-q be quiet quiet -a sector count for filesystem read-ahead read_ahead_sect = 12 -A disable/enable the IDE drive's read-lookahead feature lookahead = on -b bus state bus = on -B apm setting apm = 255 -B apm setting when on battery apm_battery = 128 -c enable (E)IDE 32-bit I/O support - can be any of 0,1,3 io32_support = 1 -d disable/enable the "using_dma" flag for this drive dma = off -D enable/disable the on-drive defect management defect_mana = off -E cdrom speed cd_speed = 16 -k disable/enable the "keep_settings_over_reset" flag for this drive keep_settings_over_reset = off -K disable/enable the drive's "keep_features_over_reset" flag keep_features_over_reset = on -m sector count for multiple sector I/O mult_sect_io = 32 -P maximum sector count for the drive's internal prefetch mechanism prefetch_sect = 12 -r read-only flag for device read_only = off -s Enable/disable the power-on in standby feature poweron_standby = off -S standby (spindown) timeout for the drive spindown_time = 24 -u interrupt-unmask flag for the drive interrupt_unmask = on -W Disable/enable the IDE drive's write-caching feature write_cache = off -X IDE transfer mode for newer (E)IDE/ATA2 drives transfer_mode = 34 -y force to immediately enter the standby mode standby -Y force to immediately enter the sleep mode sleep -Z Disable the power-saving function of certain Seagate drives disable_seagate -M Set the acoustic management properties of a drive acoustic_management -p Set the chipset PIO mode chipset_pio_mode --security-freeze Freeze the drive's security status security_freeze --security-unlock Unlock the drive's security security_unlock = PWD --security-set-pass Set security password security_pass = password --security-disable Disable drive locking security_disable --user-master Specifies which password to select security_mode = u --security-mode Set the security mode security_mode = h Root file systems. Please see README.Debian for details. ROOTFS = /dev/hda Blocks beginning with the keyword 'command_line' instead of a device identifier are no longer supported for backwards compatibility by this version of hdparm. Options must be introduced by a correct device identifier instead so that they will be applied when the device becomes available. AUTHOR
hdparm was written by Mark Lord <mlord@pobox.com> The init script and configuration file are currently maintained by Stephen Gran <sgran@debian.org>, but are the result of the work of many people. This manual page was created by Stephen Gran <sgran@debian.org> for the Debian GNU/Linux system (but may be used by others). Stephen Gran August 10, 2005 hdparm.conf(5)
All times are GMT -4. The time now is 01:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy