All of lore.kernel.org
 help / color / mirror / Atom feed
From: Theodore Tso <tytso@mit.edu>
To: 飞颜 <win847@gmail.com>
Cc: Tim Abbott <tabbott@ksplice.com>,
	Greg Ungerer <gerg@snapgear.com>,
	linux-kernel@vger.kernel.org, Sam Ravnborg <sam@ravnborg.org>
Subject: Re: Drivers compiled into the kernel can reduce code size
Date: Tue, 13 Oct 2009 10:45:04 -0400	[thread overview]
Message-ID: <20091013144504.GC8175@mit.edu> (raw)
In-Reply-To: <363172900910122246y2ea4ee69gf133e725b0a54146@mail.gmail.com>

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

      reply	other threads:[~2009-10-13 14:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-13  5:46 Drivers compiled into the kernel can reduce code size 飞颜
2009-10-13 14:45 ` Theodore Tso [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091013144504.GC8175@mit.edu \
    --to=tytso@mit.edu \
    --cc=gerg@snapgear.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sam@ravnborg.org \
    --cc=tabbott@ksplice.com \
    --cc=win847@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.