LinuxSir.cn,穿越时空的Linuxsir!

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

lfs6.0 livd cd

[复制链接]
发表于 2005-10-14 17:30:49 | 显示全部楼层 |阅读模式
不知大家有没有这个感觉,用live cd来编译特别慢。我静态编译第一包的时候,花了2个多小时都美make出来。想把它拷到硬盘上。直接引导来试试
发表于 2005-10-14 21:15:35 | 显示全部楼层
因为部份资源被花在动态解压及读盘上。再者CD读盘速度远远不及硬盘,所以用LiveCD是会较慢一点

我的做法是先下个hdparm把它编译好,将硬盘及CD盘优化一下才开始LFS。其他方法如加内存或SWAP也有帮助
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-10-14 22:23:18 | 显示全部楼层
谢谢回复,你的办法是打开dma?
我的想法是把动态解压的东西全部拷贝到一个新分区,在为此编译一个2.6的内核,用他来引导LFS。再在下面编译。
回复 支持 反对

使用道具 举报

发表于 2005-10-15 06:26:42 | 显示全部楼层
hdparm is not only used to enable dma, but also optimize the read and write actions of your storage media.  Normally, I use hdparm -c1 -d1 -u1 -a1024 -m16 /dev/hda /dev/hdc .... to allow slightly better performances.  The -X flag is usually enabled with the highest modes available and usually no need to change.

Of course, reading speed of a CD is still inferior to a local harddisk.  Your approach is certainly a better choice.  However, in such event, you should consider how much differences are there when compared to use an existing distro as your host to do LFS.  With an existing distro, you do not need to extract files dynamically from the LiveCD image, in theory, it should be much faster, shouldn't it?
回复 支持 反对

使用道具 举报

发表于 2005-10-15 07:38:27 | 显示全部楼层
应该是不会出现这个问题的,不过如果dma没打开的话,那的确会非常慢。
如果出现这个问题,用hdparm也许没用,因为kernel一般会自动打开DMA的,如果支持的话。不然就是相应的模块没选上。
回复 支持 反对

使用道具 举报

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

本版积分规则

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