|
楼主 |
发表于 2011-4-25 12:26:28
|
显示全部楼层
看了wiki
只要一个命令就可以了~
多个物理硬盘的时候用命令
Using the sys virtual filesystem
This method is preferred when the system has several physical storage devices (for example an SSD and an HDD). Add the following line in /etc/rc.local:echo noop > /sys/block/sdX/queue/scheduler
如果是纯SSD的linux环境就在GRUB引导上添加
For example, with GRUB, in /boot/grub/menu.lst:kernel /vmlinuz26 root=/dev/sda3 ro elevator=noop
or with GRUB2, in /etc/default/grub: (remember to run update-grub afterwards)GRUB_CMDLINE_LINUX="elevator=noop" |
|