LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 851|回复: 2

装两块硬盘会不会让电脑变得更快呢?

[复制链接]
发表于 2010-1-16 11:47:43 | 显示全部楼层 |阅读模式
发现硬盘在读写时整个系统都会变慢,所以突发奇想,装两块硬盘,让经常读写硬盘的操作在一块硬盘上进行(比如编译一些大型软件),而系统运行在另外一块硬盘上,这样在第二块硬盘上读写大量数据时,系统是不是就不会变的很慢呢?
谢谢
PS:
本机CPU够快,内存够大,系统变慢是由硬盘读写引起的
发表于 2010-1-16 12:08:25 | 显示全部楼层
Your approach depends on the access time of individual HDD, it may or may not be better.

If you use both HDD to build a RAID0, it may be faster.

Alternatively, there are several ways to gain a little bit higher performance:

1. Recompile the kernel with the better CPU optimization
2. Use higher version of gcc to compile the kernel
3. Always enable DMA and increase the read ahead buffer, e.g.

hdparm -c1 -d1 -u1 -a1024 /dev/xxx

(DMA for SATA/SCSI HDD may not work but the change of read ahead buffer should always work)

4. Make use of tmpfs
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-1-16 12:19:10 | 显示全部楼层
Thank you!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表