Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
04-03-2006, 02:30 PM
|
#1
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Rep:
|
Help me with xine-check
Everybody is talking about speeding dvd playing performance, so I also decided to do it.
Running xine-check shows:
Code:
[ hint ] you have MTRR support but it's unused.
It seems like your X server didn't set any MTRR ranges for the
graphics card. Maybe upgrading your X server helps...
You don't have a PCI graphics card, do you? AFAIK, MTRR only
helps with AGP cards.
press <enter> to continue...
[ hint ] DMA is disabled for your DVD interface.
This will probably result in a serious performance hit when
playing DVDs. You can issue the command
hdparm -d1 /dev/hdc
as root to enable DMA. It would be wise to add this command to
some script that is executed executed at boot time.
Note that you probably have to set the DMA mode for your drive as well.
Most DVD-ROMs work fine with multiword DMA mode 2. You can use
hdparm -d1 -X34 /dev/hdc
(as root again) to set this mode. Maybe UDMA2 will give you even better
performance, but it only works well with some controllers. You'll
probably need UDMA capable IDE cables for this mode. If you want
to try: make backups of your important data and type (as root again)
sync hdparm -d1 -X66 /dev/hdc
If your System still works fine after this, you probably want to keep
these settings (add them to some boot script).
If your system hangs or behaves very strangely after a few minutes,
you should reboot immediately and never use this setting again on this
machine. Good luck ;-)
press <enter> to continue...
Code:
# cat /proc/mtrr
reg00: base=0x00000000 ( 0MB), size=1024MB: write-back, count=1
What does this 1024 mean? I have Nvidia GeForce Fx 5700 256 Mb.
Another problem with dma:
Code:
hdparm -d1 /dev/hdc
/dev/hdc:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma = 0 (off)
Other mentioned options show similar error.
Last edited by Alien_Hominid; 04-03-2006 at 02:37 PM.
|
|
|
04-03-2006, 02:51 PM
|
#2
|
Moderator
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
|
Did you run hdparm as the user or as root? It needs root access. The 1024 is, I believe, block sizes.
|
|
|
04-03-2006, 03:10 PM
|
#3
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Original Poster
Rep:
|
Of course as root.
Code:
root@UFO:~# hdparm -d1 /dev/hdc
/dev/hdc:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma = 0 (off)
Don't know if this helps but have nec cd-rw/dvd-rw drive ( _NEC DVD_RW ND-2500A).
Last edited by Alien_Hominid; 04-03-2006 at 03:14 PM.
|
|
|
04-04-2006, 12:25 AM
|
#4
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Original Poster
Rep:
|
Any suggestions?
|
|
|
04-04-2006, 02:33 AM
|
#5
|
Member
Registered: Mar 2006
Distribution: Slackware
Posts: 63
Rep:
|
Quote:
Originally Posted by Alien_Hominid
Of course as root.
Code:
root@UFO:~# hdparm -d1 /dev/hdc
/dev/hdc:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma = 0 (off)
|
Do you have DMA support enabled in your kernel?
Are you sure your device is /dev/hdc and not /dev/something_else ?
Last edited by wchild; 04-04-2006 at 02:35 AM.
|
|
|
04-04-2006, 10:04 AM
|
#6
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Original Poster
Rep:
|
DMA and MTRR are enabled in the kernel.
Yes, I am sure (it's secondary master).
|
|
|
04-04-2006, 10:13 AM
|
#7
|
Member
Registered: Nov 2003
Location: 46N 76W
Distribution: Slackware 14.1
Posts: 380
Rep:
|
I put hdparm -d1 /dev/hdc
In /etc/rc.d/rc.local so it is enabled at boot.
I also put there
hdparm -d1 /dev/hda
and I've install Nvidia drivers for 3d acceleration, thinking this might have something to do with speed.
Last edited by WilliamS; 04-04-2006 at 10:15 AM.
|
|
|
04-04-2006, 10:54 AM
|
#8
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Original Poster
Rep:
|
Code:
hdparm -d1 /dev/sda
/dev/sda:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Inappropriate ioctl for device
My HDD is sata one.
|
|
|
04-04-2006, 11:03 AM
|
#9
|
Senior Member
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Rep:
|
You shouldn't have to use hdparm to enable DMA.
If you go to the kernel configuration (assuming you're brave enough to compile a kernel) you should see this option in Device Drivers -> Block Devices and enable support for S-ATA.
Then goto to ATA/ATAPI/MFM/RLL support and go through all the options. See which chipset your driver supports. Choose the driver as Y and then save the configuration. Quit.
Then make the kernel using make then issue make modules_install and make bzImage.
You should copy the created bzImage to /boot/ directory as vmlinuz-2.x.y (where x and y are major and minor kernel version) and System.map to /boot/System.map-2.x.y and .config to /boot/config-2.x.y). Now update your kernel symlinks (/boot/vmlinuz, /boot/System.map and /boot/config) to your new kernel and reboot.
Last edited by vharishankar; 04-04-2006 at 11:04 AM.
|
|
|
04-04-2006, 11:40 AM
|
#10
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Original Poster
Rep:
|
Actually SATA support must be checked in
Device drivers >> SCSI device support >> SCSI device support >> SCSI low-level drivers >> Serial ATA (SATA) support and selecting correct chipset.
And what's the point of doing it?
I already have my SATA support enabled.
|
|
|
04-04-2006, 12:04 PM
|
#11
|
Senior Member
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Rep:
|
If you choose the correct chipset and compile it into the kernel, your DMA performance will be optimum.
Quote:
And what's the point of doing it?
|
This is so... but what is the kernel version? Also have you compiled in the specific chipset? It has a list there (I'm using make gconfig with kernel 2.6.16).
|
|
|
04-04-2006, 12:10 PM
|
#12
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Original Poster
Rep:
|
Here is everything I found related to DMA in my kernel config:
Code:
CONFIG_GENERIC_ISA_DMA=y
CONFIG_ISA_DMA_API=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
# CONFIG_BLK_DEV_IDEDMA_FORCED is not set
CONFIG_IDEDMA_PCI_AUTO=y
# CONFIG_IDEDMA_ONLYDISK is not set
CONFIG_BLK_DEV_PIIX=y (this is my specific chipset - some kind of Intel)
CONFIG_BLK_DEV_IDEDMA=y
# CONFIG_IDEDMA_IVB is not set
CONFIG_IDEDMA_AUTO=y
# CONFIG_BLK_DEV_HD is not set
# CONFIG_SCSI_PDC_ADMA is not set (don't know whether this is related to dma)
Kernel version: 2.6.16-rc5.
Code:
Intel PIIXn chipsets support BLK_DEV_PIIX
This driver adds explicit support for Intel PIIX and ICH chips
and also for the Efar Victory66 (slc90e66) chip. This allows
the kernel to change PIO, DMA and UDMA speeds and to configure
the chip to optimum performance.
Don't know if this chipset is right but this the only one for Intel.
Last edited by Alien_Hominid; 04-04-2006 at 12:16 PM.
|
|
|
04-04-2006, 12:17 PM
|
#13
|
Senior Member
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Rep:
|
Hmm.. the only suggestion I can give is to check your motherboard manual to verify (if you haven't done already).
BTW, My board is the old IDE board and doesn't have SATA. I use the nForce chipset drivers in the IDE chipset driver list.
|
|
|
04-04-2006, 12:23 PM
|
#14
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Original Poster
Rep:
|
|
|
|
04-04-2006, 05:46 PM
|
#15
|
Senior Member
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721
Rep:
|
did you already check the bios-settings for dma ?
egag
|
|
|
All times are GMT -5. The time now is 05:49 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|