ata mode at startup

CZUCZY Gergely phoemix at harmless.hu
Sat May 24 10:06:01 UTC 2008


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" <shuvaev at physik.uni-wuerzburg.de> wrote:

> On Fri, May 23, 2008 at 03:56:35PM +0200, phoemix at harmless.hu wrote:
> > Hello,
> > 
> > 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 :)
> > 
> > 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.
> > 
> > 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.
> > 
> Hello!
> 
> 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):
> 
> [snip]
>      The following tunables are settable from the loader:
> 
>      hw.ata.ata_dma
>      set to 1 for DMA access, 0 for PIO (default is DMA).
> 
>      hw.ata.atapi_dma
>      set to 1 for DMA access, 0 for PIO (default is DMA).
> 
> [snip]
> 
> Alexey.
> _______________________________________________
> freebsd-current at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to
> "freebsd-current-unsubscribe at freebsd.org"


-- 

Sincerely,

Gergely CZUCZY,
Harmless Digital
mailto: gergely.czuczy at harmless.hu

Legacy software is software that works.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20080524/108e37a2/signature.pgp


More information about the freebsd-current mailing list