From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1E5Z8Q-0000IH-T7 for garchives@archives.gentoo.org; Thu, 18 Aug 2005 01:23:59 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j7I1KgFs024541; Thu, 18 Aug 2005 01:20:42 GMT Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.206]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j7I1Evs6026008 for ; Thu, 18 Aug 2005 01:14:58 GMT Received: by zproxy.gmail.com with SMTP id x7so218273nzc for ; Wed, 17 Aug 2005 18:15:54 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=r0oCYSakoqE+cUgl94sIMRwdXo2P0rxcU5Dny/3mGMZbR4dTTVcMx+R58MTq7weyPDQniTegiVzvkCrkGFOn/0jl21QTR4qEaLXMs0Rq8V+LMpg2JoJAo0bfKvqzUGOHxpD3cvQHiQOPaulKfTm9N1dRi4pAe/cKOh1xB4AXi7s= Received: by 10.36.5.16 with SMTP id 16mr989554nze; Wed, 17 Aug 2005 18:15:54 -0700 (PDT) Received: by 10.36.58.18 with HTTP; Wed, 17 Aug 2005 18:15:53 -0700 (PDT) Message-ID: <5bdc1c8b050817181534c38cd9@mail.gmail.com> Date: Wed, 17 Aug 2005 18:15:54 -0700 From: Mark Knecht To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Slow HD In-Reply-To: <200508172156.39946.pupeno@pupeno.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline References: <200508171813.12154.pablo.fernandez@reliable.com.ar> <5bdc1c8b0508171444766dbf2@mail.gmail.com> <200508172156.39946.pupeno@pupeno.com> Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by robin.gentoo.org id j7I1Evs6026008 X-Archives-Salt: 9587bec4-d5c2-4cd2-b273-0f0c5edf9ba4 X-Archives-Hash: d43b3b867ba9805e463aa1956ccd2c1d On 8/17/05, Pupeno wrote: > On Wednesday 17 August 2005 18:44, Mark Knecht wrote: > > A quick test would be > > > > hdparm -tT /dev/hda > I got this: > /dev/hda: > Timing cached reads: 1344 MB in 2.00 seconds = 672.10 MB/sec > Timing buffered disk reads: 8 MB in 3.51 seconds = 2.28 MB/sec > > > (or whatever drive you are concerned about.) Greater than 15MB/S is > > almost certainly DMA but good DMA from newer drives should be > > 25-50MB/S > The second speed is evidently wrong. Not wrong, just not DMA. BTW - as has been pointed out here before - do not take these numbers as a serious test of real disk speeds. This is a just a quick way of looking. > > > You can look at the drives parameters using hdparm and reading through > > the man page to understand what all the values mean. > I tried to enable dma, but this happened: > # hdparm -d1 /dev/hda > > /dev/hda: > setting using_dma to 1 (on) > HDIO_SET_DMA failed: Operation not permitted > using_dma = 0 (off) > > What am I doing wrong ? some kernel option ? Possibly. Many of the ATAPI DMA drivers are supplied when you enable the proper chipset support in make menuconfig under Device Drivers -> ATA support. What chipset is your machine using? (lspci) >>From my laptop: flash linux # hdparm /dev/hda /dev/hda: multcount = 16 (on) IO_support = 0 (default 16-bit) unmaskirq = 0 (off) using_dma = 1 (on) keepsettings = 0 (off) readonly = 0 (off) readahead = 256 (on) geometry = 65535/16/63, sectors = 80026361856, start = 0 flash linux # flash linux # hdparm -tT /dev/hda /dev/hda: Timing cached reads: 1788 MB in 2.00 seconds = 891.91 MB/sec Timing buffered disk reads: 82 MB in 3.04 seconds = 26.93 MB/sec flash linux # Cheers, Mark -- gentoo-user@gentoo.org mailing list