VectorLinux
September 01, 2014, 03:20:24 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: boot dma  (Read 984 times)
overthere
Vectorian
****
Posts: 1273



« 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



WWW
« 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: 1273



« 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: 2282


« 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: 1273



« Reply #4 on: January 18, 2008, 10:32:26 pm »

Thanks rbistolfi for confirmation..thanks both for solution
Logged

Everything Is Relative
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!