vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| In article <slrnbh1n14.cjo.noemail@news.easynews.com>, Big Daddy Butthead wrote: > I know how to enable dma on the harddisks manually. How can I do > it first thing so that my bootup benefits from it? > rc-update add hdparm boot -- Jon Portnoy avenj/irc.freenode.net Opinions expressed are my own, not those of any entity I am associated with unless stated otherwise. |
| |||
| * Big Daddy Butthead (2003-07-13 07:30 +0200) > I know how to enable dma on the harddisks manually. How can I do > it first thing so that my bootup benefits from it? jed /etc/conf.d/hdparm; rc-update add hdparm boot > Another question, how can you enable dma for a cdrom? hdparm can't > seem to do it. Sure it can. Try "hdparm /dev/hdc". Just be careful - I toasted two older cdrom drives a few weeks ago with "-d1 -A1 -m16 -u1 -a64 -M128". Thorsten -- Content-Type: text/explicit; charset=ISO-8859-666 (Parental Advisory) Content-Transfer-Warning: message contains innuendos not suited for children under the age of 18 |
| |||
| Hi Jon! > rc-update add hdparm boot Overkill (: All hdparm -d1 /dev/... to local.start -- http://tam.belchenstuermer.de/ |
| |||
| Jon Portnoy wrote: > > rc-update add hdparm boot > OK, I did that. And /etc/conf.d/hdparm has all_args="-d1" so I think it should be working. Still my system becomes very jerky when reading from the drive, for example it pauses every second or 2 when playing a dvd (the drive is a dvd burner BTW) making it unwatchable. Is there a way to check if dma is enabled? hdparm manually doesn't work: # hdparm /dev/cdroms/cdrom0 /dev/cdroms/cdrom0 not supported by hdparm # Is this perhaps because the cdrom is using scsi emulation? |
| |||
| On Sun, 13 Jul 2003 15:27:10 +0000, Big Daddy Butthead wrote: > Jon Portnoy wrote: >> >> rc-update add hdparm boot >> > > OK, I did that. And /etc/conf.d/hdparm has all_args="-d1" so I think > it should be working. Still my system becomes very jerky when reading > from the drive, for example it pauses every second or 2 when playing a > dvd (the drive is a dvd burner BTW) making it unwatchable. Is there a > way to check if dma is enabled? hdparm manually doesn't work: > > # hdparm /dev/cdroms/cdrom0 > /dev/cdroms/cdrom0 not supported by hdparm > # > > Is this perhaps because the cdrom is using scsi emulation? Jon, hdparm won't work through scsi emulation. Look in /proc/ide/ ... /settings. You can change these settings too. Where ... is dependent on which ide device your dvd is. Regards, Roy Bamford -- Computer users fall into two groups:- Those that do backups Those that have never had a hard drive fail |
| |||
| Roy Bamford wrote: > > Jon, > > hdparm won't work through scsi emulation. > > Look in /proc/ide/ ... /settings. > You can change these settings too. > > Where ... is dependent on which ide device your dvd is. My dvd is the master on the second ide device (ide1). The settings file for /dev/hdc shows dma off, and I think my dvd is /dev/hdc, though in fstab it is listed as /dev/cdroms/cdrom0 which is linked to /dev/scsi/host0/bus0/target0/lun0/cd. I am confused as to how/where the cdrom device actually gets linked to /dev/hdc, but it must be it because I only have 2 other drives, and they are hda and hdb. So the next question is, how to I change the settings file for /dev/hdc. It is not an editable file. |
| |||
| In article <berepj$87adg$2@ID-106772.news.uni-berlin.de>, Timo Maier wrote: > Hi Jon! > >> rc-update add hdparm boot > Overkill (: > > All hdparm -d1 /dev/... to local.start > How is it overkill? By default the rc script just uses -d1, but lets you tweak it in /etc/conf.d/hdparm - it provides much nicer output than running it from local.start. Additionally it enables it for _all_ drives. -- Jon Portnoy avenj/irc.freenode.net Opinions expressed are my own, not those of any entity I am associated with unless stated otherwise. |
| |||
| "Big Daddy Butthead" <noemail@yahoo.com> wrote in message news:slrnbh1n14.cjo.noemail@news.easynews.com... > I know how to enable dma on the harddisks manually. How can I do > it first thing so that my bootup benefits from it? > > Another question, how can you enable dma for a cdrom? hdparm can't > seem to do it. > > Thanks! Enabling DMA on scsi-emulated IDE devices can be a bit of a problem. I can think of two ways to do it. The first is to directly edit the values in /proc/ide/hdX/settings; where X is your specific device. I could never get enough info to try this. The second requires that the cdrom,ide-cd,sg,sr_mod and ide-scsi modules not be compiled into the kernel and that the booloader does not enable scsi emulation. A properly funcioning devfs is also needed. This also requires that these modules not be loaded through modules.autoload(or elsewhere).In a startup script you might use something like the following: hdparm -d1 /dev/hdX rmmod cdrom rmmod ide-cd modprobe ide-scsi modprobe sg modprobe sr_mod The general idea is to play with hdparm for the optical drives before enabling scsi emulation with ide-scsi. I am writing this from memory because I don't have access to the machines that I have done this procedure. I may be leaving out some of the scsi modules that are needed but I hope that you get the general idea Steve. |
| ||||
| Jon Portnoy wrote: > In article <berepj$87adg$2@ID-106772.news.uni-berlin.de>, Timo Maier > wrote: >>> rc-update add hdparm boot > How is it overkill? By default the rc script just uses -d1, but lets you Further more the dma is enabled much earlier which speeds up the boot process. mg |