VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: boot dma  (Read 1134 times)

overthere

  • Vectorian
  • ****
  • Posts: 1334
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
Logged
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....
Logged
"As people become more intelligent they care less for preachers and more for teachers". Robert G. Ingersoll

overthere

  • Vectorian
  • ****
  • Posts: 1334
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
Logged
Everything Is Relative

rbistolfi

  • Packager
  • Vectorian
  • ****
  • Posts: 2301
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.
Logged
"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: 1334
Re: boot dma solved
« Reply #4 on: January 18, 2008, 10:32:26 pm »

Thanks rbistolfi for confirmation..thanks both for solution
Logged
Everything Is Relative