All of lore.kernel.org
 help / color / mirror / Atom feed
* Drivers compiled into the kernel can reduce code size
@ 2009-10-13  5:46 飞颜
  2009-10-13 14:45 ` Theodore Tso
  0 siblings, 1 reply; 2+ messages in thread
From: 飞颜 @ 2009-10-13  5:46 UTC (permalink / raw)
  To: Tim Abbott; +Cc: Greg Ungerer, linux-kernel, Sam Ravnborg

Dear all,

       I has a question below:

     Why Drivers compiled into the kernel can reduce code size
compared with Module ways?

     Kernel + Driver Module (Code Size) > Kernel(include Driver)


    Thanks!

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Drivers compiled into the kernel can reduce code size
  2009-10-13  5:46 Drivers compiled into the kernel can reduce code size 飞颜
@ 2009-10-13 14:45 ` Theodore Tso
  0 siblings, 0 replies; 2+ messages in thread
From: Theodore Tso @ 2009-10-13 14:45 UTC (permalink / raw)
  To: 飞颜; +Cc: Tim Abbott, Greg Ungerer, linux-kernel, Sam Ravnborg

On Tue, Oct 13, 2009 at 01:46:18PM +0800, 飞颜 wrote:
> Dear all,
> 
>        I has a question below:
> 
>      Why Drivers compiled into the kernel can reduce code size
> compared with Module ways?
> 
>      Kernel + Driver Module (Code Size) > Kernel(include Driver)

Each loadable kernel module is subject to rounding to 4k pages, where
as when a driver is built into the kernel, its text, data, and BSS
segments can be included into the kernel text, data, and BSS segments. 

Drivers that are compiled into the kernel also can use the same single
huge page TLB entry for the kernel text segment, so using a fewer
kernel modules can also result in fewer TLB misses.

       	       	   	       	  	    - Ted

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-10-13 14:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-13  5:46 Drivers compiled into the kernel can reduce code size 飞颜
2009-10-13 14:45 ` Theodore Tso

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.