linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* question about CONFIG_BASE_SMALL
@ 2010-08-04  8:38 Ryan Wang
  2010-08-04  8:59 ` Yong Zhang
  2010-08-04  9:14 ` Mulyadi Santosa
  0 siblings, 2 replies; 4+ messages in thread
From: Ryan Wang @ 2010-08-04  8:38 UTC (permalink / raw)
  To: kernelnewbies, linux-kernel, linux-mm

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?

thanks,

--
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>

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

* Re: question about CONFIG_BASE_SMALL
  2010-08-04  8:38 question about CONFIG_BASE_SMALL Ryan Wang
@ 2010-08-04  8:59 ` Yong Zhang
  2010-08-04  9:14 ` Mulyadi Santosa
  1 sibling, 0 replies; 4+ messages in thread
From: Yong Zhang @ 2010-08-04  8:59 UTC (permalink / raw)
  To: Ryan Wang; +Cc: kernelnewbies, linux-kernel, linux-mm

On Wed, Aug 04, 2010 at 04:38:12PM +0800, Ryan Wang 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?

Yeah, here:

init/Kconfig:
...
config BASE_SMALL
	int
	default 0 if BASE_FULL
	default 1 if !BASE_FULL
...
config BASE_FULL
	default y
	bool "Enable full-sized data structures for core" if EMBEDDED
	help
	  Disabling this option reduces the size of miscellaneous core
	  kernel data structures. This saves memory on small machines,

> 
> thanks,
> --
> 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/

--
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>

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

* Re: question about CONFIG_BASE_SMALL
  2010-08-04  8:38 question about CONFIG_BASE_SMALL Ryan Wang
  2010-08-04  8:59 ` Yong Zhang
@ 2010-08-04  9:14 ` Mulyadi Santosa
  2010-08-05  1:10   ` Pei Lin
  1 sibling, 1 reply; 4+ messages in thread
From: Mulyadi Santosa @ 2010-08-04  9:14 UTC (permalink / raw)
  To: Ryan Wang; +Cc: kernelnewbies, linux-kernel, linux-mm

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...

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

--
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>

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

* Re: question about CONFIG_BASE_SMALL
  2010-08-04  9:14 ` Mulyadi Santosa
@ 2010-08-05  1:10   ` Pei Lin
  0 siblings, 0 replies; 4+ messages in thread
From: Pei Lin @ 2010-08-05  1:10 UTC (permalink / raw)
  To: Mulyadi Santosa; +Cc: Ryan Wang, kernelnewbies, linux-kernel, linux-mm

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>

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

end of thread, other threads:[~2010-08-05  1:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-04  8:38 question about CONFIG_BASE_SMALL Ryan Wang
2010-08-04  8:59 ` Yong Zhang
2010-08-04  9:14 ` Mulyadi Santosa
2010-08-05  1:10   ` Pei Lin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox