From owner-freebsd-current@FreeBSD.ORG Sat May 24 10:06:01 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 93EAB106564A for ; Sat, 24 May 2008 10:06:01 +0000 (UTC) (envelope-from phoemix@harmless.hu) Received: from marvin.harmless.hu (www.ssl.harmless.hu [195.56.55.205]) by mx1.freebsd.org (Postfix) with ESMTP id 51CD48FC18 for ; Sat, 24 May 2008 10:06:01 +0000 (UTC) (envelope-from phoemix@harmless.hu) Received: from catv-5062f582.catv.broadband.hu ([80.98.245.130] helo=mort.in.publishing.hu) by marvin.harmless.hu with esmtpa (Exim 4.69 (FreeBSD)) (envelope-from ) id 1JzqdT-0003i0-T3; Sat, 24 May 2008 12:06:00 +0200 Date: Sat, 24 May 2008 12:05:48 +0200 From: CZUCZY Gergely To: "Alexey Shuvaev" Message-ID: <20080524120548.14435974@mort.in.publishing.hu> In-Reply-To: <20080523152056.GA14884@wep4017.physik.uni-wuerzburg.de> References: <20080523155635.054f5ec4@twoflower.in.publishing.hu> <20080523152056.GA14884@wep4017.physik.uni-wuerzburg.de> Organization: Harmless Digital Bt X-Mailer: Claws Mail 3.3.1 (GTK+ 2.12.1; i386-portbld-freebsd6.3) Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/ypiyZAPw.TlGFf893vWNeGM"; protocol="application/pgp-signature"; micalg=PGP-SHA1 Cc: phoemix@harmless.hu, freebsd-current@freebsd.org Subject: Re: ata mode at startup X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 May 2008 10:06:01 -0000 --Sig_/ypiyZAPw.TlGFf893vWNeGM Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable The thing is, in my case, the disk fails to work properly in UDMA100, this means, when it's under heavier load, it does some errors. However, it works perfectly in UDMA66. The sysctls affect all disks in the configuration, and the other n-1 disks still needs to be tuned, nut just the failing one. So, the sysctl is not a fine grained solution for this issue as I see. On Fri, 23 May 2008 17:20:56 +0200 "Alexey Shuvaev" wrote: > On Fri, May 23, 2008 at 03:56:35PM +0200, phoemix@harmless.hu wrote: > > Hello, > >=20 > > As known, FreeBSD sets the highest supported ATA mode, but > > sometimes it's inproper, since the disk fails to work in this mode. > > This will be obsolate by recent SATA drives, but PATA is still in > > use :) > >=20 > > I've though of the possibility of adding an "atamodetab" rc script, > > with which the administrator could specify the disk modes to set on > > startup. > >=20 > > I've already got a sketch for this script that I use, but I'd like > > to ask, does it worth the effort working on it a bit more, and > > adding it to the core OS? I think this would be a quite useful > > feature to have. > >=20 > Hello! >=20 > I think such a thing should be set much earlier than in rc script, > somewhere in loader.conf(5) and it is already done. > >From ata(4): >=20 > [snip] > The following tunables are settable from the loader: >=20 > hw.ata.ata_dma > set to 1 for DMA access, 0 for PIO (default is DMA). >=20 > hw.ata.atapi_dma > set to 1 for DMA access, 0 for PIO (default is DMA). >=20 > [snip] >=20 > Alexey. > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to > "freebsd-current-unsubscribe@freebsd.org" --=20 Sincerely, Gergely CZUCZY, Harmless Digital mailto: gergely.czuczy@harmless.hu Legacy software is software that works. --Sig_/ypiyZAPw.TlGFf893vWNeGM Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFIN+h+zrC0WyuMkpsRAs+CAKCkr4aHHDMNeX48u4KNeGPbOD3dUwCfTvIi sFUPqvQvQj4rNcGqPPPVGQo= =QlVv -----END PGP SIGNATURE----- --Sig_/ypiyZAPw.TlGFf893vWNeGM--