linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Pei Lin <telent997@gmail.com>
To: Mulyadi Santosa <mulyadi.santosa@gmail.com>
Cc: Ryan Wang <openspace.wang@gmail.com>,
	kernelnewbies@nl.linux.org, linux-kernel@vger.kernel.org,
	linux-mm@kvack.org
Subject: Re: question about CONFIG_BASE_SMALL
Date: Thu, 5 Aug 2010 09:10:21 +0800	[thread overview]
Message-ID: <AANLkTi=5Ks0jmnGgUzH_gPEt36KPK7mwfdMscw8yTPmc@mail.gmail.com> (raw)
In-Reply-To: <AANLkTimejYX3OEk9j+L+nWKyBuf7=rJbAOvQGhxJNPxN@mail.gmail.com>

2010/8/4 Mulyadi Santosa <mulyadi.santosa@gmail.com>:
> Hi...
>
> On Wed, Aug 4, 2010 at 15:38, Ryan Wang <openspace.wang@gmail.com> wrote:
>> Hi all,
>>
>>      I noticed CONFIG_BASE_SMALL in different parts
>> of the kernel code, with ifdef/ifndef.
>>      I wonder what does CONFIG_BASE_SMALL mean?
>> And how can I configure it, e.g. through make menuconfig?
>
> Reply on top of my head: IIRC it means to disable certain things...or
> possibly enabling things that might reduce memory footprints.
>
> The goal....to make Linux kernel running more suitable for embedded
> system and low level specification machine...
>
FYI.

Date:	Mon, 31 Jan 2005 01:25:51 -0600
To: Andrew Morton <akpm@osdl.org>

This patch series introduced a new pair of CONFIG_EMBEDDED options call
CONFIG_BASE_FULL/CONFIG_BASE_SMALL. Disabling CONFIG_BASE_FULL sets
the boolean CONFIG_BASE_SMALL to 1 and it is used to shrink a number
of core data structures. The space savings for the current batch is
around 14k.
-

For example , look at the file "Linux/include/linux/udp.h"
http://lxr.free-electrons.com/source/include/linux/udp.h

#define UDP_HTABLE_SIZE_MIN             (CONFIG_BASE_SMALL ? 128 : 256)


> --
> regards,
>
> Mulyadi Santosa
> Freelance Linux trainer and consultant
>
> blog: the-hydra.blogspot.com
> training: mulyaditraining.blogspot.com
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>



-- 
Best Regards
Lin

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

      reply	other threads:[~2010-08-05  1:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-04  8:38 Ryan Wang
2010-08-04  8:59 ` Yong Zhang
2010-08-04  9:14 ` Mulyadi Santosa
2010-08-05  1:10   ` Pei Lin [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='AANLkTi=5Ks0jmnGgUzH_gPEt36KPK7mwfdMscw8yTPmc@mail.gmail.com' \
    --to=telent997@gmail.com \
    --cc=kernelnewbies@nl.linux.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mulyadi.santosa@gmail.com \
    --cc=openspace.wang@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox