Networking Forums

Networking Forums > Computer Networking > Linux Networking > Driver performace "Kernel Mode" and "Module Mode"?

Reply
Thread Tools Display Modes

Driver performace "Kernel Mode" and "Module Mode"?

 
 
Perry Wu
Guest
Posts: n/a

 
      10-18-2004, 09:44 AM
Hi all,

I have a strange problem describes as follows:

I have wrote a network device driver and
tried to test its performance by using Smartbit.

The driver performance is 18 Mbps when I use "insmod driver.o".
But it is 22 Mbps when I use this driver as "built-in kernel driver".

Why the performance result between "Module" and "Kernel" is different?

Does this result reasonable?

I need your suggestions. Thank you!

Regards,
Perry.
 
Reply With Quote
 
 
 
 
Stephen Hemminger
Guest
Posts: n/a

 
      10-21-2004, 05:17 AM
Perry Wu wrote:
> Hi all,
>
> I have a strange problem describes as follows:
>
> I have wrote a network device driver and
> tried to test its performance by using Smartbit.
>
> The driver performance is 18 Mbps when I use "insmod driver.o".
> But it is 22 Mbps when I use this driver as "built-in kernel driver".
>
> Why the performance result between "Module" and "Kernel" is different?
>
> Does this result reasonable?
>
> I need your suggestions. Thank you!


It can happen because module reference's end up a different TLB and
get called through an indirect linkage. Sort of the same overhead
as DLL or COM.
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: SPEWS SLIMES "WindsorFox", "Kevin-!:?)", "Spin Dryer" get the cold shoulder at broadband ng! SneakyP Broadband 0 11-29-2005 10:46 PM
Attention Plus.net Re: SPEWS DOLTS "WindsorFox", "Kevin-!:?)", "SpinDryer" SPAM broadband newsgroup !:?) Broadband 0 11-28-2005 04:28 AM
Attention Plus.Net Re: SPEWS DOLTS "WindsorFox", "Kevin-!:?)", "SpinDryer" SPAM braodband newsgroup !:?) Broadband 0 11-28-2005 03:03 AM
Dlink : "Access Point" or "Wireless Client" mode? Alfie Broadband 2 01-07-2005 07:41 PM
Dlink : "Access Point" or "Wireless Client" mode? Alfie Wireless Internet 2 01-07-2005 07:41 PM



1 2 3 4 5 6 7 8 9 10 11