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.
Well, I don't think that this applies to most users, because I don't know of too many people that setup RAID5 just for the performance part of it. Technically, I was considering it, but came to the conclusion that it is a silly idea. A much better idea is to get a RAM disk (for example) and use it as an intermediate workspace for files. This is all in theory, of course. I don't think this article is focused on HDD performance per-se.
#6 (noatime) is the only one that is indeed useful, I already use it.
He didn't even mention that there exist other filesystems, like XFS and JFS that have greater performance than ext4. Nor, did he mention the I/O scheduler, which is extremely important in some cases. For example JFS + deadline is a great high-performance combo, whereas using CFQ is not in this case. CFQ works well with other filesystems tho.
What about the SATA drivers ? What mode is the SATA controller in ? This can be important, I've seen some SATA drivers give horrible performance, which can be solved by switching to AHCI. For IDE you can tweak the options using hdparm to squeeze out some more performance.
Last edited by H_TeXMeX_H; 09-29-2010 at 06:38 AM.
What about the SATA drivers ? What mode is the SATA controller in ? This can be important, I've seen some SATA drivers give horrible performance, which can be solved by switching to AHCI.
Do the BIOS settings matter or does Linux by-pass them and go direct to the hardware? To be more explicit, I've set On Chip SATA Type: Native IDE in the BIOS (for WXP running on the real hardware) and seen boot messages and /var/log/ files reporting discovering SATA controllers. Vague recollections of seeing a technical article about the kernel using "bus enumeration" to discover the likes of SATA controllers, too ...
Well, the SATA controller will be discovered if there are drivers that support it. For example, if you are in IDE/PATA mode you will see drivers like pata_marvell being loaded or pata_*. If you are in SATA mode, you'll see sata_sis being loaded or sata_*. If you are in AHCI mode, only one driver should be loaded: ahci.
So, no Linux cannot bypass the BIOS settings, instead it loads drivers based upon the settings.
Now, I don't actually know exactly which drivers will be loaded with each mode, the only one I'm sure about is AHCI mode will always load ahci module.
* = another chipset
Last edited by H_TeXMeX_H; 09-29-2010 at 08:06 AM.
Well, I don't think that this applies to most users, because I don't know of too many people that setup RAID5 just for the performance part of it. Technically, I was considering it, but came to the conclusion that it is a silly idea. A much better idea is to get a RAM disk (for example) and use it as an intermediate workspace for files. This is all in theory, of course. I don't think this article is focused on HDD performance per-se.
#6 (noatime) is the only one that is indeed useful, I already use it.
He didn't even mention that there exist other filesystems, like XFS and JFS that have greater performance than ext4. Nor, did he mention the I/O scheduler, which is extremely important in some cases. For example JFS + deadline is a great high-performance combo, whereas using CFQ is not in this case. CFQ works well with other filesystems tho.
What about the SATA drivers ? What mode is the SATA controller in ? This can be important, I've seen some SATA drivers give horrible performance, which can be solved by switching to AHCI. For IDE you can tweak the options using hdparm to squeeze out some more performance.
I don't think raid is silly.
Is doing backup's silly?
Are faster disk drives silly?
I've never heard anyone who has actually setup raid5 complain that they didn't like it after it was setup, and its not even that hard to setup.
He did not say that RAID is silly. He said that he thinks to set up a RAID 5 for performance gains is silly (what is exactly my opininion, too). If I want performance, I set up a RAID 0, in fact I have one over three disks, and it is running like hell.
Quote:
Is doing backup's silly?
Are faster disk drives silly?
What does that have to do with it?
Quote:
I've never heard anyone who has actually setup raid5 complain that they didn't like it after it was setup, and its not even that hard to setup.
Most people will set up RAID 5 to avoid downtimes in case of disk failure, not to gain speed improvements. So why should they complain?
Well, the SATA controller will be discovered if there are drivers that support it. For example, if you are in IDE/PATA mode you will see drivers like pata_marvell being loaded or pata_*. If you are in SATA mode, you'll see sata_sis being loaded or sata_*. If you are in AHCI mode, only one driver should be loaded: ahci.
So, no Linux cannot bypass the BIOS settings, instead it loads drivers based upon the settings.
Now, I don't actually know exactly which drivers will be loaded with each mode, the only one I'm sure about is AHCI mode will always load ahci module.
* = another chipset
Thanks H_TeXMeX_H After changing the BIOS "On Chip SATA Type" from "Native IDE" to "SATA->AHCI" the only difference identified as relating to the HDDs in /var/log/messages was this extra message: "kernel: pci 0000:00:12.0: set SATA to AHCI mode".
I guess that is a "Good Thing" but I don't have any performance figures to measure it with.
Well, the message comes from the AHCI module, so it must have been using it already. It could be the BIOS allows AHCI to work even in the other modes. I would check what modules are loaded in each mode.
It's possible. I only found what I said out by looking at what modules were loaded in each mode. I found that in AHCI mode I only needed the ahci module and nothing else.
Also note that there may be more than one SATA controller on the system. On mine I have only one, but on a Gigabyte board I have, it has two, an Intel and a JMicron one, with independent BIOS settings.
I did a thorough netsearch for ACPI and "bus enumeration" plus several variants but found nothing so it is unlikely that ACPI itself does bus enumeration.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.