Sponsored Content
Full Discussion: Performance issue!
Top Forums UNIX for Advanced & Expert Users Performance issue! Post 302299578 by Corona688 on Friday 20th of March 2009 11:46:35 AM
Old 03-20-2009
For IDE disks, dma settings are quite important to performance.

Code:
$ hdparm -d /dev/hda

/dev/hda:
 using_dma     =  1 (on)

$ hdparm -I /dev/hda

/dev/hda:

ATA device, with non-removable media
        Model Number:       Maxtor 6L300R0
        Serial Number:      L60Z0NBG
        Firmware Revision:  BAJ41G20
Standards:
        Used: ATA/ATAPI-7 T13 1532D revision 0
        Supported: 7 6 5 4
Configuration:
        Logical         max     current
        cylinders       16383   65535
        heads           16      1
        sectors/track   63      63
        --
        CHS current addressable sectors:    4128705
        LBA    user addressable sectors:  268435455
        LBA48  user addressable sectors:  586114704
        device size with M = 1024*1024:      286188 MBytes
        device size with M = 1000*1000:      300090 MBytes (300 GB)
Capabilities:
        LBA, IORDY(can be disabled)
        Standby timer values: spec'd by Standard, no device specific minimum
        R/W multiple sector transfer: Max = 16  Current = 16
        Advanced power management level: unknown setting (0x0000)
        Recommended acoustic management value: 192, current value: 0
        DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5 udma6
             Cycle time: min=120ns recommended=120ns
        PIO: pio0 pio1 pio2 pio3 pio4
             Cycle time: no flow control=120ns  IORDY flow control=120ns
Commands/features:
        Enabled Supported:
           *    SMART feature set
                Security Mode feature set
           *    Power Management feature set
           *    Write cache
           *    Look-ahead
           *    Host Protected Area feature set
           *    WRITE_VERIFY command
           *    WRITE_BUFFER command
           *    READ_BUFFER command
           *    NOP cmd
           *    DOWNLOAD_MICROCODE
                Advanced Power Management feature set
                SET_MAX security extension
                Automatic Acoustic Management feature set
           *    48-bit Address feature set
           *    Device Configuration Overlay feature set
           *    Mandatory FLUSH_CACHE
           *    FLUSH_CACHE_EXT
           *    SMART error logging
           *    SMART self-test
                Media Card Pass-Through
           *    General Purpose Logging feature set
           *    WRITE_{DMA|MULTIPLE}_FUA_EXT
           *    URG for READ_STREAM[_DMA]_EXT
           *    URG for WRITE_STREAM[_DMA]_EXT
           *    SMART Command Transport (SCT) feature set
           *    SCT Data Tables (AC5)
Security:
        Master password revision code = 65534
                supported
        not     enabled
        not     locked
                frozen
        not     expired: security count
        not     supported: enhanced erase
HW reset results:
        CBLID- above Vih
        Device num = 0 determined by the jumper
Checksum: correct

Those two commands show whether DMA is enabled on an IDE drive, and if it is, what kind. hdparm -d1 /dev/hda will attempt to enable DMA transfer on an IDE drive if it isn't already.

hdparm can also do benchmarks:
Code:
$ hdparm -tT /dev/hda

/dev/hda:
 Timing cached reads:   292 MB in  2.00 seconds = 145.96 MB/sec
 Timing buffered disk reads:  140 MB in  3.04 seconds =  46.08 MB/sec
$

 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Performance issue

Hello all, I just stuck up in an uncertain situation related to network performance... I am trying to access one of my remote client unix machine from a distant location.. The client machine is Ultra-5_10 , with SunOS 5.5.1 The ndd result ( hme1 )shows that the machine is hooked to a... (5 Replies)
Discussion started by: shibz
5 Replies

2. AIX

performance issue

We have a AIX v5.3 on a p5 system with a poor performing Ingres database. We added one CPU to the system to see if this would help. Now there are two CPU's. with sar and topas -P I see good results: CPU usage around 30% with topas I only see good results in the process output screen, the... (1 Reply)
Discussion started by: rein
1 Replies

3. UNIX for Advanced & Expert Users

performance issue

Hi, on a linux server I have the following : vmstat 2 10 procs memory swap io system cpu r b w swpd free buff cache si so bi bo in cs us sy id 0 4 0 675236 39836 206060 1617660 3 3 3 6 8 7 1 1 ... (1 Reply)
Discussion started by: big123456
1 Replies

4. Shell Programming and Scripting

performance issue

I want to read a file. is it good to use File I/O or shell script?? which one is the best option? (1 Reply)
Discussion started by: vishwaraj
1 Replies

5. Solaris

Performance issue

Hi Gurus, I am beginner in solaris and want to know what are the things we need to check for performance monitoring on our solairs OS. for DISK,CPU and MEMORY. Also how we do ipforwarding in slaris Many thanks for your help Pradeep P (4 Replies)
Discussion started by: ppandey21
4 Replies

6. Shell Programming and Scripting

Performance issue or something else?

Hi All, I have the following script which I use in Nagios to check the health of the applications, the problem with it is that the curl part ($TOTAL) does not return anything after running for 2-3 hrs, even though from command line the script runs fine but not from Nagios. There are 17... (1 Reply)
Discussion started by: jacki
1 Replies

7. UNIX for Dummies Questions & Answers

Performance issue

hi I am having a performance issue with the following requirement i have to create a permutation and combination on a set of three files such that each record in each file is picked and the output is redirected in a specific format but it is taking around 70 odd hours to prepare a combination... (7 Replies)
Discussion started by: mad_man12
7 Replies

8. AIX

Performance issue

Hi, We have 2 lpars on p6 blade. One of the lpar is having 3 core cpu with 5gb memory running sybase as database. An EOD process takes 25 min. to complete. Now we have an lpar on P7 server with entitled cpu capacity of 2 with 16 Gb memory and sybase as database. The EOD process which takes... (17 Replies)
Discussion started by: vjm
17 Replies

9. AIX

Performance issue

Hi We have an AIX5.3 server with application which is written in C. We are facing server (lpar) hangs intermediately. If we open new telnet window prompts for user and takes hell of a time to authenticate, not only that if we run ps -aef then also it takes lot of time. surprisingly there is no... (2 Replies)
Discussion started by: powerAIX
2 Replies

10. Red Hat

Performance issue in Linux

IN solaris, for network high-availability we are using IPMP concept, can u tell me in REDHAT LINUX what we are using... also pls share good step to read & understand the that concept... Also performance issue in linux what are step & cmd can u tell me??? (2 Replies)
Discussion started by: tiger09
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 10:18 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy