Extremely poor SATA performance (Inappropriate ioctl for device)
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with 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.
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.
Extremely poor SATA performance (Inappropriate ioctl for device)
I recently built a new Fedora box using Fedora Core 4 with kernel version 2.6.11-1.1369_FC4. The current setup is listed in my sig below. I first installed Fedora using the onboard SATA VIA VT6420 chipset and I received the exact same error messages listed below while using the silicon 3112 card. The performance for these sata drives is pretty low considering my IDE drives in my FC3 box run way quicker. when running hdparm -tT, this is what I get:
[root@haze ~]# /sbin/hdparm -tT /dev/sda
/dev/sda:
Timing cached reads: 1364 MB in 2.00 seconds = 681.08 MB/sec
HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Inappropriate ioctl for device
Timing buffered disk reads: 66 MB in 3.32 seconds = 19.85 MB/sec
HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Inappropriate ioctl for device
[root@haze ~]# /sbin/hdparm -tT /dev/sdb
/dev/sdb:
Timing cached reads: 1336 MB in 2.00 seconds = 667.10 MB/sec
HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Inappropriate ioctl for device
Timing buffered disk reads: 72 MB in 3.04 seconds = 23.65 MB/sec
HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Inappropriate ioctl for device
I'm currently running the drives with the Silicon controller card and both sata_via and sata_sil are listed as host adapters in the modprobe.conf. Is there anything I can do to make these drives perform at there suggested speeds? Any help is greatly appreciated.
I would say upgrade to the most recent version of the kernel available for your distro or build your own from the kernel.org sometimes these things can be solved by a newer driver.
Ok, so I did an update via yum and got all the updates including the new kernel. I'm currently running 2.6.15-1.1831_FC4 and I no longer get the error message. I am just curious if my drives are running at the correct speed...below is what it shows.
[root@haze ~]# /sbin/hdparm -tT /dev/sda
/dev/sda:
Timing cached reads: 1404 MB in 2.00 seconds = 700.56 MB/sec
Timing buffered disk reads: 168 MB in 3.02 seconds = 55.70 MB/sec
/dev/sdb:
Timing cached reads: 1368 MB in 2.00 seconds = 683.96 MB/sec
Timing buffered disk reads: 174 MB in 3.01 seconds = 57.77 MB/sec
I did notice the speed changing a bit on sdb. It was 42.38 mb/s instead of the 57.77 above.
Your doing good I get low to mid 50s on my SATA drive the error/warning disappeared because the newer kernel supports the hdparm command better on SATA drives.
Thanks so much HappyTux. I'm sure I could have figured out that I needed to update it, but I'm a noobie to linux and you helped me...thanks again!
Yeah, your drives seem to be performing very well now. I used to get the same error message when running hdparm on my SATA drives, though I did not observe the kind of performance degradation you experienced. Just FYI, here's the output for my SATA drive:
/dev/sda:
Timing cached reads: 2484 MB in 2.00 seconds = 1241.92 MB/sec
Timing buffered disk reads: 186 MB in 3.01 seconds = 61.75 MB/sec
I don't think cached reads matter nearly as much as buffered disk reads, though I forgot the details...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.