From owner-freebsd-questions Fri Jul 5 9:22:16 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CE42B37B400 for ; Fri, 5 Jul 2002 09:22:12 -0700 (PDT) Received: from office.advantage-interactive.com (host217-37-74-237.in-addr.btopenworld.com [217.37.74.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id 600C843E09 for ; Fri, 5 Jul 2002 09:22:11 -0700 (PDT) (envelope-from simond@irrelevant.org) Received: from devbox.advantage-interactive.com ([192.168.254.128]) by office.advantage-interactive.com with esmtp (Exim 3.36 #1) id 17QVqN-0000G9-00; Fri, 05 Jul 2002 17:22:03 +0100 Subject: Re: DMA on ATAPI (or lack of it ....) From: Simon Dick To: Juha Ylitalo Cc: questions@FreeBSD.ORG In-Reply-To: <1025885885.277.5.camel@shoes.st-paul> References: <1025883140.270.53.camel@shoes.st-paul> <1025883737.10728.4.camel@linux> <1025885885.277.5.camel@shoes.st-paul> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 05 Jul 2002 17:22:02 +0100 Message-Id: <1025886123.10728.8.camel@linux> Mime-Version: 1.0 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 2002-07-05 at 17:18, Juha Ylitalo wrote: > On Fri, 2002-07-05 at 18:42, Simon Dick wrote: > ... > > > My noname Athlon box seems to work nicely, except for those times, when > > > I try to watch DVD movies (with ogle 0.8.4). Problem in movies is that > > > framerate is 17-20 fps. > > > With quick check on system, problem turns out to be that DMA is turned > > > on ATA, but not on ATAPI. Is there something (in BIOS, rearrange IDE > > > devices, sysctl, kernel, ...) that I could do to change DMA on for atapi > > > and that way I would get better performance from DVD drive or should I > > > simply settle on what I get out of it at the moment (since movies really > > > are only area, where it bothers me) and worry about it, when I buy my > > > next machine, which will probably take at least 4-5 years (based on > > > interval on my previous hardware upgrades). > ... > > Try adding this to /etc/sysctl.conf > > hw.ata.atapi_dma=1 > > It seems that sysctl.conf is read at the end of rc and at that point, it > seems to be too late to set turn it on. Or at least this is what I get: > shoes# sysctl -w hw.ata.atapi_dma=1 > sysctl: oid 'hw.ata.atapi_dma' is read only > shoes# > In case it makes any difference, my kern.securelevel is -1. Good point, try putting it in /boot/loader.conf instead as hw.ata.atapi_dma="1" -- Simon Dick simond@irrelevant.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message