greenforce 发表于 2003-6-1 22:29:12

我是前不久刚试着编译内核, 目前有个疑问需要指点. 谢谢.!

我是前不久刚试着编译内核, 目前有个疑问需要指点. 谢谢.!

编译内核时有些设备驱动是可以选择Y 或 M..不管选什么都可以很好的使用
我的设备. 这就使我产生一点疑惑. 哪些设备该选Y 哪些该选M.
前提如果都可以正常工作.那么应该尽可能的选择 M?
不知个位有没有相关 理论文章推荐.?
例如 : 我的 SCSI设备.(刻录机与硬盘) 驱动是以模块方式加载的.
如果编译到内核内使内核变的很庞大...它会不会有性能上的提高.
(我的意思也就是 有些选项工作在模块下和内核内有没有性能上的差异或者其他?)

Dragonfly 发表于 2003-6-1 22:46:15

no, no difference in performance.

my rule is if i use it everyday, i compile it into kernel, to save some load time (in fact, this time is less than 1-2 sec on my system).
and keep many as module can make kernel small. some systems have limiation on how large a vmlinux can be.
for scsi disk, if u use scsi as root partition, u had better compile it into kernel to save some time to build an initrd file....

kernel is flexible, that is why she is so charming...

greenforce 发表于 2003-6-1 23:10:58

谢谢你的答复...
学习Linux是一件很有趣的事情..(迫使我不愿意学习大学里的"操作系统"这们课)
LOL
:mrgreen:

keenor 发表于 2003-6-1 23:14:55

我想scsi是这样的:
挂在/上的文件系统若是一个scsi设备,那么还是把scsi编进kernel比较好,这样可以简单一些
redhat并没有把scsi编进内核,redhat的做法是在挂载根文件系统之前先挂一个ramdisk,里面有scsi的模块,加载那个模块,再挂scsi的根文件系统

Dragonfly 发表于 2003-6-1 23:18:26

yes, keenor, is correct. and any kernel can do that in fact.


if the os course can teach linux, it will be great.

greenforce 发表于 2003-6-1 23:20:40

我想scsi是这样的:
挂在/上的文件系统若是一个scsi设备,那么还是把scsi编进kernel比较好,这样可以简单一些
redhat并没有把scsi编进内核,redhat的做法是在挂载根文件系统之前先挂一个ramdisk,里面有scsi的模块,加载那个模块,再挂scsi的根文件系统

非常感谢.你的提醒.
早先一端时间我也是总为编译的内核无法引导而头疼.
绕了不少弯路
后来在 redhat's mail-list 得知 得挂载一个 ramdisk .
现在 kernel 已经可以工作.
我接下来的任务就是优化它.

Dragonfly 发表于 2003-6-1 23:29:13

u should also read some how to on this topic.
页: [1]
查看完整版本: 我是前不久刚试着编译内核, 目前有个疑问需要指点. 谢谢.!