Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
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.
Recently while copying a large file from a cdrom (/dev/hdc which I mount at /mnt/cdrom) to my local partition (/dev/hda1) I noticed that performance was seriously lagging. Normally I can compile or play games (basically run the CPU at 99-100%) and not notice this same lag. The mouse pointer was jolting all around the screen instead of a smooth motion.
I had heard something about keeping the cd drive and hard drive on seperate IDE channels or something...any ideas?
I am assuming your optical drive connects to an IDE controller like a hard drive and not to a SCSI?
in which case, generally speaking the data transfer is only as fast as the slowest machine.
if you can....... set the optical to master and have it on its own ribbon/controller.
2) you can do your own real world tests without a program and with an intensive program running....maybe you have a hardware starting to the road to heaven?
could be ram so use memtest
could be harddrive could be optical etc.
find a known size large file and burn it to cdr and copy it back to hard drive from optical drive to see what it is versus do a google for the specs for your optical drive. Then repeat with your fav game running.
3) you can get stats from various linux executables like
top
ps
Gkrellm
If your drives use DMA, the CPU is hardly affected, no matter how slow the media are.
Try the following (as root):
hdparm /dev/hda
hdparm /dev/hdc
What does each say for using_dma?
Yes, my hard drives and CD drive are connected with IDE, not SCSI. I don't think it is an upcoming hardware failure, as everything runs fine under my Windows partition, and the RAM is fairly new. I'm away from my computer right now, but I'll check if DMA is enabled on my CD drive when I get home (I know that it is on for my hard drive). I think that maybe DMA isn't on the CD drive, which would explain a lot. The CD drive is 52x speed btw.
Thanks for the help.
I guess I'll have to throw on DMA for the cd drive and give it a go! Thanks for the help and ideas, I'll try out giving copy a nice value, but that seems more like a temporary solution.
Switching on DMA with hdparm -d will only last until the next reboot.
But usually DMA should be enabled for every device that supports it. Do you use a custom kernel? If yes, what does
grep IDEDMA_PCI_AUTO .config
and
grep IDEDMA_ONLYDISK .config
say (the first should be "yes", the second "no")?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.