Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 16822 - hdparm -t /dev/hda broken
Summary: hdparm -t /dev/hda broken
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-04 09:08 UTC by Axel Reimann
Modified: 2003-07-09 20:47 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
my USE variable (use.txt,458 bytes, text/plain)
2003-03-04 09:10 UTC, Axel Reimann
Details
emerge use info (use.txt,458 bytes, text/plain)
2003-03-04 09:12 UTC, Axel Reimann
Details
emerge use info (use.txt,458 bytes, text/plain)
2003-03-04 09:12 UTC, Axel Reimann
Details
emerge info (emerge_info.txt,1.43 KB, text/plain)
2003-03-10 03:50 UTC, Axel Reimann
Details
Patch to correct 5.3 problem (hdparm-5.3-wrongsize.patch,573 bytes, patch)
2003-05-08 23:26 UTC, Norberto Bensa
Details | Diff
ebuild for hdparm with above patch (hdparm-5.3-r99.ebuild,1.13 KB, text/plain)
2003-05-08 23:27 UTC, Norberto Bensa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Axel Reimann 2003-03-04 09:08:48 UTC
> hdparm -t /dev/hda  
yields: 
 Timing buffered disk reads:  -56 MB in  0.00 seconds =  -inf kB/sec 
Hmm.. suspicious results: probably not enough free memory for a proper test. 
 
> hdparm -T /dev/hda  
yields: 
/dev/hda: 
 Timing buffer-cache reads:   -112 MB in  0.00 seconds =  -inf kB/sec 
 
There's definitely enough memory in this machine: 
> free 
             total       used       free     shared    buffers     cached 
Mem:        643644     459128     184516          0      14020     335348 
-/+ buffers/cache:     109760     533884 
Swap:      1052248      49652    1002596 
 
The hard disc itself is identified correctly and working just fine: 
> hdparm -i /dev/hda 
/dev/hda: 
 
 Model=TOSHIBA MK3018GAS, FwRev=Q3.03 D, SerialNo=42DE8240T 
 Config={ Fixed } 
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=46 
 BuffType=unknown, BuffSize=0kB, MaxMultSect=16, MultSect=16 
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=58605120 
 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120} 
 PIO modes:  pio0 pio1 pio2 pio3 pio4 
 DMA modes:  sdma0 sdma1 sdma2 mdma0 mdma1 mdma2 
 UDMA modes: udma0 udma1 *udma2 
 AdvancedPM=yes: unknown setting WriteCache=enabled 
 Drive conforms to: device does not report version:  1 2 3 4 5
Comment 1 Axel Reimann 2003-03-04 09:10:44 UTC
Created attachment 8956 [details]
my USE variable
Comment 2 Axel Reimann 2003-03-04 09:12:02 UTC
Created attachment 8957 [details]
emerge use info
Comment 3 Axel Reimann 2003-03-04 09:12:25 UTC
Created attachment 8958 [details]
emerge use info
Comment 4 Axel Reimann 2003-03-04 09:14:51 UTC
Before I forget: 
*  sys-apps/hdparm 
Latest version installed: 5.3-r2 
Comment 5 sa 2003-03-08 23:13:10 UTC
downgrading to hdparm-5.2-r3 fixes the problem.
mabey hdparm-5.3* should be masked?
Comment 6 Seth Chandler 2003-03-09 10:11:24 UTC
can you please paste the output of `emerge info`
Comment 7 Axel Reimann 2003-03-10 03:50:39 UTC
Created attachment 9194 [details]
emerge info

output of 'emerge info'
Comment 8 Seth Chandler 2003-03-11 20:52:36 UTC
alright i'm looking into this right now...i don't think we need to mask 5.3 just yet....i get the same results here...i'm looking into hdparm...


seth
Comment 9 Graham Forest 2003-04-04 21:32:15 UTC
I get approximately the same output with both my internal drive, and my external (scsi emu firewire).

stalin% sudo hdparm -tT /dev/hda                /usr/gentoo-x86/media-gfx/jhead

/dev/hda:
 Timing buffer-cache reads:   -112 MB in  0.00 seconds =  -inf kB/sec
 Timing buffered disk reads:  -56 MB in  0.00 seconds =  -inf kB/sec
Hmm.. suspicious results: probably not enough free memory for a proper test.
stalin% sudo hdparm -tT /dev/sda                /usr/gentoo-x86/media-gfx/jhead

/dev/sda:
 Timing buffer-cache reads:   -428 MB in  0.00 seconds =  -inf kB/sec
 Timing buffered disk reads:  -214 MB in  0.00 seconds =  -inf kB/sec
Hmm.. suspicious results: probably not enough free memory for a proper test.
Comment 10 Seth Chandler 2003-04-05 08:46:32 UTC
this is a kernel issue i believe, i've seen some discussions about hdparm bein flaky on LKML..., i'm going to bounce to x86-kernel, feel free to hit me back if you find its not a kernel problem, and i'll cc myself
Comment 11 Ian Smith 2003-04-15 16:52:37 UTC
More info:

12 $ hdparm -i /dev/hda5

/dev/hda5:
 HDIO_GET_IDENTITY failed: Invalid argument

5 $ uname -a
Linux beaky 2.4.20 #4 SMP Fri Apr 11 11:05:42 BST 2003 i686 AMD Athlon(tm) XP 1800+ AuthenticAMD GNU/Linux

6 $ emerge info
Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.20 i686 AMD Athlon(tm) XP 1800+
GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo http://mirrors.sunsite.dk/gentoo http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /var/bind /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config"
CONFIG_PROTECT_MASK="/etc/init.d /etc/xfce /etc/X11/xkb /etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/mnt/monster/tmp"
PORTDIR_OVERLAY="/usr/local/portage"
USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg libg++ mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml gdbm berkdb slang readline tetex nas bonobo svga java guile X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gtk qt motif opengl aalib -alsa -arts cdr dga directfb doc dvd fbcon -gnome -gtk2 -kde lirc mbox mozilla mysql oav odbc plotutils postgres samba sse tcltk usb"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache userpriv usersandbox"
Comment 12 Marko Daniel 2003-04-25 06:19:09 UTC
i agree with sa (comment #5). it's a known problem in the hdparm 5.3 release. 5.2 is ok, therefore 5.3 should be masked, no?
Comment 13 Norberto Bensa 2003-05-08 23:26:01 UTC
Created attachment 11710 [details, diff]
Patch to correct 5.3 problem
Comment 14 Norberto Bensa 2003-05-08 23:27:12 UTC
Created attachment 11711 [details]
ebuild for hdparm with above patch

works for me(Tm) and someone in gentoo-user mailing list
Comment 15 Martin Holzer (RETIRED) gentoo-dev 2003-07-09 12:59:47 UTC
does 5.4 fix this ?
Comment 16 Jay Pfeifer (RETIRED) gentoo-dev 2003-07-09 20:47:19 UTC
yes, it seems fixed. the patch that norberto posted has been incorporated into the 5.4 release.

Closing.

Jay