Wingsofwind 发表于 2003-4-29 17:11:19

cheungming大侠, 说说网络部分作为模块的可能性吧!

现在的项目要求我将网络部分作为模块加载,并测试两种情况下linux网络性能的差异,benchmark工具已经找到了很多:),但是现在对于将网络部分整个的作为模块加载问题多多,不知该如何下手,2.4及其之前的内核编译时如果不选network,会产生很多问题,可能内核都不能启动,自从2.5内核引进nonet.c之后,情况似乎好了一些,有成功编译可启动内核的尝试,因为目标系统是路由器,希望对路由器的网络配置能在不需重新编译内核,甚至不需重新启动的条件下进行,这也是我的毕设课题,时间无多了,忘大侠指点,不胜感激!

Dragonfly 发表于 2003-4-29 22:19:03

if '现在的项目要求我将网络部分作为模块加载,并测试两种情况下linux网络性能的差异' is u only topic, i can tell u that there is no difference whether net is linked into kernel or as a module and loaded into kernel. this is decided by linux kernel implementation. u can read the code about linux how to load module and add symbol table to system to know why. after loading a kernel, its symbol is treated as same as the one already in kernel. so there is no difference. this is also the great value of linux. load on demand.
for the linux router part. i am sorry that i do not have much knowledge on that part. my research direction is storage performance. so i know some about io and fs part only.
i will download a 2.5.6x kernel and try it when i have time. which option under network u needed?

Dragonfly 发表于 2003-5-1 03:45:54

i try the 2.5.68. but i do not think i can do that. i think that need modify the kernel source code and modify the makefile. i do not have so many time. i need code for my food. hehe
页: [1]
查看完整版本: cheungming大侠, 说说网络部分作为模块的可能性吧!