Please support VectorLinux!

Author Topic: boot dma  (Read 1120 times)

overthere

  • Vectorian
  • ****
  • Posts: 1314
boot dma
« on: January 18, 2008, 07:27:46 pm »
I notice that dma for the hd and cd/dvd optical are not on after boot and the system runs slow.
I can hdparm -d1 /dev/hdx for a session which seems to make an improvement, especially if watching a dvd

Question:
How do I turn on dma at boot time so it remains on

cheers
Everything Is Relative

lagagnon

  • Global Moderator
  • Vectorian
  • *****
  • Posts: 1922
Re: boot dma
« Reply #1 on: January 18, 2008, 07:50:19 pm »
Put that command at the bottom of your /etc/rc.d/rc.local file....
"As people become more intelligent they care less for preachers and more for teachers". Robert G. Ingersoll

overthere

  • Vectorian
  • ****
  • Posts: 1314
Re: boot dma
« Reply #2 on: January 18, 2008, 08:53:57 pm »
Thanks lagagnon
do I require "&" after the first or just the two lines and reboot
ie:hdparm -d1 /dev/hda &
   hdparm -d1 /dev/hdc

or:hdparm -d1 /dev/hda
    hdparm -d1 /dev/hdc

seems silly maby but had to have the "&" elsewhere to continue the script..thanks
Everything Is Relative

rbistolfi

  • Packager
  • Vectorian
  • ****
  • Posts: 2299
Re: boot dma
« Reply #3 on: January 18, 2008, 09:11:55 pm »
Hi overthere,

That is not necessary in this case, since hdparm exits immediately after turning on dma in your device. "&" is used to send processes to background when it will keep running locking your cli or script.
"There is a concept which corrupts and upsets all others. I refer not to Evil, whose limited realm is that of ethics; I refer to the infinite."
Jorge Luis Borges, Avatars of the Tortoise.

--
Jumalauta!!

overthere

  • Vectorian
  • ****
  • Posts: 1314
Re: boot dma solved
« Reply #4 on: January 18, 2008, 10:32:26 pm »
Thanks rbistolfi for confirmation..thanks both for solution
Everything Is Relative