> 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
Created attachment 8956 [details] my USE variable
Created attachment 8957 [details] emerge use info
Created attachment 8958 [details] emerge use info
Before I forget: * sys-apps/hdparm Latest version installed: 5.3-r2
downgrading to hdparm-5.2-r3 fixes the problem. mabey hdparm-5.3* should be masked?
can you please paste the output of `emerge info`
Created attachment 9194 [details] emerge info output of 'emerge info'
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
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.
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
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"
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?
Created attachment 11710 [details, diff] Patch to correct 5.3 problem
Created attachment 11711 [details] ebuild for hdparm with above patch works for me(Tm) and someone in gentoo-user mailing list
does 5.4 fix this ?
yes, it seems fixed. the patch that norberto posted has been incorporated into the 5.4 release. Closing. Jay